Develop and Download Open Source Software

Browse CVS Repository

Contents of /freewnn/FreeWnn/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Sun Jan 16 05:10:44 2000 UTC (24 years, 3 months ago) by ura
Branch: OMRON_SOFTWARE
CVS Tags: freewnn-1-1
Changes since 1.1: +0 -0 lines
import from FreeWnn-1.1

1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
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
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 # Maximum number of lines to put in a shell here document.
55 ac_max_here_lines=12
56
57 ac_prev=
58 for ac_option
59 do
60
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
64 ac_prev=
65 continue
66 fi
67
68 case "$ac_option" in
69 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70 *) ac_optarg= ;;
71 esac
72
73 # Accept the important Cygnus configure options, so we can diagnose typos.
74
75 case "$ac_option" in
76
77 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 ac_prev=bindir ;;
79 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80 bindir="$ac_optarg" ;;
81
82 -build | --build | --buil | --bui | --bu)
83 ac_prev=build ;;
84 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85 build="$ac_optarg" ;;
86
87 -cache-file | --cache-file | --cache-fil | --cache-fi \
88 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 ac_prev=cache_file ;;
90 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92 cache_file="$ac_optarg" ;;
93
94 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 ac_prev=datadir ;;
96 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 | --da=*)
98 datadir="$ac_optarg" ;;
99
100 -disable-* | --disable-*)
101 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 fi
106 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
108
109 -enable-* | --enable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 fi
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 case "$ac_option" in
117 *=*) ;;
118 *) ac_optarg=yes ;;
119 esac
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
121
122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124 | --exec | --exe | --ex)
125 ac_prev=exec_prefix ;;
126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128 | --exec=* | --exe=* | --ex=*)
129 exec_prefix="$ac_optarg" ;;
130
131 -gas | --gas | --ga | --g)
132 # Obsolete; use --with-gas.
133 with_gas=yes ;;
134
135 -help | --help | --hel | --he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
138 cat << EOF
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
141 Configuration:
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147 Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
149 [$ac_default_prefix]
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 [same as prefix]
152 --bindir=DIR user executables in DIR [EPREFIX/bin]
153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155 --datadir=DIR read-only architecture-independent data in DIR
156 [PREFIX/share]
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 [PREFIX/com]
160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162 --includedir=DIR C header files in DIR [PREFIX/include]
163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164 --infodir=DIR info documentation in DIR [PREFIX/info]
165 --mandir=DIR man documentation in DIR [PREFIX/man]
166 --srcdir=DIR find the sources in DIR [configure dir or ..]
167 --program-prefix=PREFIX prepend PREFIX to installed program names
168 --program-suffix=SUFFIX append SUFFIX to installed program names
169 --program-transform-name=PROGRAM
170 run sed PROGRAM on installed program names
171 EOF
172 cat << EOF
173 Host type:
174 --build=BUILD configure for building on BUILD [BUILD=HOST]
175 --host=HOST configure for HOST [guessed]
176 --target=TARGET configure for TARGET [TARGET=HOST]
177 Features and packages:
178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182 --x-includes=DIR X include files are in DIR
183 --x-libraries=DIR X library files are in DIR
184 EOF
185 if test -n "$ac_help"; then
186 echo "--enable and --with options recognized:$ac_help"
187 fi
188 exit 0 ;;
189
190 -host | --host | --hos | --ho)
191 ac_prev=host ;;
192 -host=* | --host=* | --hos=* | --ho=*)
193 host="$ac_optarg" ;;
194
195 -includedir | --includedir | --includedi | --included | --include \
196 | --includ | --inclu | --incl | --inc)
197 ac_prev=includedir ;;
198 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199 | --includ=* | --inclu=* | --incl=* | --inc=*)
200 includedir="$ac_optarg" ;;
201
202 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 ac_prev=infodir ;;
204 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205 infodir="$ac_optarg" ;;
206
207 -libdir | --libdir | --libdi | --libd)
208 ac_prev=libdir ;;
209 -libdir=* | --libdir=* | --libdi=* | --libd=*)
210 libdir="$ac_optarg" ;;
211
212 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213 | --libexe | --libex | --libe)
214 ac_prev=libexecdir ;;
215 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216 | --libexe=* | --libex=* | --libe=*)
217 libexecdir="$ac_optarg" ;;
218
219 -localstatedir | --localstatedir | --localstatedi | --localstated \
220 | --localstate | --localstat | --localsta | --localst \
221 | --locals | --local | --loca | --loc | --lo)
222 ac_prev=localstatedir ;;
223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226 localstatedir="$ac_optarg" ;;
227
228 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 ac_prev=mandir ;;
230 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231 mandir="$ac_optarg" ;;
232
233 -nfp | --nfp | --nf)
234 # Obsolete; use --without-fp.
235 with_fp=no ;;
236
237 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
238 | --no-cr | --no-c)
239 no_create=yes ;;
240
241 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243 no_recursion=yes ;;
244
245 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247 | --oldin | --oldi | --old | --ol | --o)
248 ac_prev=oldincludedir ;;
249 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252 oldincludedir="$ac_optarg" ;;
253
254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 ac_prev=prefix ;;
256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257 prefix="$ac_optarg" ;;
258
259 -program-prefix | --program-prefix | --program-prefi | --program-pref \
260 | --program-pre | --program-pr | --program-p)
261 ac_prev=program_prefix ;;
262 -program-prefix=* | --program-prefix=* | --program-prefi=* \
263 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264 program_prefix="$ac_optarg" ;;
265
266 -program-suffix | --program-suffix | --program-suffi | --program-suff \
267 | --program-suf | --program-su | --program-s)
268 ac_prev=program_suffix ;;
269 -program-suffix=* | --program-suffix=* | --program-suffi=* \
270 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271 program_suffix="$ac_optarg" ;;
272
273 -program-transform-name | --program-transform-name \
274 | --program-transform-nam | --program-transform-na \
275 | --program-transform-n | --program-transform- \
276 | --program-transform | --program-transfor \
277 | --program-transfo | --program-transf \
278 | --program-trans | --program-tran \
279 | --progr-tra | --program-tr | --program-t)
280 ac_prev=program_transform_name ;;
281 -program-transform-name=* | --program-transform-name=* \
282 | --program-transform-nam=* | --program-transform-na=* \
283 | --program-transform-n=* | --program-transform-=* \
284 | --program-transform=* | --program-transfor=* \
285 | --program-transfo=* | --program-transf=* \
286 | --program-trans=* | --program-tran=* \
287 | --progr-tra=* | --program-tr=* | --program-t=*)
288 program_transform_name="$ac_optarg" ;;
289
290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291 | -silent | --silent | --silen | --sile | --sil)
292 silent=yes ;;
293
294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 ac_prev=sbindir ;;
296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 | --sbi=* | --sb=*)
298 sbindir="$ac_optarg" ;;
299
300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302 | --sharedst | --shareds | --shared | --share | --shar \
303 | --sha | --sh)
304 ac_prev=sharedstatedir ;;
305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 | --sha=* | --sh=*)
309 sharedstatedir="$ac_optarg" ;;
310
311 -site | --site | --sit)
312 ac_prev=site ;;
313 -site=* | --site=* | --sit=*)
314 site="$ac_optarg" ;;
315
316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 ac_prev=srcdir ;;
318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319 srcdir="$ac_optarg" ;;
320
321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322 | --syscon | --sysco | --sysc | --sys | --sy)
323 ac_prev=sysconfdir ;;
324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326 sysconfdir="$ac_optarg" ;;
327
328 -target | --target | --targe | --targ | --tar | --ta | --t)
329 ac_prev=target ;;
330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331 target="$ac_optarg" ;;
332
333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
334 verbose=yes ;;
335
336 -version | --version | --versio | --versi | --vers)
337 echo "configure generated by autoconf version 2.12"
338 exit 0 ;;
339
340 -with-* | --with-*)
341 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342 # Reject names that are not valid shell variable names.
343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 fi
346 ac_package=`echo $ac_package| sed 's/-/_/g'`
347 case "$ac_option" in
348 *=*) ;;
349 *) ac_optarg=yes ;;
350 esac
351 eval "with_${ac_package}='$ac_optarg'" ;;
352
353 -without-* | --without-*)
354 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 fi
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}=no" ;;
361
362 --x)
363 # Obsolete; use --with-x.
364 with_x=yes ;;
365
366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367 | --x-incl | --x-inc | --x-in | --x-i)
368 ac_prev=x_includes ;;
369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371 x_includes="$ac_optarg" ;;
372
373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375 ac_prev=x_libraries ;;
376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378 x_libraries="$ac_optarg" ;;
379
380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
381 ;;
382
383 *)
384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 fi
387 if test "x$nonopt" != xNONE; then
388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
389 fi
390 nonopt="$ac_option"
391 ;;
392
393 esac
394 done
395
396 if test -n "$ac_prev"; then
397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398 fi
399
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401
402 # File descriptor usage:
403 # 0 standard input
404 # 1 file creation
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
411 exec 6>/dev/null
412 else
413 exec 6>&1
414 fi
415 exec 5>./config.log
416
417 echo "\
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
420 " 1>&5
421
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
424 ac_configure_args=
425 for ac_arg
426 do
427 case "$ac_arg" in
428 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429 | --no-cr | --no-c) ;;
430 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
435 esac
436 done
437
438 # NLS nuisances.
439 # Only set these to C if already set. These must not be set unconditionally
440 # because not all systems understand e.g. LANG=C (notably SCO).
441 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442 # Non-C LC_CTYPE values break the ctype check.
443 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
444 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
446 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447
448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
449 rm -rf conftest* confdefs.h
450 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
451 echo > confdefs.h
452
453 # A filename unique to this package, relative to the directory that
454 # configure is in, which we can look for to find out if srcdir is correct.
455 ac_unique_file=Wnn/conv/cvt_head.h
456
457 # Find the source files, if location was not specified.
458 if test -z "$srcdir"; then
459 ac_srcdir_defaulted=yes
460 # Try the directory containing this script, then its parent.
461 ac_prog=$0
462 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 srcdir=$ac_confdir
465 if test ! -r $srcdir/$ac_unique_file; then
466 srcdir=..
467 fi
468 else
469 ac_srcdir_defaulted=no
470 fi
471 if test ! -r $srcdir/$ac_unique_file; then
472 if test "$ac_srcdir_defaulted" = yes; then
473 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 else
475 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476 fi
477 fi
478 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479
480 # Prefer explicitly selected file to automatically selected ones.
481 if test -z "$CONFIG_SITE"; then
482 if test "x$prefix" != xNONE; then
483 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484 else
485 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486 fi
487 fi
488 for ac_site_file in $CONFIG_SITE; do
489 if test -r "$ac_site_file"; then
490 echo "loading site script $ac_site_file"
491 . "$ac_site_file"
492 fi
493 done
494
495 if test -r "$cache_file"; then
496 echo "loading cache $cache_file"
497 . $cache_file
498 else
499 echo "creating cache $cache_file"
500 > $cache_file
501 fi
502
503 ac_ext=c
504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505 ac_cpp='$CPP $CPPFLAGS'
506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508 cross_compiling=$ac_cv_prog_cc_cross
509
510 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
511 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
512 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
513 ac_n= ac_c='
514 ' ac_t=' '
515 else
516 ac_n=-n ac_c= ac_t=
517 fi
518 else
519 ac_n= ac_c='\c' ac_t=
520 fi
521
522
523
524 # Extract the first word of "gcc", so it can be a program name with args.
525 set dummy gcc; ac_word=$2
526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
527 echo "configure:528: checking for $ac_word" >&5
528 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
529 echo $ac_n "(cached) $ac_c" 1>&6
530 else
531 if test -n "$CC"; then
532 ac_cv_prog_CC="$CC" # Let the user override the test.
533 else
534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
535 for ac_dir in $PATH; do
536 test -z "$ac_dir" && ac_dir=.
537 if test -f $ac_dir/$ac_word; then
538 ac_cv_prog_CC="gcc"
539 break
540 fi
541 done
542 IFS="$ac_save_ifs"
543 fi
544 fi
545 CC="$ac_cv_prog_CC"
546 if test -n "$CC"; then
547 echo "$ac_t""$CC" 1>&6
548 else
549 echo "$ac_t""no" 1>&6
550 fi
551
552 if test -z "$CC"; then
553 # Extract the first word of "cc", so it can be a program name with args.
554 set dummy cc; ac_word=$2
555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
556 echo "configure:557: checking for $ac_word" >&5
557 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
559 else
560 if test -n "$CC"; then
561 ac_cv_prog_CC="$CC" # Let the user override the test.
562 else
563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
564 ac_prog_rejected=no
565 for ac_dir in $PATH; do
566 test -z "$ac_dir" && ac_dir=.
567 if test -f $ac_dir/$ac_word; then
568 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
569 ac_prog_rejected=yes
570 continue
571 fi
572 ac_cv_prog_CC="cc"
573 break
574 fi
575 done
576 IFS="$ac_save_ifs"
577 if test $ac_prog_rejected = yes; then
578 # We found a bogon in the path, so make sure we never use it.
579 set dummy $ac_cv_prog_CC
580 shift
581 if test $# -gt 0; then
582 # We chose a different compiler from the bogus one.
583 # However, it has the same basename, so the bogon will be chosen
584 # first if we set CC to just the basename; use the full file name.
585 shift
586 set dummy "$ac_dir/$ac_word" "$@"
587 shift
588 ac_cv_prog_CC="$@"
589 fi
590 fi
591 fi
592 fi
593 CC="$ac_cv_prog_CC"
594 if test -n "$CC"; then
595 echo "$ac_t""$CC" 1>&6
596 else
597 echo "$ac_t""no" 1>&6
598 fi
599
600 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
601 fi
602
603 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
604 echo "configure:605: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
605
606 ac_ext=c
607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
608 ac_cpp='$CPP $CPPFLAGS'
609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
610 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
611 cross_compiling=$ac_cv_prog_cc_cross
612
613 cat > conftest.$ac_ext <<EOF
614 #line 615 "configure"
615 #include "confdefs.h"
616 main(){return(0);}
617 EOF
618 if { (eval echo configure:619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
619 ac_cv_prog_cc_works=yes
620 # If we can't run a trivial program, we are probably using a cross compiler.
621 if (./conftest; exit) 2>/dev/null; then
622 ac_cv_prog_cc_cross=no
623 else
624 ac_cv_prog_cc_cross=yes
625 fi
626 else
627 echo "configure: failed program was:" >&5
628 cat conftest.$ac_ext >&5
629 ac_cv_prog_cc_works=no
630 fi
631 rm -fr conftest*
632
633 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
634 if test $ac_cv_prog_cc_works = no; then
635 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
636 fi
637 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
638 echo "configure:639: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
639 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
640 cross_compiling=$ac_cv_prog_cc_cross
641
642 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
643 echo "configure:644: checking whether we are using GNU C" >&5
644 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
646 else
647 cat > conftest.c <<EOF
648 #ifdef __GNUC__
649 yes;
650 #endif
651 EOF
652 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
653 ac_cv_prog_gcc=yes
654 else
655 ac_cv_prog_gcc=no
656 fi
657 fi
658
659 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
660
661 if test $ac_cv_prog_gcc = yes; then
662 GCC=yes
663 ac_test_CFLAGS="${CFLAGS+set}"
664 ac_save_CFLAGS="$CFLAGS"
665 CFLAGS=
666 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
667 echo "configure:668: checking whether ${CC-cc} accepts -g" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
670 else
671 echo 'void f(){}' > conftest.c
672 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
673 ac_cv_prog_cc_g=yes
674 else
675 ac_cv_prog_cc_g=no
676 fi
677 rm -f conftest*
678
679 fi
680
681 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
682 if test "$ac_test_CFLAGS" = set; then
683 CFLAGS="$ac_save_CFLAGS"
684 elif test $ac_cv_prog_cc_g = yes; then
685 CFLAGS="-g -O2"
686 else
687 CFLAGS="-O2"
688 fi
689 else
690 GCC=
691 test "${CFLAGS+set}" = set || CFLAGS="-g"
692 fi
693
694 echo $ac_n "checking for cpp""... $ac_c" 1>&6
695 echo "configure:696: checking for cpp" >&5
696 hosttype=`uname`
697 CCOPTIONS=""
698 CDEBUGFLAGS=-O
699 case $hosttype in
700 "Linux")
701 CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
702 CDEBUGFLAGS="-O2 -fno-strength-reduce"
703 if test -x /lib/cpp; then
704 CPP=/lib/cpp
705 fi
706 ;;
707 "FreeBSD")
708 CCOPTIONS="-DCSRG_BASED"
709 CDEBUGFLAGS="-O2 -fno-strength-reduce"
710 if test -x /usr/libexec/cpp; then
711 CPP=/usr/libexec/cpp
712 fi
713 ;;
714 "SunOS")
715 if test $CC = gcc; then
716 CDEBUGFLAGS=-O2
717 CCOPTIONS="-Dsun -Dsparc -DSVR4 -DSYSV"
718 else
719 CCOPTIONS="-Xc -xF -xcg92 -Dsun -Dsparc -DSVR4 -DSYSV"
720 fi
721 if test -x /usr/ccs/lib/cpp; then
722 CPP=/usr/ccs/lib/cpp
723 fi
724 ;;
725 *)
726 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
727 ;;
728 esac
729 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
730 echo "configure:731: checking how to run the C preprocessor" >&5
731 # On Suns, sometimes $CPP names a directory.
732 if test -n "$CPP" && test -d "$CPP"; then
733 CPP=
734 fi
735 if test -z "$CPP"; then
736 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
738 else
739 # This must be in double quotes, not single quotes, because CPP may get
740 # substituted into the Makefile and "${CC-cc}" will confuse make.
741 CPP="${CC-cc} -E"
742 # On the NeXT, cc -E runs the code through the compiler's parser,
743 # not just through cpp.
744 cat > conftest.$ac_ext <<EOF
745 #line 746 "configure"
746 #include "confdefs.h"
747 #include <assert.h>
748 Syntax Error
749 EOF
750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
751 { (eval echo configure:752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
752 ac_err=`grep -v '^ *+' conftest.out`
753 if test -z "$ac_err"; then
754 :
755 else
756 echo "$ac_err" >&5
757 echo "configure: failed program was:" >&5
758 cat conftest.$ac_ext >&5
759 rm -rf conftest*
760 CPP="${CC-cc} -E -traditional-cpp"
761 cat > conftest.$ac_ext <<EOF
762 #line 763 "configure"
763 #include "confdefs.h"
764 #include <assert.h>
765 Syntax Error
766 EOF
767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
768 { (eval echo configure:769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
769 ac_err=`grep -v '^ *+' conftest.out`
770 if test -z "$ac_err"; then
771 :
772 else
773 echo "$ac_err" >&5
774 echo "configure: failed program was:" >&5
775 cat conftest.$ac_ext >&5
776 rm -rf conftest*
777 CPP=/lib/cpp
778 fi
779 rm -f conftest*
780 fi
781 rm -f conftest*
782 ac_cv_prog_CPP="$CPP"
783 fi
784 CPP="$ac_cv_prog_CPP"
785 else
786 ac_cv_prog_CPP="$CPP"
787 fi
788 echo "$ac_t""$CPP" 1>&6
789
790
791 for ac_prog in 'bison -y' byacc
792 do
793 # Extract the first word of "$ac_prog", so it can be a program name with args.
794 set dummy $ac_prog; ac_word=$2
795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
796 echo "configure:797: checking for $ac_word" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
799 else
800 if test -n "$YACC"; then
801 ac_cv_prog_YACC="$YACC" # Let the user override the test.
802 else
803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
804 for ac_dir in $PATH; do
805 test -z "$ac_dir" && ac_dir=.
806 if test -f $ac_dir/$ac_word; then
807 ac_cv_prog_YACC="$ac_prog"
808 break
809 fi
810 done
811 IFS="$ac_save_ifs"
812 fi
813 fi
814 YACC="$ac_cv_prog_YACC"
815 if test -n "$YACC"; then
816 echo "$ac_t""$YACC" 1>&6
817 else
818 echo "$ac_t""no" 1>&6
819 fi
820
821 test -n "$YACC" && break
822 done
823 test -n "$YACC" || YACC="yacc"
824
825 # Extract the first word of "flex", so it can be a program name with args.
826 set dummy flex; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
831 else
832 if test -n "$LEX"; then
833 ac_cv_prog_LEX="$LEX" # Let the user override the test.
834 else
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
836 for ac_dir in $PATH; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
839 ac_cv_prog_LEX="flex"
840 break
841 fi
842 done
843 IFS="$ac_save_ifs"
844 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
845 fi
846 fi
847 LEX="$ac_cv_prog_LEX"
848 if test -n "$LEX"; then
849 echo "$ac_t""$LEX" 1>&6
850 else
851 echo "$ac_t""no" 1>&6
852 fi
853
854 if test -z "$LEXLIB"
855 then
856 case "$LEX" in
857 flex*) ac_lib=fl ;;
858 *) ac_lib=l ;;
859 esac
860 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
861 echo "configure:862: checking for yywrap in -l$ac_lib" >&5
862 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
865 else
866 ac_save_LIBS="$LIBS"
867 LIBS="-l$ac_lib $LIBS"
868 cat > conftest.$ac_ext <<EOF
869 #line 870 "configure"
870 #include "confdefs.h"
871 /* Override any gcc2 internal prototype to avoid an error. */
872 /* We use char because int might match the return type of a gcc2
873 builtin and then its argument prototype would still apply. */
874 char yywrap();
875
876 int main() {
877 yywrap()
878 ; return 0; }
879 EOF
880 if { (eval echo configure:881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
881 rm -rf conftest*
882 eval "ac_cv_lib_$ac_lib_var=yes"
883 else
884 echo "configure: failed program was:" >&5
885 cat conftest.$ac_ext >&5
886 rm -rf conftest*
887 eval "ac_cv_lib_$ac_lib_var=no"
888 fi
889 rm -f conftest*
890 LIBS="$ac_save_LIBS"
891
892 fi
893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
894 echo "$ac_t""yes" 1>&6
895 LEXLIB="-l$ac_lib"
896 else
897 echo "$ac_t""no" 1>&6
898 fi
899
900 fi
901
902 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
903 echo "configure:904: checking whether ln -s works" >&5
904 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
906 else
907 rm -f conftestdata
908 if ln -s X conftestdata 2>/dev/null
909 then
910 rm -f conftestdata
911 ac_cv_prog_LN_S="ln -s"
912 else
913 ac_cv_prog_LN_S=ln
914 fi
915 fi
916 LN_S="$ac_cv_prog_LN_S"
917 if test "$ac_cv_prog_LN_S" = "ln -s"; then
918 echo "$ac_t""yes" 1>&6
919 else
920 echo "$ac_t""no" 1>&6
921 fi
922
923 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
924 echo "configure:925: checking whether ${MAKE-make} sets \${MAKE}" >&5
925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
926 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
928 else
929 cat > conftestmake <<\EOF
930 all:
931 @echo 'ac_maketemp="${MAKE}"'
932 EOF
933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
934 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
935 if test -n "$ac_maketemp"; then
936 eval ac_cv_prog_make_${ac_make}_set=yes
937 else
938 eval ac_cv_prog_make_${ac_make}_set=no
939 fi
940 rm -f conftestmake
941 fi
942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
943 echo "$ac_t""yes" 1>&6
944 SET_MAKE=
945 else
946 echo "$ac_t""no" 1>&6
947 SET_MAKE="MAKE=${MAKE-make}"
948 fi
949
950 # Extract the first word of "ranlib", so it can be a program name with args.
951 set dummy ranlib; ac_word=$2
952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
953 echo "configure:954: checking for $ac_word" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
956 else
957 if test -n "$RANLIB"; then
958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
959 else
960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
961 for ac_dir in $PATH; do
962 test -z "$ac_dir" && ac_dir=.
963 if test -f $ac_dir/$ac_word; then
964 ac_cv_prog_RANLIB="ranlib"
965 break
966 fi
967 done
968 IFS="$ac_save_ifs"
969 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
970 fi
971 fi
972 RANLIB="$ac_cv_prog_RANLIB"
973 if test -n "$RANLIB"; then
974 echo "$ac_t""$RANLIB" 1>&6
975 else
976 echo "$ac_t""no" 1>&6
977 fi
978
979
980
981
982 echo $ac_n "checking for main in -lFS""... $ac_c" 1>&6
983 echo "configure:984: checking for main in -lFS" >&5
984 ac_lib_var=`echo FS'_'main | sed 'y%./+-%__p_%'`
985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
987 else
988 ac_save_LIBS="$LIBS"
989 LIBS="-lFS $LIBS"
990 cat > conftest.$ac_ext <<EOF
991 #line 992 "configure"
992 #include "confdefs.h"
993
994 int main() {
995 main()
996 ; return 0; }
997 EOF
998 if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
999 rm -rf conftest*
1000 eval "ac_cv_lib_$ac_lib_var=yes"
1001 else
1002 echo "configure: failed program was:" >&5
1003 cat conftest.$ac_ext >&5
1004 rm -rf conftest*
1005 eval "ac_cv_lib_$ac_lib_var=no"
1006 fi
1007 rm -f conftest*
1008 LIBS="$ac_save_LIBS"
1009
1010 fi
1011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1012 echo "$ac_t""yes" 1>&6
1013 ac_tr_lib=HAVE_LIB`echo FS | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1015 cat >> confdefs.h <<EOF
1016 #define $ac_tr_lib 1
1017 EOF
1018
1019 LIBS="-lFS $LIBS"
1020
1021 else
1022 echo "$ac_t""no" 1>&6
1023 fi
1024
1025 echo $ac_n "checking for main in -lFresco""... $ac_c" 1>&6
1026 echo "configure:1027: checking for main in -lFresco" >&5
1027 ac_lib_var=`echo Fresco'_'main | sed 'y%./+-%__p_%'`
1028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1030 else
1031 ac_save_LIBS="$LIBS"
1032 LIBS="-lFresco $LIBS"
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1036
1037 int main() {
1038 main()
1039 ; return 0; }
1040 EOF
1041 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1042 rm -rf conftest*
1043 eval "ac_cv_lib_$ac_lib_var=yes"
1044 else
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1047 rm -rf conftest*
1048 eval "ac_cv_lib_$ac_lib_var=no"
1049 fi
1050 rm -f conftest*
1051 LIBS="$ac_save_LIBS"
1052
1053 fi
1054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1055 echo "$ac_t""yes" 1>&6
1056 ac_tr_lib=HAVE_LIB`echo Fresco | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1058 cat >> confdefs.h <<EOF
1059 #define $ac_tr_lib 1
1060 EOF
1061
1062 LIBS="-lFresco $LIBS"
1063
1064 else
1065 echo "$ac_t""no" 1>&6
1066 fi
1067
1068 echo $ac_n "checking for main in -lICE""... $ac_c" 1>&6
1069 echo "configure:1070: checking for main in -lICE" >&5
1070 ac_lib_var=`echo ICE'_'main | sed 'y%./+-%__p_%'`
1071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1073 else
1074 ac_save_LIBS="$LIBS"
1075 LIBS="-lICE $LIBS"
1076 cat > conftest.$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1079
1080 int main() {
1081 main()
1082 ; return 0; }
1083 EOF
1084 if { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1085 rm -rf conftest*
1086 eval "ac_cv_lib_$ac_lib_var=yes"
1087 else
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1090 rm -rf conftest*
1091 eval "ac_cv_lib_$ac_lib_var=no"
1092 fi
1093 rm -f conftest*
1094 LIBS="$ac_save_LIBS"
1095
1096 fi
1097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1098 echo "$ac_t""yes" 1>&6
1099 ac_tr_lib=HAVE_LIB`echo ICE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1100 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1101 cat >> confdefs.h <<EOF
1102 #define $ac_tr_lib 1
1103 EOF
1104
1105 LIBS="-lICE $LIBS"
1106
1107 else
1108 echo "$ac_t""no" 1>&6
1109 fi
1110
1111 echo $ac_n "checking for main in -lPEX5""... $ac_c" 1>&6
1112 echo "configure:1113: checking for main in -lPEX5" >&5
1113 ac_lib_var=`echo PEX5'_'main | sed 'y%./+-%__p_%'`
1114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1116 else
1117 ac_save_LIBS="$LIBS"
1118 LIBS="-lPEX5 $LIBS"
1119 cat > conftest.$ac_ext <<EOF
1120 #line 1121 "configure"
1121 #include "confdefs.h"
1122
1123 int main() {
1124 main()
1125 ; return 0; }
1126 EOF
1127 if { (eval echo configure:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1128 rm -rf conftest*
1129 eval "ac_cv_lib_$ac_lib_var=yes"
1130 else
1131 echo "configure: failed program was:" >&5
1132 cat conftest.$ac_ext >&5
1133 rm -rf conftest*
1134 eval "ac_cv_lib_$ac_lib_var=no"
1135 fi
1136 rm -f conftest*
1137 LIBS="$ac_save_LIBS"
1138
1139 fi
1140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1141 echo "$ac_t""yes" 1>&6
1142 ac_tr_lib=HAVE_LIB`echo PEX5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1144 cat >> confdefs.h <<EOF
1145 #define $ac_tr_lib 1
1146 EOF
1147
1148 LIBS="-lPEX5 $LIBS"
1149
1150 else
1151 echo "$ac_t""no" 1>&6
1152 fi
1153
1154 echo $ac_n "checking for main in -lSM""... $ac_c" 1>&6
1155 echo "configure:1156: checking for main in -lSM" >&5
1156 ac_lib_var=`echo SM'_'main | sed 'y%./+-%__p_%'`
1157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1159 else
1160 ac_save_LIBS="$LIBS"
1161 LIBS="-lSM $LIBS"
1162 cat > conftest.$ac_ext <<EOF
1163 #line 1164 "configure"
1164 #include "confdefs.h"
1165
1166 int main() {
1167 main()
1168 ; return 0; }
1169 EOF
1170 if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1171 rm -rf conftest*
1172 eval "ac_cv_lib_$ac_lib_var=yes"
1173 else
1174 echo "configure: failed program was:" >&5
1175 cat conftest.$ac_ext >&5
1176 rm -rf conftest*
1177 eval "ac_cv_lib_$ac_lib_var=no"
1178 fi
1179 rm -f conftest*
1180 LIBS="$ac_save_LIBS"
1181
1182 fi
1183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1184 echo "$ac_t""yes" 1>&6
1185 ac_tr_lib=HAVE_LIB`echo SM | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1187 cat >> confdefs.h <<EOF
1188 #define $ac_tr_lib 1
1189 EOF
1190
1191 LIBS="-lSM $LIBS"
1192
1193 else
1194 echo "$ac_t""no" 1>&6
1195 fi
1196
1197 echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
1198 echo "configure:1199: checking for main in -lX11" >&5
1199 ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
1200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202 else
1203 ac_save_LIBS="$LIBS"
1204 LIBS="-lX11 $LIBS"
1205 cat > conftest.$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1208
1209 int main() {
1210 main()
1211 ; return 0; }
1212 EOF
1213 if { (eval echo configure:1214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1214 rm -rf conftest*
1215 eval "ac_cv_lib_$ac_lib_var=yes"
1216 else
1217 echo "configure: failed program was:" >&5
1218 cat conftest.$ac_ext >&5
1219 rm -rf conftest*
1220 eval "ac_cv_lib_$ac_lib_var=no"
1221 fi
1222 rm -f conftest*
1223 LIBS="$ac_save_LIBS"
1224
1225 fi
1226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1227 echo "$ac_t""yes" 1>&6
1228 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1230 cat >> confdefs.h <<EOF
1231 #define $ac_tr_lib 1
1232 EOF
1233
1234 LIBS="-lX11 $LIBS"
1235
1236 else
1237 echo "$ac_t""no" 1>&6
1238 fi
1239
1240 echo $ac_n "checking for main in -lXIE""... $ac_c" 1>&6
1241 echo "configure:1242: checking for main in -lXIE" >&5
1242 ac_lib_var=`echo XIE'_'main | sed 'y%./+-%__p_%'`
1243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1245 else
1246 ac_save_LIBS="$LIBS"
1247 LIBS="-lXIE $LIBS"
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1251
1252 int main() {
1253 main()
1254 ; return 0; }
1255 EOF
1256 if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1257 rm -rf conftest*
1258 eval "ac_cv_lib_$ac_lib_var=yes"
1259 else
1260 echo "configure: failed program was:" >&5
1261 cat conftest.$ac_ext >&5
1262 rm -rf conftest*
1263 eval "ac_cv_lib_$ac_lib_var=no"
1264 fi
1265 rm -f conftest*
1266 LIBS="$ac_save_LIBS"
1267
1268 fi
1269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1270 echo "$ac_t""yes" 1>&6
1271 ac_tr_lib=HAVE_LIB`echo XIE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1272 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1273 cat >> confdefs.h <<EOF
1274 #define $ac_tr_lib 1
1275 EOF
1276
1277 LIBS="-lXIE $LIBS"
1278
1279 else
1280 echo "$ac_t""no" 1>&6
1281 fi
1282
1283 echo $ac_n "checking for main in -lXau""... $ac_c" 1>&6
1284 echo "configure:1285: checking for main in -lXau" >&5
1285 ac_lib_var=`echo Xau'_'main | sed 'y%./+-%__p_%'`
1286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 ac_save_LIBS="$LIBS"
1290 LIBS="-lXau $LIBS"
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294
1295 int main() {
1296 main()
1297 ; return 0; }
1298 EOF
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1300 rm -rf conftest*
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1302 else
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1305 rm -rf conftest*
1306 eval "ac_cv_lib_$ac_lib_var=no"
1307 fi
1308 rm -f conftest*
1309 LIBS="$ac_save_LIBS"
1310
1311 fi
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1314 ac_tr_lib=HAVE_LIB`echo Xau | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1315 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1316 cat >> confdefs.h <<EOF
1317 #define $ac_tr_lib 1
1318 EOF
1319
1320 LIBS="-lXau $LIBS"
1321
1322 else
1323 echo "$ac_t""no" 1>&6
1324 fi
1325
1326 echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
1327 echo "configure:1328: checking for main in -lXaw" >&5
1328 ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
1329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 ac_save_LIBS="$LIBS"
1333 LIBS="-lXaw $LIBS"
1334 cat > conftest.$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1337
1338 int main() {
1339 main()
1340 ; return 0; }
1341 EOF
1342 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1343 rm -rf conftest*
1344 eval "ac_cv_lib_$ac_lib_var=yes"
1345 else
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1348 rm -rf conftest*
1349 eval "ac_cv_lib_$ac_lib_var=no"
1350 fi
1351 rm -f conftest*
1352 LIBS="$ac_save_LIBS"
1353
1354 fi
1355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 ac_tr_lib=HAVE_LIB`echo Xaw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1358 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1359 cat >> confdefs.h <<EOF
1360 #define $ac_tr_lib 1
1361 EOF
1362
1363 LIBS="-lXaw $LIBS"
1364
1365 else
1366 echo "$ac_t""no" 1>&6
1367 fi
1368
1369 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
1370 echo "configure:1371: checking for main in -lXbsd" >&5
1371 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
1372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375 ac_save_LIBS="$LIBS"
1376 LIBS="-lXbsd $LIBS"
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380
1381 int main() {
1382 main()
1383 ; return 0; }
1384 EOF
1385 if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1386 rm -rf conftest*
1387 eval "ac_cv_lib_$ac_lib_var=yes"
1388 else
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1391 rm -rf conftest*
1392 eval "ac_cv_lib_$ac_lib_var=no"
1393 fi
1394 rm -f conftest*
1395 LIBS="$ac_save_LIBS"
1396
1397 fi
1398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1399 echo "$ac_t""yes" 1>&6
1400 ac_tr_lib=HAVE_LIB`echo Xbsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1402 cat >> confdefs.h <<EOF
1403 #define $ac_tr_lib 1
1404 EOF
1405
1406 LIBS="-lXbsd $LIBS"
1407
1408 else
1409 echo "$ac_t""no" 1>&6
1410 fi
1411
1412 echo $ac_n "checking for main in -lXdmcp""... $ac_c" 1>&6
1413 echo "configure:1414: checking for main in -lXdmcp" >&5
1414 ac_lib_var=`echo Xdmcp'_'main | sed 'y%./+-%__p_%'`
1415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1417 else
1418 ac_save_LIBS="$LIBS"
1419 LIBS="-lXdmcp $LIBS"
1420 cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423
1424 int main() {
1425 main()
1426 ; return 0; }
1427 EOF
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1429 rm -rf conftest*
1430 eval "ac_cv_lib_$ac_lib_var=yes"
1431 else
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1434 rm -rf conftest*
1435 eval "ac_cv_lib_$ac_lib_var=no"
1436 fi
1437 rm -f conftest*
1438 LIBS="$ac_save_LIBS"
1439
1440 fi
1441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 ac_tr_lib=HAVE_LIB`echo Xdmcp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1445 cat >> confdefs.h <<EOF
1446 #define $ac_tr_lib 1
1447 EOF
1448
1449 LIBS="-lXdmcp $LIBS"
1450
1451 else
1452 echo "$ac_t""no" 1>&6
1453 fi
1454
1455 echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
1456 echo "configure:1457: checking for main in -lXext" >&5
1457 ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
1458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1460 else
1461 ac_save_LIBS="$LIBS"
1462 LIBS="-lXext $LIBS"
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466
1467 int main() {
1468 main()
1469 ; return 0; }
1470 EOF
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1472 rm -rf conftest*
1473 eval "ac_cv_lib_$ac_lib_var=yes"
1474 else
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1477 rm -rf conftest*
1478 eval "ac_cv_lib_$ac_lib_var=no"
1479 fi
1480 rm -f conftest*
1481 LIBS="$ac_save_LIBS"
1482
1483 fi
1484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1486 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1488 cat >> confdefs.h <<EOF
1489 #define $ac_tr_lib 1
1490 EOF
1491
1492 LIBS="-lXext $LIBS"
1493
1494 else
1495 echo "$ac_t""no" 1>&6
1496 fi
1497
1498 echo $ac_n "checking for main in -lXi""... $ac_c" 1>&6
1499 echo "configure:1500: checking for main in -lXi" >&5
1500 ac_lib_var=`echo Xi'_'main | sed 'y%./+-%__p_%'`
1501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1503 else
1504 ac_save_LIBS="$LIBS"
1505 LIBS="-lXi $LIBS"
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1509
1510 int main() {
1511 main()
1512 ; return 0; }
1513 EOF
1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1515 rm -rf conftest*
1516 eval "ac_cv_lib_$ac_lib_var=yes"
1517 else
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1520 rm -rf conftest*
1521 eval "ac_cv_lib_$ac_lib_var=no"
1522 fi
1523 rm -f conftest*
1524 LIBS="$ac_save_LIBS"
1525
1526 fi
1527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1528 echo "$ac_t""yes" 1>&6
1529 ac_tr_lib=HAVE_LIB`echo Xi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1531 cat >> confdefs.h <<EOF
1532 #define $ac_tr_lib 1
1533 EOF
1534
1535 LIBS="-lXi $LIBS"
1536
1537 else
1538 echo "$ac_t""no" 1>&6
1539 fi
1540
1541 echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
1542 echo "configure:1543: checking for main in -lXmu" >&5
1543 ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
1544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1546 else
1547 ac_save_LIBS="$LIBS"
1548 LIBS="-lXmu $LIBS"
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552
1553 int main() {
1554 main()
1555 ; return 0; }
1556 EOF
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1558 rm -rf conftest*
1559 eval "ac_cv_lib_$ac_lib_var=yes"
1560 else
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1563 rm -rf conftest*
1564 eval "ac_cv_lib_$ac_lib_var=no"
1565 fi
1566 rm -f conftest*
1567 LIBS="$ac_save_LIBS"
1568
1569 fi
1570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1571 echo "$ac_t""yes" 1>&6
1572 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1573 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1574 cat >> confdefs.h <<EOF
1575 #define $ac_tr_lib 1
1576 EOF
1577
1578 LIBS="-lXmu $LIBS"
1579
1580 else
1581 echo "$ac_t""no" 1>&6
1582 fi
1583
1584 echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
1585 echo "configure:1586: checking for main in -lXt" >&5
1586 ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
1587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1589 else
1590 ac_save_LIBS="$LIBS"
1591 LIBS="-lXt $LIBS"
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595
1596 int main() {
1597 main()
1598 ; return 0; }
1599 EOF
1600 if { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1601 rm -rf conftest*
1602 eval "ac_cv_lib_$ac_lib_var=yes"
1603 else
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1606 rm -rf conftest*
1607 eval "ac_cv_lib_$ac_lib_var=no"
1608 fi
1609 rm -f conftest*
1610 LIBS="$ac_save_LIBS"
1611
1612 fi
1613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1614 echo "$ac_t""yes" 1>&6
1615 ac_tr_lib=HAVE_LIB`echo Xt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1616 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1617 cat >> confdefs.h <<EOF
1618 #define $ac_tr_lib 1
1619 EOF
1620
1621 LIBS="-lXt $LIBS"
1622
1623 else
1624 echo "$ac_t""no" 1>&6
1625 fi
1626
1627 echo $ac_n "checking for main in -lXtf""... $ac_c" 1>&6
1628 echo "configure:1629: checking for main in -lXtf" >&5
1629 ac_lib_var=`echo Xtf'_'main | sed 'y%./+-%__p_%'`
1630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1632 else
1633 ac_save_LIBS="$LIBS"
1634 LIBS="-lXtf $LIBS"
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1638
1639 int main() {
1640 main()
1641 ; return 0; }
1642 EOF
1643 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1644 rm -rf conftest*
1645 eval "ac_cv_lib_$ac_lib_var=yes"
1646 else
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1649 rm -rf conftest*
1650 eval "ac_cv_lib_$ac_lib_var=no"
1651 fi
1652 rm -f conftest*
1653 LIBS="$ac_save_LIBS"
1654
1655 fi
1656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1657 echo "$ac_t""yes" 1>&6
1658 ac_tr_lib=HAVE_LIB`echo Xtf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1659 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1660 cat >> confdefs.h <<EOF
1661 #define $ac_tr_lib 1
1662 EOF
1663
1664 LIBS="-lXtf $LIBS"
1665
1666 else
1667 echo "$ac_t""no" 1>&6
1668 fi
1669
1670 echo $ac_n "checking for main in -lXtst""... $ac_c" 1>&6
1671 echo "configure:1672: checking for main in -lXtst" >&5
1672 ac_lib_var=`echo Xtst'_'main | sed 'y%./+-%__p_%'`
1673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1675 else
1676 ac_save_LIBS="$LIBS"
1677 LIBS="-lXtst $LIBS"
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1681
1682 int main() {
1683 main()
1684 ; return 0; }
1685 EOF
1686 if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1687 rm -rf conftest*
1688 eval "ac_cv_lib_$ac_lib_var=yes"
1689 else
1690 echo "configure: failed program was:" >&5
1691 cat conftest.$ac_ext >&5
1692 rm -rf conftest*
1693 eval "ac_cv_lib_$ac_lib_var=no"
1694 fi
1695 rm -f conftest*
1696 LIBS="$ac_save_LIBS"
1697
1698 fi
1699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1700 echo "$ac_t""yes" 1>&6
1701 ac_tr_lib=HAVE_LIB`echo Xtst | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1702 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1703 cat >> confdefs.h <<EOF
1704 #define $ac_tr_lib 1
1705 EOF
1706
1707 LIBS="-lXtst $LIBS"
1708
1709 else
1710 echo "$ac_t""no" 1>&6
1711 fi
1712
1713 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1714 echo "configure:1715: checking for main in -lcurses" >&5
1715 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1716 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1718 else
1719 ac_save_LIBS="$LIBS"
1720 LIBS="-lcurses $LIBS"
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724
1725 int main() {
1726 main()
1727 ; return 0; }
1728 EOF
1729 if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1730 rm -rf conftest*
1731 eval "ac_cv_lib_$ac_lib_var=yes"
1732 else
1733 echo "configure: failed program was:" >&5
1734 cat conftest.$ac_ext >&5
1735 rm -rf conftest*
1736 eval "ac_cv_lib_$ac_lib_var=no"
1737 fi
1738 rm -f conftest*
1739 LIBS="$ac_save_LIBS"
1740
1741 fi
1742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1743 echo "$ac_t""yes" 1>&6
1744 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1746 cat >> confdefs.h <<EOF
1747 #define $ac_tr_lib 1
1748 EOF
1749
1750 LIBS="-lcurses $LIBS"
1751
1752 else
1753 echo "$ac_t""no" 1>&6
1754 fi
1755
1756 echo $ac_n "checking for main in -lfl""... $ac_c" 1>&6
1757 echo "configure:1758: checking for main in -lfl" >&5
1758 ac_lib_var=`echo fl'_'main | sed 'y%./+-%__p_%'`
1759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762 ac_save_LIBS="$LIBS"
1763 LIBS="-lfl $LIBS"
1764 cat > conftest.$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767
1768 int main() {
1769 main()
1770 ; return 0; }
1771 EOF
1772 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1773 rm -rf conftest*
1774 eval "ac_cv_lib_$ac_lib_var=yes"
1775 else
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1778 rm -rf conftest*
1779 eval "ac_cv_lib_$ac_lib_var=no"
1780 fi
1781 rm -f conftest*
1782 LIBS="$ac_save_LIBS"
1783
1784 fi
1785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1786 echo "$ac_t""yes" 1>&6
1787 ac_tr_lib=HAVE_LIB`echo fl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1788 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1789 cat >> confdefs.h <<EOF
1790 #define $ac_tr_lib 1
1791 EOF
1792
1793 LIBS="-lfl $LIBS"
1794
1795 else
1796 echo "$ac_t""no" 1>&6
1797 fi
1798
1799 echo $ac_n "checking for main in -lfont""... $ac_c" 1>&6
1800 echo "configure:1801: checking for main in -lfont" >&5
1801 ac_lib_var=`echo font'_'main | sed 'y%./+-%__p_%'`
1802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805 ac_save_LIBS="$LIBS"
1806 LIBS="-lfont $LIBS"
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810
1811 int main() {
1812 main()
1813 ; return 0; }
1814 EOF
1815 if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1816 rm -rf conftest*
1817 eval "ac_cv_lib_$ac_lib_var=yes"
1818 else
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1821 rm -rf conftest*
1822 eval "ac_cv_lib_$ac_lib_var=no"
1823 fi
1824 rm -f conftest*
1825 LIBS="$ac_save_LIBS"
1826
1827 fi
1828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1829 echo "$ac_t""yes" 1>&6
1830 ac_tr_lib=HAVE_LIB`echo font | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1831 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1832 cat >> confdefs.h <<EOF
1833 #define $ac_tr_lib 1
1834 EOF
1835
1836 LIBS="-lfont $LIBS"
1837
1838 else
1839 echo "$ac_t""no" 1>&6
1840 fi
1841
1842 echo $ac_n "checking for main in -loldX""... $ac_c" 1>&6
1843 echo "configure:1844: checking for main in -loldX" >&5
1844 ac_lib_var=`echo oldX'_'main | sed 'y%./+-%__p_%'`
1845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 ac_save_LIBS="$LIBS"
1849 LIBS="-loldX $LIBS"
1850 cat > conftest.$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1853
1854 int main() {
1855 main()
1856 ; return 0; }
1857 EOF
1858 if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1859 rm -rf conftest*
1860 eval "ac_cv_lib_$ac_lib_var=yes"
1861 else
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 rm -rf conftest*
1865 eval "ac_cv_lib_$ac_lib_var=no"
1866 fi
1867 rm -f conftest*
1868 LIBS="$ac_save_LIBS"
1869
1870 fi
1871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1872 echo "$ac_t""yes" 1>&6
1873 ac_tr_lib=HAVE_LIB`echo oldX | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1875 cat >> confdefs.h <<EOF
1876 #define $ac_tr_lib 1
1877 EOF
1878
1879 LIBS="-loldX $LIBS"
1880
1881 else
1882 echo "$ac_t""no" 1>&6
1883 fi
1884
1885 echo $ac_n "checking for main in -lphigs""... $ac_c" 1>&6
1886 echo "configure:1887: checking for main in -lphigs" >&5
1887 ac_lib_var=`echo phigs'_'main | sed 'y%./+-%__p_%'`
1888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1890 else
1891 ac_save_LIBS="$LIBS"
1892 LIBS="-lphigs $LIBS"
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1896
1897 int main() {
1898 main()
1899 ; return 0; }
1900 EOF
1901 if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1902 rm -rf conftest*
1903 eval "ac_cv_lib_$ac_lib_var=yes"
1904 else
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 rm -rf conftest*
1908 eval "ac_cv_lib_$ac_lib_var=no"
1909 fi
1910 rm -f conftest*
1911 LIBS="$ac_save_LIBS"
1912
1913 fi
1914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1915 echo "$ac_t""yes" 1>&6
1916 ac_tr_lib=HAVE_LIB`echo phigs | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1918 cat >> confdefs.h <<EOF
1919 #define $ac_tr_lib 1
1920 EOF
1921
1922 LIBS="-lphigs $LIBS"
1923
1924 else
1925 echo "$ac_t""no" 1>&6
1926 fi
1927
1928 echo $ac_n "checking for main in -lxpg4""... $ac_c" 1>&6
1929 echo "configure:1930: checking for main in -lxpg4" >&5
1930 ac_lib_var=`echo xpg4'_'main | sed 'y%./+-%__p_%'`
1931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934 ac_save_LIBS="$LIBS"
1935 LIBS="-lxpg4 $LIBS"
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939
1940 int main() {
1941 main()
1942 ; return 0; }
1943 EOF
1944 if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1945 rm -rf conftest*
1946 eval "ac_cv_lib_$ac_lib_var=yes"
1947 else
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1950 rm -rf conftest*
1951 eval "ac_cv_lib_$ac_lib_var=no"
1952 fi
1953 rm -f conftest*
1954 LIBS="$ac_save_LIBS"
1955
1956 fi
1957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1958 echo "$ac_t""yes" 1>&6
1959 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1961 cat >> confdefs.h <<EOF
1962 #define $ac_tr_lib 1
1963 EOF
1964
1965 LIBS="-lxpg4 $LIBS"
1966
1967 else
1968 echo "$ac_t""no" 1>&6
1969 fi
1970
1971
1972 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
1973 echo "configure:1974: checking for main in -lcrypt" >&5
1974 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
1975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978 ac_save_LIBS="$LIBS"
1979 LIBS="-lcrypt $LIBS"
1980 cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983
1984 int main() {
1985 main()
1986 ; return 0; }
1987 EOF
1988 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1989 rm -rf conftest*
1990 eval "ac_cv_lib_$ac_lib_var=yes"
1991 else
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 rm -rf conftest*
1995 eval "ac_cv_lib_$ac_lib_var=no"
1996 fi
1997 rm -f conftest*
1998 LIBS="$ac_save_LIBS"
1999
2000 fi
2001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2002 echo "$ac_t""yes" 1>&6
2003 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2004 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2005 cat >> confdefs.h <<EOF
2006 #define $ac_tr_lib 1
2007 EOF
2008
2009 LIBS="-lcrypt $LIBS"
2010
2011 else
2012 echo "$ac_t""no" 1>&6
2013 fi
2014
2015 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2016 echo "configure:2017: checking for main in -lsocket" >&5
2017 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2020 else
2021 ac_save_LIBS="$LIBS"
2022 LIBS="-lsocket $LIBS"
2023 cat > conftest.$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026
2027 int main() {
2028 main()
2029 ; return 0; }
2030 EOF
2031 if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2032 rm -rf conftest*
2033 eval "ac_cv_lib_$ac_lib_var=yes"
2034 else
2035 echo "configure: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2037 rm -rf conftest*
2038 eval "ac_cv_lib_$ac_lib_var=no"
2039 fi
2040 rm -f conftest*
2041 LIBS="$ac_save_LIBS"
2042
2043 fi
2044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2045 echo "$ac_t""yes" 1>&6
2046 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2047 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2048 cat >> confdefs.h <<EOF
2049 #define $ac_tr_lib 1
2050 EOF
2051
2052 LIBS="-lsocket $LIBS"
2053
2054 else
2055 echo "$ac_t""no" 1>&6
2056 fi
2057
2058 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2059 echo "configure:2060: checking for main in -lnsl" >&5
2060 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2063 else
2064 ac_save_LIBS="$LIBS"
2065 LIBS="-lnsl $LIBS"
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069
2070 int main() {
2071 main()
2072 ; return 0; }
2073 EOF
2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2075 rm -rf conftest*
2076 eval "ac_cv_lib_$ac_lib_var=yes"
2077 else
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2080 rm -rf conftest*
2081 eval "ac_cv_lib_$ac_lib_var=no"
2082 fi
2083 rm -f conftest*
2084 LIBS="$ac_save_LIBS"
2085
2086 fi
2087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2090 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2091 cat >> confdefs.h <<EOF
2092 #define $ac_tr_lib 1
2093 EOF
2094
2095 LIBS="-lnsl $LIBS"
2096
2097 else
2098 echo "$ac_t""no" 1>&6
2099 fi
2100
2101
2102 # If we find X, set shell vars x_includes and x_libraries to the
2103 # paths, otherwise set no_x=yes.
2104 # Uses ac_ vars as temps to allow command line to override cache and checks.
2105 # --without-x overrides everything else, but does not touch the cache.
2106 echo $ac_n "checking for X""... $ac_c" 1>&6
2107 echo "configure:2108: checking for X" >&5
2108
2109 # Check whether --with-x or --without-x was given.
2110 if test "${with_x+set}" = set; then
2111 withval="$with_x"
2112 :
2113 fi
2114
2115 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2116 if test "x$with_x" = xno; then
2117 # The user explicitly disabled X.
2118 have_x=disabled
2119 else
2120 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2121 # Both variables are already set.
2122 have_x=yes
2123 else
2124 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127 # One or both of the vars are not set, and there is no cached value.
2128 ac_x_includes=NO ac_x_libraries=NO
2129 rm -fr conftestdir
2130 if mkdir conftestdir; then
2131 cd conftestdir
2132 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2133 cat > Imakefile <<'EOF'
2134 acfindx:
2135 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2136 EOF
2137 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2138 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2139 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2140 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2141 for ac_extension in a so sl; do
2142 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2143 test -f $ac_im_libdir/libX11.$ac_extension; then
2144 ac_im_usrlibdir=$ac_im_libdir; break
2145 fi
2146 done
2147 # Screen out bogus values from the imake configuration. They are
2148 # bogus both because they are the default anyway, and because
2149 # using them would break gcc on systems where it needs fixed includes.
2150 case "$ac_im_incroot" in
2151 /usr/include) ;;
2152 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2153 esac
2154 case "$ac_im_usrlibdir" in
2155 /usr/lib | /lib) ;;
2156 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2157 esac
2158 fi
2159 cd ..
2160 rm -fr conftestdir
2161 fi
2162
2163 if test "$ac_x_includes" = NO; then
2164 # Guess where to find include files, by looking for this one X11 .h file.
2165 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2166
2167 # First, try using that file with no special directory specified.
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 #include <$x_direct_test_include>
2172 EOF
2173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2174 { (eval echo configure:2175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2175 ac_err=`grep -v '^ *+' conftest.out`
2176 if test -z "$ac_err"; then
2177 rm -rf conftest*
2178 # We can compile using X headers with no special include directory.
2179 ac_x_includes=
2180 else
2181 echo "$ac_err" >&5
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2184 rm -rf conftest*
2185 # Look for the header file in a standard set of common directories.
2186 # Check X11 before X11Rn because it is often a symlink to the current release.
2187 for ac_dir in \
2188 /usr/X11/include \
2189 /usr/X11R6/include \
2190 /usr/X11R5/include \
2191 /usr/X11R4/include \
2192 \
2193 /usr/include/X11 \
2194 /usr/include/X11R6 \
2195 /usr/include/X11R5 \
2196 /usr/include/X11R4 \
2197 \
2198 /usr/local/X11/include \
2199 /usr/local/X11R6/include \
2200 /usr/local/X11R5/include \
2201 /usr/local/X11R4/include \
2202 \
2203 /usr/local/include/X11 \
2204 /usr/local/include/X11R6 \
2205 /usr/local/include/X11R5 \
2206 /usr/local/include/X11R4 \
2207 \
2208 /usr/X386/include \
2209 /usr/x386/include \
2210 /usr/XFree86/include/X11 \
2211 \
2212 /usr/include \
2213 /usr/local/include \
2214 /usr/unsupported/include \
2215 /usr/athena/include \
2216 /usr/local/x11r5/include \
2217 /usr/lpp/Xamples/include \
2218 \
2219 /usr/openwin/include \
2220 /usr/openwin/share/include \
2221 ; \
2222 do
2223 if test -r "$ac_dir/$x_direct_test_include"; then
2224 ac_x_includes=$ac_dir
2225 break
2226 fi
2227 done
2228 fi
2229 rm -f conftest*
2230 fi # $ac_x_includes = NO
2231
2232 if test "$ac_x_libraries" = NO; then
2233 # Check for the libraries.
2234
2235 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2236 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2237
2238 # See if we find them without any special options.
2239 # Don't add to $LIBS permanently.
2240 ac_save_LIBS="$LIBS"
2241 LIBS="-l$x_direct_test_library $LIBS"
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245
2246 int main() {
2247 ${x_direct_test_function}()
2248 ; return 0; }
2249 EOF
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2251 rm -rf conftest*
2252 LIBS="$ac_save_LIBS"
2253 # We can link X programs with no special library path.
2254 ac_x_libraries=
2255 else
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2258 rm -rf conftest*
2259 LIBS="$ac_save_LIBS"
2260 # First see if replacing the include by lib works.
2261 # Check X11 before X11Rn because it is often a symlink to the current release.
2262 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2263 /usr/X11/lib \
2264 /usr/X11R6/lib \
2265 /usr/X11R5/lib \
2266 /usr/X11R4/lib \
2267 \
2268 /usr/lib/X11 \
2269 /usr/lib/X11R6 \
2270 /usr/lib/X11R5 \
2271 /usr/lib/X11R4 \
2272 \
2273 /usr/local/X11/lib \
2274 /usr/local/X11R6/lib \
2275 /usr/local/X11R5/lib \
2276 /usr/local/X11R4/lib \
2277 \
2278 /usr/local/lib/X11 \
2279 /usr/local/lib/X11R6 \
2280 /usr/local/lib/X11R5 \
2281 /usr/local/lib/X11R4 \
2282 \
2283 /usr/X386/lib \
2284 /usr/x386/lib \
2285 /usr/XFree86/lib/X11 \
2286 \
2287 /usr/lib \
2288 /usr/local/lib \
2289 /usr/unsupported/lib \
2290 /usr/athena/lib \
2291 /usr/local/x11r5/lib \
2292 /usr/lpp/Xamples/lib \
2293 /lib/usr/lib/X11 \
2294 \
2295 /usr/openwin/lib \
2296 /usr/openwin/share/lib \
2297 ; \
2298 do
2299 for ac_extension in a so sl; do
2300 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2301 ac_x_libraries=$ac_dir
2302 break 2
2303 fi
2304 done
2305 done
2306 fi
2307 rm -f conftest*
2308 fi # $ac_x_libraries = NO
2309
2310 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2311 # Didn't find X anywhere. Cache the known absence of X.
2312 ac_cv_have_x="have_x=no"
2313 else
2314 # Record where we found X for the cache.
2315 ac_cv_have_x="have_x=yes \
2316 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2317 fi
2318 fi
2319 fi
2320 eval "$ac_cv_have_x"
2321 fi # $with_x != no
2322
2323 if test "$have_x" != yes; then
2324 echo "$ac_t""$have_x" 1>&6
2325 no_x=yes
2326 else
2327 # If each of the values was on the command line, it overrides each guess.
2328 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2329 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2330 # Update the cache value to reflect the command line values.
2331 ac_cv_have_x="have_x=yes \
2332 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2333 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2334 fi
2335
2336 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2337 echo "configure:2338: checking for ANSI C header files" >&5
2338 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2340 else
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <stdlib.h>
2345 #include <stdarg.h>
2346 #include <string.h>
2347 #include <float.h>
2348 EOF
2349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2350 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2351 ac_err=`grep -v '^ *+' conftest.out`
2352 if test -z "$ac_err"; then
2353 rm -rf conftest*
2354 ac_cv_header_stdc=yes
2355 else
2356 echo "$ac_err" >&5
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2359 rm -rf conftest*
2360 ac_cv_header_stdc=no
2361 fi
2362 rm -f conftest*
2363
2364 if test $ac_cv_header_stdc = yes; then
2365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #include <string.h>
2370 EOF
2371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2372 egrep "memchr" >/dev/null 2>&1; then
2373 :
2374 else
2375 rm -rf conftest*
2376 ac_cv_header_stdc=no
2377 fi
2378 rm -f conftest*
2379
2380 fi
2381
2382 if test $ac_cv_header_stdc = yes; then
2383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 #include <stdlib.h>
2388 EOF
2389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2390 egrep "free" >/dev/null 2>&1; then
2391 :
2392 else
2393 rm -rf conftest*
2394 ac_cv_header_stdc=no
2395 fi
2396 rm -f conftest*
2397
2398 fi
2399
2400 if test $ac_cv_header_stdc = yes; then
2401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2402 if test "$cross_compiling" = yes; then
2403 :
2404 else
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <ctype.h>
2409 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2410 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2412 int main () { int i; for (i = 0; i < 256; i++)
2413 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2414 exit (0); }
2415
2416 EOF
2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2418 then
2419 :
2420 else
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 rm -fr conftest*
2424 ac_cv_header_stdc=no
2425 fi
2426 rm -fr conftest*
2427 fi
2428
2429 fi
2430 fi
2431
2432 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2433 if test $ac_cv_header_stdc = yes; then
2434 cat >> confdefs.h <<\EOF
2435 #define STDC_HEADERS 1
2436 EOF
2437
2438 fi
2439
2440 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2441 echo "configure:2442: checking for sys/wait.h that is POSIX.1 compatible" >&5
2442 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2444 else
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 #include <sys/types.h>
2449 #include <sys/wait.h>
2450 #ifndef WEXITSTATUS
2451 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2452 #endif
2453 #ifndef WIFEXITED
2454 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2455 #endif
2456 int main() {
2457 int s;
2458 wait (&s);
2459 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2460 ; return 0; }
2461 EOF
2462 if { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2463 rm -rf conftest*
2464 ac_cv_header_sys_wait_h=yes
2465 else
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2468 rm -rf conftest*
2469 ac_cv_header_sys_wait_h=no
2470 fi
2471 rm -f conftest*
2472 fi
2473
2474 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2475 if test $ac_cv_header_sys_wait_h = yes; then
2476 cat >> confdefs.h <<\EOF
2477 #define HAVE_SYS_WAIT_H 1
2478 EOF
2479
2480 fi
2481
2482 for ac_hdr in fcntl.h limits.h malloc.h sgtty.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h
2483 do
2484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2486 echo "configure:2487: checking for $ac_hdr" >&5
2487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2489 else
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 #include <$ac_hdr>
2494 EOF
2495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2496 { (eval echo configure:2497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2497 ac_err=`grep -v '^ *+' conftest.out`
2498 if test -z "$ac_err"; then
2499 rm -rf conftest*
2500 eval "ac_cv_header_$ac_safe=yes"
2501 else
2502 echo "$ac_err" >&5
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 rm -rf conftest*
2506 eval "ac_cv_header_$ac_safe=no"
2507 fi
2508 rm -f conftest*
2509 fi
2510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2511 echo "$ac_t""yes" 1>&6
2512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2513 cat >> confdefs.h <<EOF
2514 #define $ac_tr_hdr 1
2515 EOF
2516
2517 else
2518 echo "$ac_t""no" 1>&6
2519 fi
2520 done
2521
2522
2523 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2524 echo "configure:2525: checking for mode_t" >&5
2525 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2527 else
2528 cat > conftest.$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2531 #include <sys/types.h>
2532 #if STDC_HEADERS
2533 #include <stdlib.h>
2534 #include <stddef.h>
2535 #endif
2536 EOF
2537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2538 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2539 rm -rf conftest*
2540 ac_cv_type_mode_t=yes
2541 else
2542 rm -rf conftest*
2543 ac_cv_type_mode_t=no
2544 fi
2545 rm -f conftest*
2546
2547 fi
2548 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2549 if test $ac_cv_type_mode_t = no; then
2550 cat >> confdefs.h <<\EOF
2551 #define mode_t int
2552 EOF
2553
2554 fi
2555
2556 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2557 echo "configure:2558: checking whether time.h and sys/time.h may both be included" >&5
2558 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2560 else
2561 cat > conftest.$ac_ext <<EOF
2562 #line 2563 "configure"
2563 #include "confdefs.h"
2564 #include <sys/types.h>
2565 #include <sys/time.h>
2566 #include <time.h>
2567 int main() {
2568 struct tm *tp;
2569 ; return 0; }
2570 EOF
2571 if { (eval echo configure:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2572 rm -rf conftest*
2573 ac_cv_header_time=yes
2574 else
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 rm -rf conftest*
2578 ac_cv_header_time=no
2579 fi
2580 rm -f conftest*
2581 fi
2582
2583 echo "$ac_t""$ac_cv_header_time" 1>&6
2584 if test $ac_cv_header_time = yes; then
2585 cat >> confdefs.h <<\EOF
2586 #define TIME_WITH_SYS_TIME 1
2587 EOF
2588
2589 fi
2590
2591
2592 if test $ac_cv_prog_gcc = yes; then
2593 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2594 echo "configure:2595: checking whether ${CC-cc} needs -traditional" >&5
2595 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598 ac_pattern="Autoconf.*'x'"
2599 cat > conftest.$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2602 #include <sgtty.h>
2603 Autoconf TIOCGETP
2604 EOF
2605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2606 egrep "$ac_pattern" >/dev/null 2>&1; then
2607 rm -rf conftest*
2608 ac_cv_prog_gcc_traditional=yes
2609 else
2610 rm -rf conftest*
2611 ac_cv_prog_gcc_traditional=no
2612 fi
2613 rm -f conftest*
2614
2615
2616 if test $ac_cv_prog_gcc_traditional = no; then
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #include <termio.h>
2621 Autoconf TCGETA
2622 EOF
2623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2624 egrep "$ac_pattern" >/dev/null 2>&1; then
2625 rm -rf conftest*
2626 ac_cv_prog_gcc_traditional=yes
2627 fi
2628 rm -f conftest*
2629
2630 fi
2631 fi
2632
2633 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2634 if test $ac_cv_prog_gcc_traditional = yes; then
2635 CC="$CC -traditional"
2636 fi
2637 fi
2638
2639 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2640 echo "configure:2641: checking for 8-bit clean memcmp" >&5
2641 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644 if test "$cross_compiling" = yes; then
2645 ac_cv_func_memcmp_clean=no
2646 else
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650
2651 main()
2652 {
2653 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2654 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2655 }
2656
2657 EOF
2658 if { (eval echo configure:2659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2659 then
2660 ac_cv_func_memcmp_clean=yes
2661 else
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2664 rm -fr conftest*
2665 ac_cv_func_memcmp_clean=no
2666 fi
2667 rm -fr conftest*
2668 fi
2669
2670 fi
2671
2672 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2673 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2674
2675 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2676 echo "configure:2677: checking return type of signal handlers" >&5
2677 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2679 else
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 #include <sys/types.h>
2684 #include <signal.h>
2685 #ifdef signal
2686 #undef signal
2687 #endif
2688 #ifdef __cplusplus
2689 extern "C" void (*signal (int, void (*)(int)))(int);
2690 #else
2691 void (*signal ()) ();
2692 #endif
2693
2694 int main() {
2695 int i;
2696 ; return 0; }
2697 EOF
2698 if { (eval echo configure:2699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2699 rm -rf conftest*
2700 ac_cv_type_signal=void
2701 else
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704 rm -rf conftest*
2705 ac_cv_type_signal=int
2706 fi
2707 rm -f conftest*
2708 fi
2709
2710 echo "$ac_t""$ac_cv_type_signal" 1>&6
2711 cat >> confdefs.h <<EOF
2712 #define RETSIGTYPE $ac_cv_type_signal
2713 EOF
2714
2715
2716 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2717 echo "configure:2718: checking for wait3 that fills in rusage" >&5
2718 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2720 else
2721 if test "$cross_compiling" = yes; then
2722 ac_cv_func_wait3_rusage=no
2723 else
2724 cat > conftest.$ac_ext <<EOF
2725 #line 2726 "configure"
2726 #include "confdefs.h"
2727 #include <sys/types.h>
2728 #include <sys/time.h>
2729 #include <sys/resource.h>
2730 #include <stdio.h>
2731 /* HP-UX has wait3 but does not fill in rusage at all. */
2732 main() {
2733 struct rusage r;
2734 int i;
2735 /* Use a field that we can force nonzero --
2736 voluntary context switches.
2737 For systems like NeXT and OSF/1 that don't set it,
2738 also use the system CPU time. And page faults (I/O) for Linux. */
2739 r.ru_nvcsw = 0;
2740 r.ru_stime.tv_sec = 0;
2741 r.ru_stime.tv_usec = 0;
2742 r.ru_majflt = r.ru_minflt = 0;
2743 switch (fork()) {
2744 case 0: /* Child. */
2745 sleep(1); /* Give up the CPU. */
2746 _exit(0);
2747 case -1: _exit(0); /* What can we do? */
2748 default: /* Parent. */
2749 wait3(&i, 0, &r);
2750 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2751 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2752 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2753 }
2754 }
2755 EOF
2756 if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2757 then
2758 ac_cv_func_wait3_rusage=yes
2759 else
2760 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2762 rm -fr conftest*
2763 ac_cv_func_wait3_rusage=no
2764 fi
2765 rm -fr conftest*
2766 fi
2767
2768 fi
2769
2770 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
2771 if test $ac_cv_func_wait3_rusage = yes; then
2772 cat >> confdefs.h <<\EOF
2773 #define HAVE_WAIT3 1
2774 EOF
2775
2776 fi
2777
2778 for ac_func in gethostname mkdir select socket strtol
2779 do
2780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_func" >&5
2782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2784 else
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2788 /* System header to define __stub macros and hopefully few prototypes,
2789 which can conflict with char $ac_func(); below. */
2790 #include <assert.h>
2791 /* Override any gcc2 internal prototype to avoid an error. */
2792 /* We use char because int might match the return type of a gcc2
2793 builtin and then its argument prototype would still apply. */
2794 char $ac_func();
2795
2796 int main() {
2797
2798 /* The GNU C library defines this for functions which it implements
2799 to always fail with ENOSYS. Some functions are actually named
2800 something starting with __ and the normal name is an alias. */
2801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2802 choke me
2803 #else
2804 $ac_func();
2805 #endif
2806
2807 ; return 0; }
2808 EOF
2809 if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2810 rm -rf conftest*
2811 eval "ac_cv_func_$ac_func=yes"
2812 else
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 rm -rf conftest*
2816 eval "ac_cv_func_$ac_func=no"
2817 fi
2818 rm -f conftest*
2819 fi
2820
2821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2822 echo "$ac_t""yes" 1>&6
2823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2824 cat >> confdefs.h <<EOF
2825 #define $ac_tr_func 1
2826 EOF
2827
2828 else
2829 echo "$ac_t""no" 1>&6
2830 fi
2831 done
2832
2833
2834 trap '' 1 2 15
2835 cat > confcache <<\EOF
2836 # This file is a shell script that caches the results of configure
2837 # tests run on this system so they can be shared between configure
2838 # scripts and configure runs. It is not useful on other systems.
2839 # If it contains results you don't want to keep, you may remove or edit it.
2840 #
2841 # By default, configure uses ./config.cache as the cache file,
2842 # creating it if it does not exist already. You can give configure
2843 # the --cache-file=FILE option to use a different cache file; that is
2844 # what configure does when it calls configure scripts in
2845 # subdirectories, so they share the cache.
2846 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2847 # config.status only pays attention to the cache file if you give it the
2848 # --recheck option to rerun configure.
2849 #
2850 EOF
2851 # The following way of writing the cache mishandles newlines in values,
2852 # but we know of no workaround that is simple, portable, and efficient.
2853 # So, don't put newlines in cache variables' values.
2854 # Ultrix sh set writes to stderr and can't be redirected directly,
2855 # and sets the high bit in the cache file unless we assign to the vars.
2856 (set) 2>&1 |
2857 case `(ac_space=' '; set) 2>&1` in
2858 *ac_space=\ *)
2859 # `set' does not quote correctly, so add quotes (double-quote substitution
2860 # turns \\\\ into \\, and sed turns \\ into \).
2861 sed -n \
2862 -e "s/'/'\\\\''/g" \
2863 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2864 ;;
2865 *)
2866 # `set' quotes correctly as required by POSIX, so do not add quotes.
2867 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2868 ;;
2869 esac >> confcache
2870 if cmp -s $cache_file confcache; then
2871 :
2872 else
2873 if test -w $cache_file; then
2874 echo "updating cache $cache_file"
2875 cat confcache > $cache_file
2876 else
2877 echo "not updating unwritable cache $cache_file"
2878 fi
2879 fi
2880 rm -f confcache
2881
2882 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2883
2884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2885 # Let make expand exec_prefix.
2886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2887
2888 # Any assignment to VPATH causes Sun make to only execute
2889 # the first set of double-colon rules, so remove it if not needed.
2890 # If there is a colon in the path, we need to keep it.
2891 if test "x$srcdir" = x.; then
2892 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2893 fi
2894
2895 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2896
2897 # Transform confdefs.h into DEFS.
2898 # Protect against shell expansion while executing Makefile rules.
2899 # Protect against Makefile macro expansion.
2900 cat > conftest.defs <<\EOF
2901 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2902 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2903 s%\[%\\&%g
2904 s%\]%\\&%g
2905 s%\$%$$%g
2906 EOF
2907 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2908 rm -f conftest.defs
2909
2910
2911 # Without the "./", some shells look in PATH for config.status.
2912 : ${CONFIG_STATUS=./config.status}
2913
2914 echo creating $CONFIG_STATUS
2915 rm -f $CONFIG_STATUS
2916 cat > $CONFIG_STATUS <<EOF
2917 #! /bin/sh
2918 # Generated automatically by configure.
2919 # Run this file to recreate the current configuration.
2920 # This directory was configured as follows,
2921 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2922 #
2923 # $0 $ac_configure_args
2924 #
2925 # Compiler output produced by configure, useful for debugging
2926 # configure, is in ./config.log if it exists.
2927
2928 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2929 for ac_option
2930 do
2931 case "\$ac_option" in
2932 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2933 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2934 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2935 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2936 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2937 exit 0 ;;
2938 -help | --help | --hel | --he | --h)
2939 echo "\$ac_cs_usage"; exit 0 ;;
2940 *) echo "\$ac_cs_usage"; exit 1 ;;
2941 esac
2942 done
2943
2944 ac_given_srcdir=$srcdir
2945
2946 trap 'rm -fr `echo "Wnn/man/2.env/wnn/Makefile Wnn/pubdic/Makefile cWnn/uum/Makefile cWnn/man/6.jutil/Makefile cWnn/man/Makefile Wnn/man/4.cmd/Makefile kWnn/uum/Makefile cWnn/td/rk/Makefile cWnn/include/Makefile Wnn/jd/rk.vi/Makefile Wnn/jd/Makefile Makefile kWnn/include/Makefile Wnn/ld/Makefile Wnn/man/2.env/dic/Makefile Wnn/man/2.env/Makefile Wnn/man/3.libwnn/Makefile Wnn/man/6.jutil/Makefile Wnn/uum/Makefile cWnn/man/1.intro/Makefile cWnn/conv/Makefile Wnn/jd/rk/Makefile cWnn/td/Makefile Wnn/man/Makefile cWnn/td/rk_z/Makefile kWnn/conv/Makefile cWnn/man/4.cmd/Makefile cWnn/jlib/Makefile Wnn/include/Makefile Wnn/jutil/Makefile kWnn/jlib/Makefile cWnn/cd/rk_z/Makefile cWnn/Makefile cWnn/cdic/Makefile cWnn/man/2.env/Makefile Wnn/man/3.libwnn/js_lib/Makefile Wnn/man/3.libwnn/rk_lib/Makefile Contrib/dic/gerodic/Makefile kWnn/Makefile cWnn/jserver/Makefile kWnn/kdic/Makefile cWnn/tdic/Makefile Wnn/romkan/Makefile cWnn/cd/Makefile cWnn/jutil/Makefile cWnn/romkan/Makefile kWnn/jserver/Makefile Wnn/Makefile Wnn/man/3.libwnn/jl_lib/Makefile kWnn/romkan/Makefile kWnn/jutil/Makefile Pubdic/Makefile Wnn/conv/Makefile cWnn/cd/rk/Makefile cWnn/td/rk_p/Makefile Wnn/jlib.V3/Makefile kWnn/kd/Makefile Wnn/ld/rk/Makefile cWnn/etc/Makefile Wnn/jlib/Makefile Wnn/jserver/Makefile Wnn/wnncons/dic/Makefile cWnn/cd/rk_p/Makefile kWnn/kd/rk/Makefile Wnn/wnncons/Makefile Wnn/man/3.libwnn/misc_lib/Makefile kWnn/etc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2947 EOF
2948 cat >> $CONFIG_STATUS <<EOF
2949
2950 # Protect against being on the right side of a sed subst in config.status.
2951 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2952 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2953 $ac_vpsub
2954 $extrasub
2955 s%@CFLAGS@%$CFLAGS%g
2956 s%@CPPFLAGS@%$CPPFLAGS%g
2957 s%@CXXFLAGS@%$CXXFLAGS%g
2958 s%@DEFS@%$DEFS%g
2959 s%@LDFLAGS@%$LDFLAGS%g
2960 s%@LIBS@%$LIBS%g
2961 s%@exec_prefix@%$exec_prefix%g
2962 s%@prefix@%$prefix%g
2963 s%@program_transform_name@%$program_transform_name%g
2964 s%@bindir@%$bindir%g
2965 s%@sbindir@%$sbindir%g
2966 s%@libexecdir@%$libexecdir%g
2967 s%@datadir@%$datadir%g
2968 s%@sysconfdir@%$sysconfdir%g
2969 s%@sharedstatedir@%$sharedstatedir%g
2970 s%@localstatedir@%$localstatedir%g
2971 s%@libdir@%$libdir%g
2972 s%@includedir@%$includedir%g
2973 s%@oldincludedir@%$oldincludedir%g
2974 s%@infodir@%$infodir%g
2975 s%@mandir@%$mandir%g
2976 s%@CC@%$CC%g
2977 s%@CPP@%$CPP%g
2978 s%@YACC@%$YACC%g
2979 s%@LEX@%$LEX%g
2980 s%@LEXLIB@%$LEXLIB%g
2981 s%@LN_S@%$LN_S%g
2982 s%@SET_MAKE@%$SET_MAKE%g
2983 s%@RANLIB@%$RANLIB%g
2984 s%@CCOPTIONS@%$CCOPTIONS%g
2985 s%@CDEBUGFLAGS@%$CDEBUGFLAGS%g
2986 s%@LIBOBJS@%$LIBOBJS%g
2987
2988 CEOF
2989 EOF
2990
2991 cat >> $CONFIG_STATUS <<\EOF
2992
2993 # Split the substitutions into bite-sized pieces for seds with
2994 # small command number limits, like on Digital OSF/1 and HP-UX.
2995 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2996 ac_file=1 # Number of current file.
2997 ac_beg=1 # First line for current file.
2998 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2999 ac_more_lines=:
3000 ac_sed_cmds=""
3001 while $ac_more_lines; do
3002 if test $ac_beg -gt 1; then
3003 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3004 else
3005 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3006 fi
3007 if test ! -s conftest.s$ac_file; then
3008 ac_more_lines=false
3009 rm -f conftest.s$ac_file
3010 else
3011 if test -z "$ac_sed_cmds"; then
3012 ac_sed_cmds="sed -f conftest.s$ac_file"
3013 else
3014 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3015 fi
3016 ac_file=`expr $ac_file + 1`
3017 ac_beg=$ac_end
3018 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3019 fi
3020 done
3021 if test -z "$ac_sed_cmds"; then
3022 ac_sed_cmds=cat
3023 fi
3024 EOF
3025
3026 cat >> $CONFIG_STATUS <<EOF
3027
3028 CONFIG_FILES=\${CONFIG_FILES-"Wnn/man/2.env/wnn/Makefile Wnn/pubdic/Makefile cWnn/uum/Makefile cWnn/man/6.jutil/Makefile cWnn/man/Makefile Wnn/man/4.cmd/Makefile kWnn/uum/Makefile cWnn/td/rk/Makefile cWnn/include/Makefile Wnn/jd/rk.vi/Makefile Wnn/jd/Makefile Makefile kWnn/include/Makefile Wnn/ld/Makefile Wnn/man/2.env/dic/Makefile Wnn/man/2.env/Makefile Wnn/man/3.libwnn/Makefile Wnn/man/6.jutil/Makefile Wnn/uum/Makefile cWnn/man/1.intro/Makefile cWnn/conv/Makefile Wnn/jd/rk/Makefile cWnn/td/Makefile Wnn/man/Makefile cWnn/td/rk_z/Makefile kWnn/conv/Makefile cWnn/man/4.cmd/Makefile cWnn/jlib/Makefile Wnn/include/Makefile Wnn/jutil/Makefile kWnn/jlib/Makefile cWnn/cd/rk_z/Makefile cWnn/Makefile cWnn/cdic/Makefile cWnn/man/2.env/Makefile Wnn/man/3.libwnn/js_lib/Makefile Wnn/man/3.libwnn/rk_lib/Makefile Contrib/dic/gerodic/Makefile kWnn/Makefile cWnn/jserver/Makefile kWnn/kdic/Makefile cWnn/tdic/Makefile Wnn/romkan/Makefile cWnn/cd/Makefile cWnn/jutil/Makefile cWnn/romkan/Makefile kWnn/jserver/Makefile Wnn/Makefile Wnn/man/3.libwnn/jl_lib/Makefile kWnn/romkan/Makefile kWnn/jutil/Makefile Pubdic/Makefile Wnn/conv/Makefile cWnn/cd/rk/Makefile cWnn/td/rk_p/Makefile Wnn/jlib.V3/Makefile kWnn/kd/Makefile Wnn/ld/rk/Makefile cWnn/etc/Makefile Wnn/jlib/Makefile Wnn/jserver/Makefile Wnn/wnncons/dic/Makefile cWnn/cd/rk_p/Makefile kWnn/kd/rk/Makefile Wnn/wnncons/Makefile Wnn/man/3.libwnn/misc_lib/Makefile kWnn/etc/Makefile"}
3029 EOF
3030 cat >> $CONFIG_STATUS <<\EOF
3031 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3033 case "$ac_file" in
3034 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3035 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3036 *) ac_file_in="${ac_file}.in" ;;
3037 esac
3038
3039 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3040
3041 # Remove last slash and all that follows it. Not all systems have dirname.
3042 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3043 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3044 # The file is in a subdirectory.
3045 test ! -d "$ac_dir" && mkdir "$ac_dir"
3046 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3047 # A "../" for each directory in $ac_dir_suffix.
3048 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3049 else
3050 ac_dir_suffix= ac_dots=
3051 fi
3052
3053 case "$ac_given_srcdir" in
3054 .) srcdir=.
3055 if test -z "$ac_dots"; then top_srcdir=.
3056 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3057 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3058 *) # Relative path.
3059 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3060 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3061 esac
3062
3063
3064 echo creating "$ac_file"
3065 rm -f "$ac_file"
3066 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3067 case "$ac_file" in
3068 *Makefile*) ac_comsub="1i\\
3069 # $configure_input" ;;
3070 *) ac_comsub= ;;
3071 esac
3072
3073 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3074 sed -e "$ac_comsub
3075 s%@configure_input@%$configure_input%g
3076 s%@srcdir@%$srcdir%g
3077 s%@top_srcdir@%$top_srcdir%g
3078 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3079 fi; done
3080 rm -f conftest.s*
3081
3082 EOF
3083 cat >> $CONFIG_STATUS <<EOF
3084
3085 EOF
3086 cat >> $CONFIG_STATUS <<\EOF
3087
3088 exit 0
3089 EOF
3090 chmod +x $CONFIG_STATUS
3091 rm -fr confdefs* $ac_clean_files
3092 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3093

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26