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.6 - (show annotations) (download)
Sun Jan 16 06:46:03 2000 UTC (24 years, 3 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a005, freewnn-1-1-1-a006
Changes since 1.5: +142 -133 lines
FreeWnn-1.1.1-a005 is released.

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 case "$top_srcdir" in
525 .) abs_top_srcdir=`pwd` ;;
526 /*) abs_top_srcdir=top_srcdir;;
527 *) # Relative path.
528 abs_top_srcdir=`pwd`$ac_dots$ac_given_srcdir ;;
529 esac
530
531
532
533
534 # Extract the first word of "gcc", so it can be a program name with args.
535 set dummy gcc; ac_word=$2
536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
537 echo "configure:538: checking for $ac_word" >&5
538 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
539 echo $ac_n "(cached) $ac_c" 1>&6
540 else
541 if test -n "$CC"; then
542 ac_cv_prog_CC="$CC" # Let the user override the test.
543 else
544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
545 for ac_dir in $PATH; do
546 test -z "$ac_dir" && ac_dir=.
547 if test -f $ac_dir/$ac_word; then
548 ac_cv_prog_CC="gcc"
549 break
550 fi
551 done
552 IFS="$ac_save_ifs"
553 fi
554 fi
555 CC="$ac_cv_prog_CC"
556 if test -n "$CC"; then
557 echo "$ac_t""$CC" 1>&6
558 else
559 echo "$ac_t""no" 1>&6
560 fi
561
562 if test -z "$CC"; then
563 # Extract the first word of "cc", so it can be a program name with args.
564 set dummy cc; ac_word=$2
565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566 echo "configure:567: checking for $ac_word" >&5
567 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
569 else
570 if test -n "$CC"; then
571 ac_cv_prog_CC="$CC" # Let the user override the test.
572 else
573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
574 ac_prog_rejected=no
575 for ac_dir in $PATH; do
576 test -z "$ac_dir" && ac_dir=.
577 if test -f $ac_dir/$ac_word; then
578 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
579 ac_prog_rejected=yes
580 continue
581 fi
582 ac_cv_prog_CC="cc"
583 break
584 fi
585 done
586 IFS="$ac_save_ifs"
587 if test $ac_prog_rejected = yes; then
588 # We found a bogon in the path, so make sure we never use it.
589 set dummy $ac_cv_prog_CC
590 shift
591 if test $# -gt 0; then
592 # We chose a different compiler from the bogus one.
593 # However, it has the same basename, so the bogon will be chosen
594 # first if we set CC to just the basename; use the full file name.
595 shift
596 set dummy "$ac_dir/$ac_word" "$@"
597 shift
598 ac_cv_prog_CC="$@"
599 fi
600 fi
601 fi
602 fi
603 CC="$ac_cv_prog_CC"
604 if test -n "$CC"; then
605 echo "$ac_t""$CC" 1>&6
606 else
607 echo "$ac_t""no" 1>&6
608 fi
609
610 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
611 fi
612
613 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
614 echo "configure:615: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
615
616 ac_ext=c
617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
618 ac_cpp='$CPP $CPPFLAGS'
619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
620 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
621 cross_compiling=$ac_cv_prog_cc_cross
622
623 cat > conftest.$ac_ext <<EOF
624 #line 625 "configure"
625 #include "confdefs.h"
626 main(){return(0);}
627 EOF
628 if { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
629 ac_cv_prog_cc_works=yes
630 # If we can't run a trivial program, we are probably using a cross compiler.
631 if (./conftest; exit) 2>/dev/null; then
632 ac_cv_prog_cc_cross=no
633 else
634 ac_cv_prog_cc_cross=yes
635 fi
636 else
637 echo "configure: failed program was:" >&5
638 cat conftest.$ac_ext >&5
639 ac_cv_prog_cc_works=no
640 fi
641 rm -fr conftest*
642
643 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
644 if test $ac_cv_prog_cc_works = no; then
645 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
646 fi
647 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
648 echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
649 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
650 cross_compiling=$ac_cv_prog_cc_cross
651
652 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
653 echo "configure:654: checking whether we are using GNU C" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656 else
657 cat > conftest.c <<EOF
658 #ifdef __GNUC__
659 yes;
660 #endif
661 EOF
662 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
663 ac_cv_prog_gcc=yes
664 else
665 ac_cv_prog_gcc=no
666 fi
667 fi
668
669 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
670
671 if test $ac_cv_prog_gcc = yes; then
672 GCC=yes
673 ac_test_CFLAGS="${CFLAGS+set}"
674 ac_save_CFLAGS="$CFLAGS"
675 CFLAGS=
676 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
677 echo "configure:678: checking whether ${CC-cc} accepts -g" >&5
678 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
680 else
681 echo 'void f(){}' > conftest.c
682 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
683 ac_cv_prog_cc_g=yes
684 else
685 ac_cv_prog_cc_g=no
686 fi
687 rm -f conftest*
688
689 fi
690
691 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
692 if test "$ac_test_CFLAGS" = set; then
693 CFLAGS="$ac_save_CFLAGS"
694 elif test $ac_cv_prog_cc_g = yes; then
695 CFLAGS="-g -O2"
696 else
697 CFLAGS="-O2"
698 fi
699 else
700 GCC=
701 test "${CFLAGS+set}" = set || CFLAGS="-g"
702 fi
703
704 echo $ac_n "checking for cpp""... $ac_c" 1>&6
705 echo "configure:706: checking for cpp" >&5
706 hosttype=`uname`
707 CCOPTIONS=""
708 CDEBUGFLAGS=-O
709 case $hosttype in
710 "Linux")
711 CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
712 CDEBUGFLAGS="-O2 -fno-strength-reduce"
713 if test -x /lib/cpp; then
714 CPP=/lib/cpp
715 fi
716 ;;
717 "FreeBSD"|"NetBSD"|"OpenBSD")
718 CCOPTIONS="-DCSRG_BASED"
719 CDEBUGFLAGS="-O2 -fno-strength-reduce"
720 if test -x /usr/libexec/cpp; then
721 CPP=/usr/libexec/cpp
722 fi
723 ;;
724 "BSD/OS")
725 CCOPTIONS="-DCSRG_BASED"
726 CDEBUGFLAGS="-O2 -fno-strength-reduce"
727 if test -x /usr/bin/cpp; then
728 CPP=/usr/bin/cpp
729 fi
730 ;;
731 "SunOS")
732 case `uname -r` in
733 4.*)
734 if test $CC = gcc; then
735 CDEBUGFLAGS=-O2
736 CCOPTIONS="-Dsun -Dsparc"
737 else
738 CDEBUGFLAGS=-O4
739 CCOPTIONS=""
740 fi
741 CPP=/usr/lib/cpp
742 ;;
743 5.*)
744 if test $CC = gcc; then
745 CDEBUGFLAGS=-O2
746 CCOPTIONS="-Dsun -Dsparc -DSVR4 -DSYSV"
747 else
748 CCOPTIONS="-Xc -xF -xcg92 -Dsun -Dsparc -DSVR4 -DSYSV"
749 fi
750 if test -x /usr/ccs/lib/cpp; then
751 CPP=/usr/ccs/lib/cpp
752 fi
753 ;;
754 *)
755 echo "configure: warning: "This system is not supported. But continuing..."" 1>&2
756 ;;
757 esac
758 ;;
759 "HP-UX")
760 if test $CC = gcc; then
761 CDEBUGFLAGS=-O2
762 CCOPTIONS="-Dhpux -DSYSV"
763 else
764 CCOPTIONS="-Ae -Dhpux -DSYSV"
765 fi
766 case `uname -r` in
767 A.09.*)
768 if test -x /lib/cpp; then
769 CPP=/lib/cpp
770 fi
771 ;;
772 B.10.*|B.11.*)
773 if test -x /opt/langtools/lbin/cpp; then
774 CPP=/opt/langtools/lbin/cpp
775 fi
776 ;;
777 *)
778 echo "configure: warning: "This system is not supported. But continuing..."" 1>&2
779 ;;
780 esac
781 ;;
782 "BeOS")
783 case `uname -m` in
784 "BePC")
785 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
786 CDEBUGFLAGS="-O2 -fno-strength-reduce"
787 if test -x /boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-980929/cpp; then
788 CPP=/boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-980929/cpp
789 fi
790 ;;
791 "BeBox"|"BeMac")
792 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
793 NON_GNU_CPP=/boot/apps/GeekGadgets/bin/cpp
794 ;;
795 *)
796 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
797 ;;
798 esac
799 ;;
800 "AIX")
801 if test $CC = gcc; then
802 CDEBUGFLAGS=-O2
803 else
804 CDEBUGFLAGS=-O
805 fi
806 CCOPTIONS="-DSYSV"
807 CPP=/usr/lib/cpp
808 ;;
809 *)
810 echo "configure: warning: "This system is not supported. But continuing..."" 1>&2
811 ;;
812 esac
813 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
814 echo "configure:815: checking how to run the C preprocessor" >&5
815 # On Suns, sometimes $CPP names a directory.
816 if test -n "$CPP" && test -d "$CPP"; then
817 CPP=
818 fi
819 if test -z "$CPP"; then
820 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
822 else
823 # This must be in double quotes, not single quotes, because CPP may get
824 # substituted into the Makefile and "${CC-cc}" will confuse make.
825 CPP="${CC-cc} -E"
826 # On the NeXT, cc -E runs the code through the compiler's parser,
827 # not just through cpp.
828 cat > conftest.$ac_ext <<EOF
829 #line 830 "configure"
830 #include "confdefs.h"
831 #include <assert.h>
832 Syntax Error
833 EOF
834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
835 { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
836 ac_err=`grep -v '^ *+' conftest.out`
837 if test -z "$ac_err"; then
838 :
839 else
840 echo "$ac_err" >&5
841 echo "configure: failed program was:" >&5
842 cat conftest.$ac_ext >&5
843 rm -rf conftest*
844 CPP="${CC-cc} -E -traditional-cpp"
845 cat > conftest.$ac_ext <<EOF
846 #line 847 "configure"
847 #include "confdefs.h"
848 #include <assert.h>
849 Syntax Error
850 EOF
851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
852 { (eval echo configure:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
853 ac_err=`grep -v '^ *+' conftest.out`
854 if test -z "$ac_err"; then
855 :
856 else
857 echo "$ac_err" >&5
858 echo "configure: failed program was:" >&5
859 cat conftest.$ac_ext >&5
860 rm -rf conftest*
861 CPP=/lib/cpp
862 fi
863 rm -f conftest*
864 fi
865 rm -f conftest*
866 ac_cv_prog_CPP="$CPP"
867 fi
868 CPP="$ac_cv_prog_CPP"
869 else
870 ac_cv_prog_CPP="$CPP"
871 fi
872 echo "$ac_t""$CPP" 1>&6
873
874
875 for ac_prog in 'bison -y' byacc
876 do
877 # Extract the first word of "$ac_prog", so it can be a program name with args.
878 set dummy $ac_prog; ac_word=$2
879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
880 echo "configure:881: checking for $ac_word" >&5
881 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
883 else
884 if test -n "$YACC"; then
885 ac_cv_prog_YACC="$YACC" # Let the user override the test.
886 else
887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
888 for ac_dir in $PATH; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
891 ac_cv_prog_YACC="$ac_prog"
892 break
893 fi
894 done
895 IFS="$ac_save_ifs"
896 fi
897 fi
898 YACC="$ac_cv_prog_YACC"
899 if test -n "$YACC"; then
900 echo "$ac_t""$YACC" 1>&6
901 else
902 echo "$ac_t""no" 1>&6
903 fi
904
905 test -n "$YACC" && break
906 done
907 test -n "$YACC" || YACC="yacc"
908
909 # Extract the first word of "flex", so it can be a program name with args.
910 set dummy flex; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
915 else
916 if test -n "$LEX"; then
917 ac_cv_prog_LEX="$LEX" # Let the user override the test.
918 else
919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
920 for ac_dir in $PATH; do
921 test -z "$ac_dir" && ac_dir=.
922 if test -f $ac_dir/$ac_word; then
923 ac_cv_prog_LEX="flex"
924 break
925 fi
926 done
927 IFS="$ac_save_ifs"
928 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
929 fi
930 fi
931 LEX="$ac_cv_prog_LEX"
932 if test -n "$LEX"; then
933 echo "$ac_t""$LEX" 1>&6
934 else
935 echo "$ac_t""no" 1>&6
936 fi
937
938 if test -z "$LEXLIB"
939 then
940 case "$LEX" in
941 flex*) ac_lib=fl ;;
942 *) ac_lib=l ;;
943 esac
944 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
945 echo "configure:946: checking for yywrap in -l$ac_lib" >&5
946 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
949 else
950 ac_save_LIBS="$LIBS"
951 LIBS="-l$ac_lib $LIBS"
952 cat > conftest.$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
955 /* Override any gcc2 internal prototype to avoid an error. */
956 /* We use char because int might match the return type of a gcc2
957 builtin and then its argument prototype would still apply. */
958 char yywrap();
959
960 int main() {
961 yywrap()
962 ; return 0; }
963 EOF
964 if { (eval echo configure:965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
965 rm -rf conftest*
966 eval "ac_cv_lib_$ac_lib_var=yes"
967 else
968 echo "configure: failed program was:" >&5
969 cat conftest.$ac_ext >&5
970 rm -rf conftest*
971 eval "ac_cv_lib_$ac_lib_var=no"
972 fi
973 rm -f conftest*
974 LIBS="$ac_save_LIBS"
975
976 fi
977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
978 echo "$ac_t""yes" 1>&6
979 LEXLIB="-l$ac_lib"
980 else
981 echo "$ac_t""no" 1>&6
982 fi
983
984 fi
985
986 ac_aux_dir=
987 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
988 if test -f $ac_dir/install-sh; then
989 ac_aux_dir=$ac_dir
990 ac_install_sh="$ac_aux_dir/install-sh -c"
991 break
992 elif test -f $ac_dir/install.sh; then
993 ac_aux_dir=$ac_dir
994 ac_install_sh="$ac_aux_dir/install.sh -c"
995 break
996 fi
997 done
998 if test -z "$ac_aux_dir"; then
999 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1000 fi
1001 ac_config_guess=$ac_aux_dir/config.guess
1002 ac_config_sub=$ac_aux_dir/config.sub
1003 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1004
1005 # Find a good install program. We prefer a C program (faster),
1006 # so one script is as good as another. But avoid the broken or
1007 # incompatible versions:
1008 # SysV /etc/install, /usr/sbin/install
1009 # SunOS /usr/etc/install
1010 # IRIX /sbin/install
1011 # AIX /bin/install
1012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1014 # ./install, which can be erroneously created by make from ./install.sh.
1015 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1016 echo "configure:1017: checking for a BSD compatible install" >&5
1017 if test -z "$INSTALL"; then
1018 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1020 else
1021 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1022 for ac_dir in $PATH; do
1023 # Account for people who put trailing slashes in PATH elements.
1024 case "$ac_dir/" in
1025 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1026 *)
1027 # OSF1 and SCO ODT 3.0 have their own names for install.
1028 for ac_prog in ginstall installbsd scoinst install; do
1029 if test -f $ac_dir/$ac_prog; then
1030 if test $ac_prog = install &&
1031 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1032 # AIX install. It has an incompatible calling convention.
1033 # OSF/1 installbsd also uses dspmsg, but is usable.
1034 :
1035 else
1036 ac_cv_path_install="$ac_dir/$ac_prog -c"
1037 break 2
1038 fi
1039 fi
1040 done
1041 ;;
1042 esac
1043 done
1044 IFS="$ac_save_IFS"
1045
1046 fi
1047 if test "${ac_cv_path_install+set}" = set; then
1048 INSTALL="$ac_cv_path_install"
1049 else
1050 # As a last resort, use the slow shell script. We don't cache a
1051 # path for INSTALL within a source directory, because that will
1052 # break other packages using the cache if that directory is
1053 # removed, or if the path is relative.
1054 INSTALL="$ac_install_sh"
1055 fi
1056 fi
1057 echo "$ac_t""$INSTALL" 1>&6
1058
1059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1060 # It thinks the first close brace ends the variable substitution.
1061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1062
1063 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1064
1065 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1066 echo "configure:1067: checking whether ln -s works" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070 rm -f conftestdata
1071 if ln -s X conftestdata 2>/dev/null
1072 then
1073 rm -f conftestdata
1074 ac_cv_prog_LN_S="ln -s"
1075 else
1076 ac_cv_prog_LN_S=ln
1077 fi
1078 fi
1079 LN_S="$ac_cv_prog_LN_S"
1080 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1081 echo "$ac_t""yes" 1>&6
1082 else
1083 echo "$ac_t""no" 1>&6
1084 fi
1085
1086 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1087 echo "configure:1088: checking whether ${MAKE-make} sets \${MAKE}" >&5
1088 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1089 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092 cat > conftestmake <<\EOF
1093 all:
1094 @echo 'ac_maketemp="${MAKE}"'
1095 EOF
1096 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1097 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1098 if test -n "$ac_maketemp"; then
1099 eval ac_cv_prog_make_${ac_make}_set=yes
1100 else
1101 eval ac_cv_prog_make_${ac_make}_set=no
1102 fi
1103 rm -f conftestmake
1104 fi
1105 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1106 echo "$ac_t""yes" 1>&6
1107 SET_MAKE=
1108 else
1109 echo "$ac_t""no" 1>&6
1110 SET_MAKE="MAKE=${MAKE-make}"
1111 fi
1112
1113 # Extract the first word of "ranlib", so it can be a program name with args.
1114 set dummy ranlib; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120 if test -n "$RANLIB"; then
1121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1122 else
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1124 for ac_dir in $PATH; do
1125 test -z "$ac_dir" && ac_dir=.
1126 if test -f $ac_dir/$ac_word; then
1127 ac_cv_prog_RANLIB="ranlib"
1128 break
1129 fi
1130 done
1131 IFS="$ac_save_ifs"
1132 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1133 fi
1134 fi
1135 RANLIB="$ac_cv_prog_RANLIB"
1136 if test -n "$RANLIB"; then
1137 echo "$ac_t""$RANLIB" 1>&6
1138 else
1139 echo "$ac_t""no" 1>&6
1140 fi
1141
1142
1143
1144
1145 echo $ac_n "checking for main in -lFS""... $ac_c" 1>&6
1146 echo "configure:1147: checking for main in -lFS" >&5
1147 ac_lib_var=`echo FS'_'main | sed 'y%./+-%__p_%'`
1148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150 else
1151 ac_save_LIBS="$LIBS"
1152 LIBS="-lFS $LIBS"
1153 cat > conftest.$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1156
1157 int main() {
1158 main()
1159 ; return 0; }
1160 EOF
1161 if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1162 rm -rf conftest*
1163 eval "ac_cv_lib_$ac_lib_var=yes"
1164 else
1165 echo "configure: failed program was:" >&5
1166 cat conftest.$ac_ext >&5
1167 rm -rf conftest*
1168 eval "ac_cv_lib_$ac_lib_var=no"
1169 fi
1170 rm -f conftest*
1171 LIBS="$ac_save_LIBS"
1172
1173 fi
1174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1175 echo "$ac_t""yes" 1>&6
1176 ac_tr_lib=HAVE_LIB`echo FS | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1177 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1178 cat >> confdefs.h <<EOF
1179 #define $ac_tr_lib 1
1180 EOF
1181
1182 LIBS="-lFS $LIBS"
1183
1184 else
1185 echo "$ac_t""no" 1>&6
1186 fi
1187
1188 echo $ac_n "checking for main in -lFresco""... $ac_c" 1>&6
1189 echo "configure:1190: checking for main in -lFresco" >&5
1190 ac_lib_var=`echo Fresco'_'main | sed 'y%./+-%__p_%'`
1191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 ac_save_LIBS="$LIBS"
1195 LIBS="-lFresco $LIBS"
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199
1200 int main() {
1201 main()
1202 ; return 0; }
1203 EOF
1204 if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1205 rm -rf conftest*
1206 eval "ac_cv_lib_$ac_lib_var=yes"
1207 else
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
1210 rm -rf conftest*
1211 eval "ac_cv_lib_$ac_lib_var=no"
1212 fi
1213 rm -f conftest*
1214 LIBS="$ac_save_LIBS"
1215
1216 fi
1217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1218 echo "$ac_t""yes" 1>&6
1219 ac_tr_lib=HAVE_LIB`echo Fresco | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1221 cat >> confdefs.h <<EOF
1222 #define $ac_tr_lib 1
1223 EOF
1224
1225 LIBS="-lFresco $LIBS"
1226
1227 else
1228 echo "$ac_t""no" 1>&6
1229 fi
1230
1231 echo $ac_n "checking for main in -lICE""... $ac_c" 1>&6
1232 echo "configure:1233: checking for main in -lICE" >&5
1233 ac_lib_var=`echo ICE'_'main | sed 'y%./+-%__p_%'`
1234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237 ac_save_LIBS="$LIBS"
1238 LIBS="-lICE $LIBS"
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1242
1243 int main() {
1244 main()
1245 ; return 0; }
1246 EOF
1247 if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1248 rm -rf conftest*
1249 eval "ac_cv_lib_$ac_lib_var=yes"
1250 else
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1253 rm -rf conftest*
1254 eval "ac_cv_lib_$ac_lib_var=no"
1255 fi
1256 rm -f conftest*
1257 LIBS="$ac_save_LIBS"
1258
1259 fi
1260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1261 echo "$ac_t""yes" 1>&6
1262 ac_tr_lib=HAVE_LIB`echo ICE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1264 cat >> confdefs.h <<EOF
1265 #define $ac_tr_lib 1
1266 EOF
1267
1268 LIBS="-lICE $LIBS"
1269
1270 else
1271 echo "$ac_t""no" 1>&6
1272 fi
1273
1274 echo $ac_n "checking for main in -lPEX5""... $ac_c" 1>&6
1275 echo "configure:1276: checking for main in -lPEX5" >&5
1276 ac_lib_var=`echo PEX5'_'main | sed 'y%./+-%__p_%'`
1277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 ac_save_LIBS="$LIBS"
1281 LIBS="-lPEX5 $LIBS"
1282 cat > conftest.$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1285
1286 int main() {
1287 main()
1288 ; return 0; }
1289 EOF
1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1291 rm -rf conftest*
1292 eval "ac_cv_lib_$ac_lib_var=yes"
1293 else
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1296 rm -rf conftest*
1297 eval "ac_cv_lib_$ac_lib_var=no"
1298 fi
1299 rm -f conftest*
1300 LIBS="$ac_save_LIBS"
1301
1302 fi
1303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 ac_tr_lib=HAVE_LIB`echo PEX5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1306 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1307 cat >> confdefs.h <<EOF
1308 #define $ac_tr_lib 1
1309 EOF
1310
1311 LIBS="-lPEX5 $LIBS"
1312
1313 else
1314 echo "$ac_t""no" 1>&6
1315 fi
1316
1317 echo $ac_n "checking for main in -lSM""... $ac_c" 1>&6
1318 echo "configure:1319: checking for main in -lSM" >&5
1319 ac_lib_var=`echo SM'_'main | sed 'y%./+-%__p_%'`
1320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323 ac_save_LIBS="$LIBS"
1324 LIBS="-lSM $LIBS"
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1328
1329 int main() {
1330 main()
1331 ; return 0; }
1332 EOF
1333 if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1334 rm -rf conftest*
1335 eval "ac_cv_lib_$ac_lib_var=yes"
1336 else
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1339 rm -rf conftest*
1340 eval "ac_cv_lib_$ac_lib_var=no"
1341 fi
1342 rm -f conftest*
1343 LIBS="$ac_save_LIBS"
1344
1345 fi
1346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1347 echo "$ac_t""yes" 1>&6
1348 ac_tr_lib=HAVE_LIB`echo SM | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1350 cat >> confdefs.h <<EOF
1351 #define $ac_tr_lib 1
1352 EOF
1353
1354 LIBS="-lSM $LIBS"
1355
1356 else
1357 echo "$ac_t""no" 1>&6
1358 fi
1359
1360 echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
1361 echo "configure:1362: checking for main in -lX11" >&5
1362 ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
1363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1365 else
1366 ac_save_LIBS="$LIBS"
1367 LIBS="-lX11 $LIBS"
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371
1372 int main() {
1373 main()
1374 ; return 0; }
1375 EOF
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1377 rm -rf conftest*
1378 eval "ac_cv_lib_$ac_lib_var=yes"
1379 else
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1382 rm -rf conftest*
1383 eval "ac_cv_lib_$ac_lib_var=no"
1384 fi
1385 rm -f conftest*
1386 LIBS="$ac_save_LIBS"
1387
1388 fi
1389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1390 echo "$ac_t""yes" 1>&6
1391 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1393 cat >> confdefs.h <<EOF
1394 #define $ac_tr_lib 1
1395 EOF
1396
1397 LIBS="-lX11 $LIBS"
1398
1399 else
1400 echo "$ac_t""no" 1>&6
1401 fi
1402
1403 echo $ac_n "checking for main in -lXIE""... $ac_c" 1>&6
1404 echo "configure:1405: checking for main in -lXIE" >&5
1405 ac_lib_var=`echo XIE'_'main | sed 'y%./+-%__p_%'`
1406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1408 else
1409 ac_save_LIBS="$LIBS"
1410 LIBS="-lXIE $LIBS"
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1414
1415 int main() {
1416 main()
1417 ; return 0; }
1418 EOF
1419 if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1420 rm -rf conftest*
1421 eval "ac_cv_lib_$ac_lib_var=yes"
1422 else
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1425 rm -rf conftest*
1426 eval "ac_cv_lib_$ac_lib_var=no"
1427 fi
1428 rm -f conftest*
1429 LIBS="$ac_save_LIBS"
1430
1431 fi
1432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1433 echo "$ac_t""yes" 1>&6
1434 ac_tr_lib=HAVE_LIB`echo XIE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1435 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1436 cat >> confdefs.h <<EOF
1437 #define $ac_tr_lib 1
1438 EOF
1439
1440 LIBS="-lXIE $LIBS"
1441
1442 else
1443 echo "$ac_t""no" 1>&6
1444 fi
1445
1446 echo $ac_n "checking for main in -lXau""... $ac_c" 1>&6
1447 echo "configure:1448: checking for main in -lXau" >&5
1448 ac_lib_var=`echo Xau'_'main | sed 'y%./+-%__p_%'`
1449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452 ac_save_LIBS="$LIBS"
1453 LIBS="-lXau $LIBS"
1454 cat > conftest.$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1457
1458 int main() {
1459 main()
1460 ; return 0; }
1461 EOF
1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1463 rm -rf conftest*
1464 eval "ac_cv_lib_$ac_lib_var=yes"
1465 else
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1468 rm -rf conftest*
1469 eval "ac_cv_lib_$ac_lib_var=no"
1470 fi
1471 rm -f conftest*
1472 LIBS="$ac_save_LIBS"
1473
1474 fi
1475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1477 ac_tr_lib=HAVE_LIB`echo Xau | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1479 cat >> confdefs.h <<EOF
1480 #define $ac_tr_lib 1
1481 EOF
1482
1483 LIBS="-lXau $LIBS"
1484
1485 else
1486 echo "$ac_t""no" 1>&6
1487 fi
1488
1489 echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
1490 echo "configure:1491: checking for main in -lXaw" >&5
1491 ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
1492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494 else
1495 ac_save_LIBS="$LIBS"
1496 LIBS="-lXaw $LIBS"
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500
1501 int main() {
1502 main()
1503 ; return 0; }
1504 EOF
1505 if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1506 rm -rf conftest*
1507 eval "ac_cv_lib_$ac_lib_var=yes"
1508 else
1509 echo "configure: failed program was:" >&5
1510 cat conftest.$ac_ext >&5
1511 rm -rf conftest*
1512 eval "ac_cv_lib_$ac_lib_var=no"
1513 fi
1514 rm -f conftest*
1515 LIBS="$ac_save_LIBS"
1516
1517 fi
1518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1519 echo "$ac_t""yes" 1>&6
1520 ac_tr_lib=HAVE_LIB`echo Xaw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1522 cat >> confdefs.h <<EOF
1523 #define $ac_tr_lib 1
1524 EOF
1525
1526 LIBS="-lXaw $LIBS"
1527
1528 else
1529 echo "$ac_t""no" 1>&6
1530 fi
1531
1532 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
1533 echo "configure:1534: checking for main in -lXbsd" >&5
1534 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
1535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1537 else
1538 ac_save_LIBS="$LIBS"
1539 LIBS="-lXbsd $LIBS"
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1543
1544 int main() {
1545 main()
1546 ; return 0; }
1547 EOF
1548 if { (eval echo configure:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1549 rm -rf conftest*
1550 eval "ac_cv_lib_$ac_lib_var=yes"
1551 else
1552 echo "configure: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1554 rm -rf conftest*
1555 eval "ac_cv_lib_$ac_lib_var=no"
1556 fi
1557 rm -f conftest*
1558 LIBS="$ac_save_LIBS"
1559
1560 fi
1561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1562 echo "$ac_t""yes" 1>&6
1563 ac_tr_lib=HAVE_LIB`echo Xbsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1564 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1565 cat >> confdefs.h <<EOF
1566 #define $ac_tr_lib 1
1567 EOF
1568
1569 LIBS="-lXbsd $LIBS"
1570
1571 else
1572 echo "$ac_t""no" 1>&6
1573 fi
1574
1575 echo $ac_n "checking for main in -lXdmcp""... $ac_c" 1>&6
1576 echo "configure:1577: checking for main in -lXdmcp" >&5
1577 ac_lib_var=`echo Xdmcp'_'main | sed 'y%./+-%__p_%'`
1578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1580 else
1581 ac_save_LIBS="$LIBS"
1582 LIBS="-lXdmcp $LIBS"
1583 cat > conftest.$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1586
1587 int main() {
1588 main()
1589 ; return 0; }
1590 EOF
1591 if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1592 rm -rf conftest*
1593 eval "ac_cv_lib_$ac_lib_var=yes"
1594 else
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1597 rm -rf conftest*
1598 eval "ac_cv_lib_$ac_lib_var=no"
1599 fi
1600 rm -f conftest*
1601 LIBS="$ac_save_LIBS"
1602
1603 fi
1604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1606 ac_tr_lib=HAVE_LIB`echo Xdmcp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1608 cat >> confdefs.h <<EOF
1609 #define $ac_tr_lib 1
1610 EOF
1611
1612 LIBS="-lXdmcp $LIBS"
1613
1614 else
1615 echo "$ac_t""no" 1>&6
1616 fi
1617
1618 echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
1619 echo "configure:1620: checking for main in -lXext" >&5
1620 ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
1621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1623 else
1624 ac_save_LIBS="$LIBS"
1625 LIBS="-lXext $LIBS"
1626 cat > conftest.$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1629
1630 int main() {
1631 main()
1632 ; return 0; }
1633 EOF
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1635 rm -rf conftest*
1636 eval "ac_cv_lib_$ac_lib_var=yes"
1637 else
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1640 rm -rf conftest*
1641 eval "ac_cv_lib_$ac_lib_var=no"
1642 fi
1643 rm -f conftest*
1644 LIBS="$ac_save_LIBS"
1645
1646 fi
1647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1648 echo "$ac_t""yes" 1>&6
1649 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1650 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1651 cat >> confdefs.h <<EOF
1652 #define $ac_tr_lib 1
1653 EOF
1654
1655 LIBS="-lXext $LIBS"
1656
1657 else
1658 echo "$ac_t""no" 1>&6
1659 fi
1660
1661 echo $ac_n "checking for main in -lXi""... $ac_c" 1>&6
1662 echo "configure:1663: checking for main in -lXi" >&5
1663 ac_lib_var=`echo Xi'_'main | sed 'y%./+-%__p_%'`
1664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1666 else
1667 ac_save_LIBS="$LIBS"
1668 LIBS="-lXi $LIBS"
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672
1673 int main() {
1674 main()
1675 ; return 0; }
1676 EOF
1677 if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1678 rm -rf conftest*
1679 eval "ac_cv_lib_$ac_lib_var=yes"
1680 else
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1683 rm -rf conftest*
1684 eval "ac_cv_lib_$ac_lib_var=no"
1685 fi
1686 rm -f conftest*
1687 LIBS="$ac_save_LIBS"
1688
1689 fi
1690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1691 echo "$ac_t""yes" 1>&6
1692 ac_tr_lib=HAVE_LIB`echo Xi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1693 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1694 cat >> confdefs.h <<EOF
1695 #define $ac_tr_lib 1
1696 EOF
1697
1698 LIBS="-lXi $LIBS"
1699
1700 else
1701 echo "$ac_t""no" 1>&6
1702 fi
1703
1704 echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
1705 echo "configure:1706: checking for main in -lXmu" >&5
1706 ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
1707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710 ac_save_LIBS="$LIBS"
1711 LIBS="-lXmu $LIBS"
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715
1716 int main() {
1717 main()
1718 ; return 0; }
1719 EOF
1720 if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1721 rm -rf conftest*
1722 eval "ac_cv_lib_$ac_lib_var=yes"
1723 else
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1726 rm -rf conftest*
1727 eval "ac_cv_lib_$ac_lib_var=no"
1728 fi
1729 rm -f conftest*
1730 LIBS="$ac_save_LIBS"
1731
1732 fi
1733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1734 echo "$ac_t""yes" 1>&6
1735 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1736 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1737 cat >> confdefs.h <<EOF
1738 #define $ac_tr_lib 1
1739 EOF
1740
1741 LIBS="-lXmu $LIBS"
1742
1743 else
1744 echo "$ac_t""no" 1>&6
1745 fi
1746
1747 echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
1748 echo "configure:1749: checking for main in -lXt" >&5
1749 ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
1750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1752 else
1753 ac_save_LIBS="$LIBS"
1754 LIBS="-lXt $LIBS"
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758
1759 int main() {
1760 main()
1761 ; return 0; }
1762 EOF
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1764 rm -rf conftest*
1765 eval "ac_cv_lib_$ac_lib_var=yes"
1766 else
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769 rm -rf conftest*
1770 eval "ac_cv_lib_$ac_lib_var=no"
1771 fi
1772 rm -f conftest*
1773 LIBS="$ac_save_LIBS"
1774
1775 fi
1776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1777 echo "$ac_t""yes" 1>&6
1778 ac_tr_lib=HAVE_LIB`echo Xt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1780 cat >> confdefs.h <<EOF
1781 #define $ac_tr_lib 1
1782 EOF
1783
1784 LIBS="-lXt $LIBS"
1785
1786 else
1787 echo "$ac_t""no" 1>&6
1788 fi
1789
1790 echo $ac_n "checking for main in -lXtf""... $ac_c" 1>&6
1791 echo "configure:1792: checking for main in -lXtf" >&5
1792 ac_lib_var=`echo Xtf'_'main | sed 'y%./+-%__p_%'`
1793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795 else
1796 ac_save_LIBS="$LIBS"
1797 LIBS="-lXtf $LIBS"
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801
1802 int main() {
1803 main()
1804 ; return 0; }
1805 EOF
1806 if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1807 rm -rf conftest*
1808 eval "ac_cv_lib_$ac_lib_var=yes"
1809 else
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1812 rm -rf conftest*
1813 eval "ac_cv_lib_$ac_lib_var=no"
1814 fi
1815 rm -f conftest*
1816 LIBS="$ac_save_LIBS"
1817
1818 fi
1819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 ac_tr_lib=HAVE_LIB`echo Xtf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1822 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1823 cat >> confdefs.h <<EOF
1824 #define $ac_tr_lib 1
1825 EOF
1826
1827 LIBS="-lXtf $LIBS"
1828
1829 else
1830 echo "$ac_t""no" 1>&6
1831 fi
1832
1833 echo $ac_n "checking for main in -lXtst""... $ac_c" 1>&6
1834 echo "configure:1835: checking for main in -lXtst" >&5
1835 ac_lib_var=`echo Xtst'_'main | sed 'y%./+-%__p_%'`
1836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1838 else
1839 ac_save_LIBS="$LIBS"
1840 LIBS="-lXtst $LIBS"
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844
1845 int main() {
1846 main()
1847 ; return 0; }
1848 EOF
1849 if { (eval echo configure:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1850 rm -rf conftest*
1851 eval "ac_cv_lib_$ac_lib_var=yes"
1852 else
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1855 rm -rf conftest*
1856 eval "ac_cv_lib_$ac_lib_var=no"
1857 fi
1858 rm -f conftest*
1859 LIBS="$ac_save_LIBS"
1860
1861 fi
1862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1863 echo "$ac_t""yes" 1>&6
1864 ac_tr_lib=HAVE_LIB`echo Xtst | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1865 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1866 cat >> confdefs.h <<EOF
1867 #define $ac_tr_lib 1
1868 EOF
1869
1870 LIBS="-lXtst $LIBS"
1871
1872 else
1873 echo "$ac_t""no" 1>&6
1874 fi
1875
1876 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1877 echo "configure:1878: checking for main in -lcurses" >&5
1878 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882 ac_save_LIBS="$LIBS"
1883 LIBS="-lcurses $LIBS"
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887
1888 int main() {
1889 main()
1890 ; return 0; }
1891 EOF
1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1893 rm -rf conftest*
1894 eval "ac_cv_lib_$ac_lib_var=yes"
1895 else
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1898 rm -rf conftest*
1899 eval "ac_cv_lib_$ac_lib_var=no"
1900 fi
1901 rm -f conftest*
1902 LIBS="$ac_save_LIBS"
1903
1904 fi
1905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1909 cat >> confdefs.h <<EOF
1910 #define $ac_tr_lib 1
1911 EOF
1912
1913 LIBS="-lcurses $LIBS"
1914
1915 else
1916 echo "$ac_t""no" 1>&6
1917 fi
1918
1919 echo $ac_n "checking for main in -lfl""... $ac_c" 1>&6
1920 echo "configure:1921: checking for main in -lfl" >&5
1921 ac_lib_var=`echo fl'_'main | sed 'y%./+-%__p_%'`
1922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1924 else
1925 ac_save_LIBS="$LIBS"
1926 LIBS="-lfl $LIBS"
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930
1931 int main() {
1932 main()
1933 ; return 0; }
1934 EOF
1935 if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1936 rm -rf conftest*
1937 eval "ac_cv_lib_$ac_lib_var=yes"
1938 else
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941 rm -rf conftest*
1942 eval "ac_cv_lib_$ac_lib_var=no"
1943 fi
1944 rm -f conftest*
1945 LIBS="$ac_save_LIBS"
1946
1947 fi
1948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1949 echo "$ac_t""yes" 1>&6
1950 ac_tr_lib=HAVE_LIB`echo fl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1951 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1952 cat >> confdefs.h <<EOF
1953 #define $ac_tr_lib 1
1954 EOF
1955
1956 LIBS="-lfl $LIBS"
1957
1958 else
1959 echo "$ac_t""no" 1>&6
1960 fi
1961
1962 echo $ac_n "checking for main in -lfont""... $ac_c" 1>&6
1963 echo "configure:1964: checking for main in -lfont" >&5
1964 ac_lib_var=`echo font'_'main | sed 'y%./+-%__p_%'`
1965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1967 else
1968 ac_save_LIBS="$LIBS"
1969 LIBS="-lfont $LIBS"
1970 cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973
1974 int main() {
1975 main()
1976 ; return 0; }
1977 EOF
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1979 rm -rf conftest*
1980 eval "ac_cv_lib_$ac_lib_var=yes"
1981 else
1982 echo "configure: failed program was:" >&5
1983 cat conftest.$ac_ext >&5
1984 rm -rf conftest*
1985 eval "ac_cv_lib_$ac_lib_var=no"
1986 fi
1987 rm -f conftest*
1988 LIBS="$ac_save_LIBS"
1989
1990 fi
1991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1992 echo "$ac_t""yes" 1>&6
1993 ac_tr_lib=HAVE_LIB`echo font | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1994 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1995 cat >> confdefs.h <<EOF
1996 #define $ac_tr_lib 1
1997 EOF
1998
1999 LIBS="-lfont $LIBS"
2000
2001 else
2002 echo "$ac_t""no" 1>&6
2003 fi
2004
2005 echo $ac_n "checking for main in -loldX""... $ac_c" 1>&6
2006 echo "configure:2007: checking for main in -loldX" >&5
2007 ac_lib_var=`echo oldX'_'main | sed 'y%./+-%__p_%'`
2008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2010 else
2011 ac_save_LIBS="$LIBS"
2012 LIBS="-loldX $LIBS"
2013 cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2016
2017 int main() {
2018 main()
2019 ; return 0; }
2020 EOF
2021 if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2022 rm -rf conftest*
2023 eval "ac_cv_lib_$ac_lib_var=yes"
2024 else
2025 echo "configure: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2027 rm -rf conftest*
2028 eval "ac_cv_lib_$ac_lib_var=no"
2029 fi
2030 rm -f conftest*
2031 LIBS="$ac_save_LIBS"
2032
2033 fi
2034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2035 echo "$ac_t""yes" 1>&6
2036 ac_tr_lib=HAVE_LIB`echo oldX | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2037 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2038 cat >> confdefs.h <<EOF
2039 #define $ac_tr_lib 1
2040 EOF
2041
2042 LIBS="-loldX $LIBS"
2043
2044 else
2045 echo "$ac_t""no" 1>&6
2046 fi
2047
2048 echo $ac_n "checking for main in -lphigs""... $ac_c" 1>&6
2049 echo "configure:2050: checking for main in -lphigs" >&5
2050 ac_lib_var=`echo phigs'_'main | sed 'y%./+-%__p_%'`
2051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053 else
2054 ac_save_LIBS="$LIBS"
2055 LIBS="-lphigs $LIBS"
2056 cat > conftest.$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2059
2060 int main() {
2061 main()
2062 ; return 0; }
2063 EOF
2064 if { (eval echo configure:2065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2065 rm -rf conftest*
2066 eval "ac_cv_lib_$ac_lib_var=yes"
2067 else
2068 echo "configure: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2070 rm -rf conftest*
2071 eval "ac_cv_lib_$ac_lib_var=no"
2072 fi
2073 rm -f conftest*
2074 LIBS="$ac_save_LIBS"
2075
2076 fi
2077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2078 echo "$ac_t""yes" 1>&6
2079 ac_tr_lib=HAVE_LIB`echo phigs | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2081 cat >> confdefs.h <<EOF
2082 #define $ac_tr_lib 1
2083 EOF
2084
2085 LIBS="-lphigs $LIBS"
2086
2087 else
2088 echo "$ac_t""no" 1>&6
2089 fi
2090
2091 echo $ac_n "checking for main in -lxpg4""... $ac_c" 1>&6
2092 echo "configure:2093: checking for main in -lxpg4" >&5
2093 ac_lib_var=`echo xpg4'_'main | sed 'y%./+-%__p_%'`
2094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2096 else
2097 ac_save_LIBS="$LIBS"
2098 LIBS="-lxpg4 $LIBS"
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2102
2103 int main() {
2104 main()
2105 ; return 0; }
2106 EOF
2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2108 rm -rf conftest*
2109 eval "ac_cv_lib_$ac_lib_var=yes"
2110 else
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2113 rm -rf conftest*
2114 eval "ac_cv_lib_$ac_lib_var=no"
2115 fi
2116 rm -f conftest*
2117 LIBS="$ac_save_LIBS"
2118
2119 fi
2120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2121 echo "$ac_t""yes" 1>&6
2122 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2123 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2124 cat >> confdefs.h <<EOF
2125 #define $ac_tr_lib 1
2126 EOF
2127
2128 LIBS="-lxpg4 $LIBS"
2129
2130 else
2131 echo "$ac_t""no" 1>&6
2132 fi
2133
2134
2135 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
2136 echo "configure:2137: checking for main in -lcrypt" >&5
2137 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
2138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140 else
2141 ac_save_LIBS="$LIBS"
2142 LIBS="-lcrypt $LIBS"
2143 cat > conftest.$ac_ext <<EOF
2144 #line 2145 "configure"
2145 #include "confdefs.h"
2146
2147 int main() {
2148 main()
2149 ; return 0; }
2150 EOF
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2152 rm -rf conftest*
2153 eval "ac_cv_lib_$ac_lib_var=yes"
2154 else
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2157 rm -rf conftest*
2158 eval "ac_cv_lib_$ac_lib_var=no"
2159 fi
2160 rm -f conftest*
2161 LIBS="$ac_save_LIBS"
2162
2163 fi
2164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2166 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2168 cat >> confdefs.h <<EOF
2169 #define $ac_tr_lib 1
2170 EOF
2171
2172 LIBS="-lcrypt $LIBS"
2173
2174 else
2175 echo "$ac_t""no" 1>&6
2176 fi
2177
2178 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2179 echo "configure:2180: checking for main in -lsocket" >&5
2180 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2183 else
2184 ac_save_LIBS="$LIBS"
2185 LIBS="-lsocket $LIBS"
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2189
2190 int main() {
2191 main()
2192 ; return 0; }
2193 EOF
2194 if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2195 rm -rf conftest*
2196 eval "ac_cv_lib_$ac_lib_var=yes"
2197 else
2198 echo "configure: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 rm -rf conftest*
2201 eval "ac_cv_lib_$ac_lib_var=no"
2202 fi
2203 rm -f conftest*
2204 LIBS="$ac_save_LIBS"
2205
2206 fi
2207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2210 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2211 cat >> confdefs.h <<EOF
2212 #define $ac_tr_lib 1
2213 EOF
2214
2215 LIBS="-lsocket $LIBS"
2216
2217 else
2218 echo "$ac_t""no" 1>&6
2219 fi
2220
2221 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2222 echo "configure:2223: checking for main in -lnsl" >&5
2223 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227 ac_save_LIBS="$LIBS"
2228 LIBS="-lnsl $LIBS"
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232
2233 int main() {
2234 main()
2235 ; return 0; }
2236 EOF
2237 if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2238 rm -rf conftest*
2239 eval "ac_cv_lib_$ac_lib_var=yes"
2240 else
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2243 rm -rf conftest*
2244 eval "ac_cv_lib_$ac_lib_var=no"
2245 fi
2246 rm -f conftest*
2247 LIBS="$ac_save_LIBS"
2248
2249 fi
2250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2252 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2254 cat >> confdefs.h <<EOF
2255 #define $ac_tr_lib 1
2256 EOF
2257
2258 LIBS="-lnsl $LIBS"
2259
2260 else
2261 echo "$ac_t""no" 1>&6
2262 fi
2263
2264
2265 # If we find X, set shell vars x_includes and x_libraries to the
2266 # paths, otherwise set no_x=yes.
2267 # Uses ac_ vars as temps to allow command line to override cache and checks.
2268 # --without-x overrides everything else, but does not touch the cache.
2269 echo $ac_n "checking for X""... $ac_c" 1>&6
2270 echo "configure:2271: checking for X" >&5
2271
2272 # Check whether --with-x or --without-x was given.
2273 if test "${with_x+set}" = set; then
2274 withval="$with_x"
2275 :
2276 fi
2277
2278 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2279 if test "x$with_x" = xno; then
2280 # The user explicitly disabled X.
2281 have_x=disabled
2282 else
2283 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2284 # Both variables are already set.
2285 have_x=yes
2286 else
2287 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2289 else
2290 # One or both of the vars are not set, and there is no cached value.
2291 ac_x_includes=NO ac_x_libraries=NO
2292 rm -fr conftestdir
2293 if mkdir conftestdir; then
2294 cd conftestdir
2295 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2296 cat > Imakefile <<'EOF'
2297 acfindx:
2298 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2299 EOF
2300 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2301 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2302 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2303 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2304 for ac_extension in a so sl; do
2305 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2306 test -f $ac_im_libdir/libX11.$ac_extension; then
2307 ac_im_usrlibdir=$ac_im_libdir; break
2308 fi
2309 done
2310 # Screen out bogus values from the imake configuration. They are
2311 # bogus both because they are the default anyway, and because
2312 # using them would break gcc on systems where it needs fixed includes.
2313 case "$ac_im_incroot" in
2314 /usr/include) ;;
2315 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2316 esac
2317 case "$ac_im_usrlibdir" in
2318 /usr/lib | /lib) ;;
2319 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2320 esac
2321 fi
2322 cd ..
2323 rm -fr conftestdir
2324 fi
2325
2326 if test "$ac_x_includes" = NO; then
2327 # Guess where to find include files, by looking for this one X11 .h file.
2328 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2329
2330 # First, try using that file with no special directory specified.
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 #include <$x_direct_test_include>
2335 EOF
2336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2337 { (eval echo configure:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2338 ac_err=`grep -v '^ *+' conftest.out`
2339 if test -z "$ac_err"; then
2340 rm -rf conftest*
2341 # We can compile using X headers with no special include directory.
2342 ac_x_includes=
2343 else
2344 echo "$ac_err" >&5
2345 echo "configure: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2347 rm -rf conftest*
2348 # Look for the header file in a standard set of common directories.
2349 # Check X11 before X11Rn because it is often a symlink to the current release.
2350 for ac_dir in \
2351 /usr/X11/include \
2352 /usr/X11R6/include \
2353 /usr/X11R5/include \
2354 /usr/X11R4/include \
2355 \
2356 /usr/include/X11 \
2357 /usr/include/X11R6 \
2358 /usr/include/X11R5 \
2359 /usr/include/X11R4 \
2360 \
2361 /usr/local/X11/include \
2362 /usr/local/X11R6/include \
2363 /usr/local/X11R5/include \
2364 /usr/local/X11R4/include \
2365 \
2366 /usr/local/include/X11 \
2367 /usr/local/include/X11R6 \
2368 /usr/local/include/X11R5 \
2369 /usr/local/include/X11R4 \
2370 \
2371 /usr/X386/include \
2372 /usr/x386/include \
2373 /usr/XFree86/include/X11 \
2374 \
2375 /usr/include \
2376 /usr/local/include \
2377 /usr/unsupported/include \
2378 /usr/athena/include \
2379 /usr/local/x11r5/include \
2380 /usr/lpp/Xamples/include \
2381 \
2382 /usr/openwin/include \
2383 /usr/openwin/share/include \
2384 ; \
2385 do
2386 if test -r "$ac_dir/$x_direct_test_include"; then
2387 ac_x_includes=$ac_dir
2388 break
2389 fi
2390 done
2391 fi
2392 rm -f conftest*
2393 fi # $ac_x_includes = NO
2394
2395 if test "$ac_x_libraries" = NO; then
2396 # Check for the libraries.
2397
2398 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2399 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2400
2401 # See if we find them without any special options.
2402 # Don't add to $LIBS permanently.
2403 ac_save_LIBS="$LIBS"
2404 LIBS="-l$x_direct_test_library $LIBS"
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408
2409 int main() {
2410 ${x_direct_test_function}()
2411 ; return 0; }
2412 EOF
2413 if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2414 rm -rf conftest*
2415 LIBS="$ac_save_LIBS"
2416 # We can link X programs with no special library path.
2417 ac_x_libraries=
2418 else
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2421 rm -rf conftest*
2422 LIBS="$ac_save_LIBS"
2423 # First see if replacing the include by lib works.
2424 # Check X11 before X11Rn because it is often a symlink to the current release.
2425 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2426 /usr/X11/lib \
2427 /usr/X11R6/lib \
2428 /usr/X11R5/lib \
2429 /usr/X11R4/lib \
2430 \
2431 /usr/lib/X11 \
2432 /usr/lib/X11R6 \
2433 /usr/lib/X11R5 \
2434 /usr/lib/X11R4 \
2435 \
2436 /usr/local/X11/lib \
2437 /usr/local/X11R6/lib \
2438 /usr/local/X11R5/lib \
2439 /usr/local/X11R4/lib \
2440 \
2441 /usr/local/lib/X11 \
2442 /usr/local/lib/X11R6 \
2443 /usr/local/lib/X11R5 \
2444 /usr/local/lib/X11R4 \
2445 \
2446 /usr/X386/lib \
2447 /usr/x386/lib \
2448 /usr/XFree86/lib/X11 \
2449 \
2450 /usr/lib \
2451 /usr/local/lib \
2452 /usr/unsupported/lib \
2453 /usr/athena/lib \
2454 /usr/local/x11r5/lib \
2455 /usr/lpp/Xamples/lib \
2456 /lib/usr/lib/X11 \
2457 \
2458 /usr/openwin/lib \
2459 /usr/openwin/share/lib \
2460 ; \
2461 do
2462 for ac_extension in a so sl; do
2463 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2464 ac_x_libraries=$ac_dir
2465 break 2
2466 fi
2467 done
2468 done
2469 fi
2470 rm -f conftest*
2471 fi # $ac_x_libraries = NO
2472
2473 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2474 # Didn't find X anywhere. Cache the known absence of X.
2475 ac_cv_have_x="have_x=no"
2476 else
2477 # Record where we found X for the cache.
2478 ac_cv_have_x="have_x=yes \
2479 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2480 fi
2481 fi
2482 fi
2483 eval "$ac_cv_have_x"
2484 fi # $with_x != no
2485
2486 if test "$have_x" != yes; then
2487 echo "$ac_t""$have_x" 1>&6
2488 no_x=yes
2489 else
2490 # If each of the values was on the command line, it overrides each guess.
2491 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2492 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2493 # Update the cache value to reflect the command line values.
2494 ac_cv_have_x="have_x=yes \
2495 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2496 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2497 fi
2498
2499 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2500 echo "configure:2501: checking for ANSI C header files" >&5
2501 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2503 else
2504 cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 #include <stdlib.h>
2508 #include <stdarg.h>
2509 #include <string.h>
2510 #include <float.h>
2511 EOF
2512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err=`grep -v '^ *+' conftest.out`
2515 if test -z "$ac_err"; then
2516 rm -rf conftest*
2517 ac_cv_header_stdc=yes
2518 else
2519 echo "$ac_err" >&5
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 rm -rf conftest*
2523 ac_cv_header_stdc=no
2524 fi
2525 rm -f conftest*
2526
2527 if test $ac_cv_header_stdc = yes; then
2528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 #include <string.h>
2533 EOF
2534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2535 egrep "memchr" >/dev/null 2>&1; then
2536 :
2537 else
2538 rm -rf conftest*
2539 ac_cv_header_stdc=no
2540 fi
2541 rm -f conftest*
2542
2543 fi
2544
2545 if test $ac_cv_header_stdc = yes; then
2546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 #include <stdlib.h>
2551 EOF
2552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2553 egrep "free" >/dev/null 2>&1; then
2554 :
2555 else
2556 rm -rf conftest*
2557 ac_cv_header_stdc=no
2558 fi
2559 rm -f conftest*
2560
2561 fi
2562
2563 if test $ac_cv_header_stdc = yes; then
2564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2565 if test "$cross_compiling" = yes; then
2566 :
2567 else
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <ctype.h>
2572 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2573 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2575 int main () { int i; for (i = 0; i < 256; i++)
2576 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2577 exit (0); }
2578
2579 EOF
2580 if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2581 then
2582 :
2583 else
2584 echo "configure: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2586 rm -fr conftest*
2587 ac_cv_header_stdc=no
2588 fi
2589 rm -fr conftest*
2590 fi
2591
2592 fi
2593 fi
2594
2595 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2596 if test $ac_cv_header_stdc = yes; then
2597 cat >> confdefs.h <<\EOF
2598 #define STDC_HEADERS 1
2599 EOF
2600
2601 fi
2602
2603 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2604 echo "configure:2605: checking for sys/wait.h that is POSIX.1 compatible" >&5
2605 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2607 else
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2611 #include <sys/types.h>
2612 #include <sys/wait.h>
2613 #ifndef WEXITSTATUS
2614 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2615 #endif
2616 #ifndef WIFEXITED
2617 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2618 #endif
2619 int main() {
2620 int s;
2621 wait (&s);
2622 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2623 ; return 0; }
2624 EOF
2625 if { (eval echo configure:2626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2626 rm -rf conftest*
2627 ac_cv_header_sys_wait_h=yes
2628 else
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 rm -rf conftest*
2632 ac_cv_header_sys_wait_h=no
2633 fi
2634 rm -f conftest*
2635 fi
2636
2637 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2638 if test $ac_cv_header_sys_wait_h = yes; then
2639 cat >> confdefs.h <<\EOF
2640 #define HAVE_SYS_WAIT_H 1
2641 EOF
2642
2643 fi
2644
2645 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
2646 do
2647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_hdr" >&5
2650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2652 else
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 #include <$ac_hdr>
2657 EOF
2658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2659 { (eval echo configure:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2660 ac_err=`grep -v '^ *+' conftest.out`
2661 if test -z "$ac_err"; then
2662 rm -rf conftest*
2663 eval "ac_cv_header_$ac_safe=yes"
2664 else
2665 echo "$ac_err" >&5
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 rm -rf conftest*
2669 eval "ac_cv_header_$ac_safe=no"
2670 fi
2671 rm -f conftest*
2672 fi
2673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2674 echo "$ac_t""yes" 1>&6
2675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2676 cat >> confdefs.h <<EOF
2677 #define $ac_tr_hdr 1
2678 EOF
2679
2680 else
2681 echo "$ac_t""no" 1>&6
2682 fi
2683 done
2684
2685
2686 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2687 echo "configure:2688: checking for mode_t" >&5
2688 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2690 else
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 #include <sys/types.h>
2695 #if STDC_HEADERS
2696 #include <stdlib.h>
2697 #include <stddef.h>
2698 #endif
2699 EOF
2700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2701 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2702 rm -rf conftest*
2703 ac_cv_type_mode_t=yes
2704 else
2705 rm -rf conftest*
2706 ac_cv_type_mode_t=no
2707 fi
2708 rm -f conftest*
2709
2710 fi
2711 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2712 if test $ac_cv_type_mode_t = no; then
2713 cat >> confdefs.h <<\EOF
2714 #define mode_t int
2715 EOF
2716
2717 fi
2718
2719 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2720 echo "configure:2721: checking whether time.h and sys/time.h may both be included" >&5
2721 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
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 <time.h>
2730 int main() {
2731 struct tm *tp;
2732 ; return 0; }
2733 EOF
2734 if { (eval echo configure:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2735 rm -rf conftest*
2736 ac_cv_header_time=yes
2737 else
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 rm -rf conftest*
2741 ac_cv_header_time=no
2742 fi
2743 rm -f conftest*
2744 fi
2745
2746 echo "$ac_t""$ac_cv_header_time" 1>&6
2747 if test $ac_cv_header_time = yes; then
2748 cat >> confdefs.h <<\EOF
2749 #define TIME_WITH_SYS_TIME 1
2750 EOF
2751
2752 fi
2753
2754
2755 if test $ac_cv_prog_gcc = yes; then
2756 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2757 echo "configure:2758: checking whether ${CC-cc} needs -traditional" >&5
2758 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2760 else
2761 ac_pattern="Autoconf.*'x'"
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2765 #include <sgtty.h>
2766 Autoconf TIOCGETP
2767 EOF
2768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2769 egrep "$ac_pattern" >/dev/null 2>&1; then
2770 rm -rf conftest*
2771 ac_cv_prog_gcc_traditional=yes
2772 else
2773 rm -rf conftest*
2774 ac_cv_prog_gcc_traditional=no
2775 fi
2776 rm -f conftest*
2777
2778
2779 if test $ac_cv_prog_gcc_traditional = no; then
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2783 #include <termio.h>
2784 Autoconf TCGETA
2785 EOF
2786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2787 egrep "$ac_pattern" >/dev/null 2>&1; then
2788 rm -rf conftest*
2789 ac_cv_prog_gcc_traditional=yes
2790 fi
2791 rm -f conftest*
2792
2793 fi
2794 fi
2795
2796 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2797 if test $ac_cv_prog_gcc_traditional = yes; then
2798 CC="$CC -traditional"
2799 fi
2800 fi
2801
2802 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2803 echo "configure:2804: checking for 8-bit clean memcmp" >&5
2804 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2806 else
2807 if test "$cross_compiling" = yes; then
2808 ac_cv_func_memcmp_clean=no
2809 else
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2813
2814 main()
2815 {
2816 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2817 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2818 }
2819
2820 EOF
2821 if { (eval echo configure:2822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2822 then
2823 ac_cv_func_memcmp_clean=yes
2824 else
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2827 rm -fr conftest*
2828 ac_cv_func_memcmp_clean=no
2829 fi
2830 rm -fr conftest*
2831 fi
2832
2833 fi
2834
2835 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2836 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2837
2838 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2839 echo "configure:2840: checking return type of signal handlers" >&5
2840 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2842 else
2843 cat > conftest.$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2846 #include <sys/types.h>
2847 #include <signal.h>
2848 #ifdef signal
2849 #undef signal
2850 #endif
2851 #ifdef __cplusplus
2852 extern "C" void (*signal (int, void (*)(int)))(int);
2853 #else
2854 void (*signal ()) ();
2855 #endif
2856
2857 int main() {
2858 int i;
2859 ; return 0; }
2860 EOF
2861 if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 rm -rf conftest*
2863 ac_cv_type_signal=void
2864 else
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867 rm -rf conftest*
2868 ac_cv_type_signal=int
2869 fi
2870 rm -f conftest*
2871 fi
2872
2873 echo "$ac_t""$ac_cv_type_signal" 1>&6
2874 cat >> confdefs.h <<EOF
2875 #define RETSIGTYPE $ac_cv_type_signal
2876 EOF
2877
2878
2879 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2880 echo "configure:2881: checking for wait3 that fills in rusage" >&5
2881 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2883 else
2884 if test "$cross_compiling" = yes; then
2885 ac_cv_func_wait3_rusage=no
2886 else
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 #include <sys/types.h>
2891 #include <sys/time.h>
2892 #include <sys/resource.h>
2893 #include <stdio.h>
2894 /* HP-UX has wait3 but does not fill in rusage at all. */
2895 main() {
2896 struct rusage r;
2897 int i;
2898 /* Use a field that we can force nonzero --
2899 voluntary context switches.
2900 For systems like NeXT and OSF/1 that don't set it,
2901 also use the system CPU time. And page faults (I/O) for Linux. */
2902 r.ru_nvcsw = 0;
2903 r.ru_stime.tv_sec = 0;
2904 r.ru_stime.tv_usec = 0;
2905 r.ru_majflt = r.ru_minflt = 0;
2906 switch (fork()) {
2907 case 0: /* Child. */
2908 sleep(1); /* Give up the CPU. */
2909 _exit(0);
2910 case -1: _exit(0); /* What can we do? */
2911 default: /* Parent. */
2912 wait3(&i, 0, &r);
2913 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2914 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2915 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2916 }
2917 }
2918 EOF
2919 if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2920 then
2921 ac_cv_func_wait3_rusage=yes
2922 else
2923 echo "configure: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2925 rm -fr conftest*
2926 ac_cv_func_wait3_rusage=no
2927 fi
2928 rm -fr conftest*
2929 fi
2930
2931 fi
2932
2933 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
2934 if test $ac_cv_func_wait3_rusage = yes; then
2935 cat >> confdefs.h <<\EOF
2936 #define HAVE_WAIT3 1
2937 EOF
2938
2939 fi
2940
2941 for ac_func in gethostname mkdir select socket strtol
2942 do
2943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2944 echo "configure:2945: checking for $ac_func" >&5
2945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2947 else
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 /* System header to define __stub macros and hopefully few prototypes,
2952 which can conflict with char $ac_func(); below. */
2953 #include <assert.h>
2954 /* Override any gcc2 internal prototype to avoid an error. */
2955 /* We use char because int might match the return type of a gcc2
2956 builtin and then its argument prototype would still apply. */
2957 char $ac_func();
2958
2959 int main() {
2960
2961 /* The GNU C library defines this for functions which it implements
2962 to always fail with ENOSYS. Some functions are actually named
2963 something starting with __ and the normal name is an alias. */
2964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2965 choke me
2966 #else
2967 $ac_func();
2968 #endif
2969
2970 ; return 0; }
2971 EOF
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2973 rm -rf conftest*
2974 eval "ac_cv_func_$ac_func=yes"
2975 else
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2978 rm -rf conftest*
2979 eval "ac_cv_func_$ac_func=no"
2980 fi
2981 rm -f conftest*
2982 fi
2983
2984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2985 echo "$ac_t""yes" 1>&6
2986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2987 cat >> confdefs.h <<EOF
2988 #define $ac_tr_func 1
2989 EOF
2990
2991 else
2992 echo "$ac_t""no" 1>&6
2993 fi
2994 done
2995
2996
2997
2998
2999 trap '' 1 2 15
3000 cat > confcache <<\EOF
3001 # This file is a shell script that caches the results of configure
3002 # tests run on this system so they can be shared between configure
3003 # scripts and configure runs. It is not useful on other systems.
3004 # If it contains results you don't want to keep, you may remove or edit it.
3005 #
3006 # By default, configure uses ./config.cache as the cache file,
3007 # creating it if it does not exist already. You can give configure
3008 # the --cache-file=FILE option to use a different cache file; that is
3009 # what configure does when it calls configure scripts in
3010 # subdirectories, so they share the cache.
3011 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3012 # config.status only pays attention to the cache file if you give it the
3013 # --recheck option to rerun configure.
3014 #
3015 EOF
3016 # The following way of writing the cache mishandles newlines in values,
3017 # but we know of no workaround that is simple, portable, and efficient.
3018 # So, don't put newlines in cache variables' values.
3019 # Ultrix sh set writes to stderr and can't be redirected directly,
3020 # and sets the high bit in the cache file unless we assign to the vars.
3021 (set) 2>&1 |
3022 case `(ac_space=' '; set) 2>&1` in
3023 *ac_space=\ *)
3024 # `set' does not quote correctly, so add quotes (double-quote substitution
3025 # turns \\\\ into \\, and sed turns \\ into \).
3026 sed -n \
3027 -e "s/'/'\\\\''/g" \
3028 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3029 ;;
3030 *)
3031 # `set' quotes correctly as required by POSIX, so do not add quotes.
3032 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3033 ;;
3034 esac >> confcache
3035 if cmp -s $cache_file confcache; then
3036 :
3037 else
3038 if test -w $cache_file; then
3039 echo "updating cache $cache_file"
3040 cat confcache > $cache_file
3041 else
3042 echo "not updating unwritable cache $cache_file"
3043 fi
3044 fi
3045 rm -f confcache
3046
3047 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3048
3049 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3050 # Let make expand exec_prefix.
3051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3052
3053 # Any assignment to VPATH causes Sun make to only execute
3054 # the first set of double-colon rules, so remove it if not needed.
3055 # If there is a colon in the path, we need to keep it.
3056 if test "x$srcdir" = x.; then
3057 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3058 fi
3059
3060 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3061
3062 DEFS=-DHAVE_CONFIG_H
3063
3064 # Without the "./", some shells look in PATH for config.status.
3065 : ${CONFIG_STATUS=./config.status}
3066
3067 echo creating $CONFIG_STATUS
3068 rm -f $CONFIG_STATUS
3069 cat > $CONFIG_STATUS <<EOF
3070 #! /bin/sh
3071 # Generated automatically by configure.
3072 # Run this file to recreate the current configuration.
3073 # This directory was configured as follows,
3074 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3075 #
3076 # $0 $ac_configure_args
3077 #
3078 # Compiler output produced by configure, useful for debugging
3079 # configure, is in ./config.log if it exists.
3080
3081 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3082 for ac_option
3083 do
3084 case "\$ac_option" in
3085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3086 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3087 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3088 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3089 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3090 exit 0 ;;
3091 -help | --help | --hel | --he | --h)
3092 echo "\$ac_cs_usage"; exit 0 ;;
3093 *) echo "\$ac_cs_usage"; exit 1 ;;
3094 esac
3095 done
3096
3097 ac_given_srcdir=$srcdir
3098 ac_given_INSTALL="$INSTALL"
3099
3100 trap 'rm -fr `echo "makerule.mk 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 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3101 EOF
3102 cat >> $CONFIG_STATUS <<EOF
3103
3104 # Protect against being on the right side of a sed subst in config.status.
3105 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3106 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3107 $ac_vpsub
3108 $extrasub
3109 s%@CFLAGS@%$CFLAGS%g
3110 s%@CPPFLAGS@%$CPPFLAGS%g
3111 s%@CXXFLAGS@%$CXXFLAGS%g
3112 s%@DEFS@%$DEFS%g
3113 s%@LDFLAGS@%$LDFLAGS%g
3114 s%@LIBS@%$LIBS%g
3115 s%@exec_prefix@%$exec_prefix%g
3116 s%@prefix@%$prefix%g
3117 s%@program_transform_name@%$program_transform_name%g
3118 s%@bindir@%$bindir%g
3119 s%@sbindir@%$sbindir%g
3120 s%@libexecdir@%$libexecdir%g
3121 s%@datadir@%$datadir%g
3122 s%@sysconfdir@%$sysconfdir%g
3123 s%@sharedstatedir@%$sharedstatedir%g
3124 s%@localstatedir@%$localstatedir%g
3125 s%@libdir@%$libdir%g
3126 s%@includedir@%$includedir%g
3127 s%@oldincludedir@%$oldincludedir%g
3128 s%@infodir@%$infodir%g
3129 s%@mandir@%$mandir%g
3130 s%@abs_top_srcdir@%$abs_top_srcdir%g
3131 s%@CC@%$CC%g
3132 s%@CPP@%$CPP%g
3133 s%@YACC@%$YACC%g
3134 s%@LEX@%$LEX%g
3135 s%@LEXLIB@%$LEXLIB%g
3136 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3137 s%@INSTALL_DATA@%$INSTALL_DATA%g
3138 s%@LN_S@%$LN_S%g
3139 s%@SET_MAKE@%$SET_MAKE%g
3140 s%@RANLIB@%$RANLIB%g
3141 s%@CCOPTIONS@%$CCOPTIONS%g
3142 s%@CDEBUGFLAGS@%$CDEBUGFLAGS%g
3143 s%@LIBOBJS@%$LIBOBJS%g
3144
3145 CEOF
3146 EOF
3147
3148 cat >> $CONFIG_STATUS <<\EOF
3149
3150 # Split the substitutions into bite-sized pieces for seds with
3151 # small command number limits, like on Digital OSF/1 and HP-UX.
3152 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3153 ac_file=1 # Number of current file.
3154 ac_beg=1 # First line for current file.
3155 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3156 ac_more_lines=:
3157 ac_sed_cmds=""
3158 while $ac_more_lines; do
3159 if test $ac_beg -gt 1; then
3160 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3161 else
3162 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3163 fi
3164 if test ! -s conftest.s$ac_file; then
3165 ac_more_lines=false
3166 rm -f conftest.s$ac_file
3167 else
3168 if test -z "$ac_sed_cmds"; then
3169 ac_sed_cmds="sed -f conftest.s$ac_file"
3170 else
3171 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3172 fi
3173 ac_file=`expr $ac_file + 1`
3174 ac_beg=$ac_end
3175 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3176 fi
3177 done
3178 if test -z "$ac_sed_cmds"; then
3179 ac_sed_cmds=cat
3180 fi
3181 EOF
3182
3183 cat >> $CONFIG_STATUS <<EOF
3184
3185 CONFIG_FILES=\${CONFIG_FILES-"makerule.mk 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"}
3186 EOF
3187 cat >> $CONFIG_STATUS <<\EOF
3188 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3189 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3190 case "$ac_file" in
3191 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3192 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3193 *) ac_file_in="${ac_file}.in" ;;
3194 esac
3195
3196 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3197
3198 # Remove last slash and all that follows it. Not all systems have dirname.
3199 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3200 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3201 # The file is in a subdirectory.
3202 test ! -d "$ac_dir" && mkdir "$ac_dir"
3203 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3204 # A "../" for each directory in $ac_dir_suffix.
3205 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3206 else
3207 ac_dir_suffix= ac_dots=
3208 fi
3209
3210 case "$ac_given_srcdir" in
3211 .) srcdir=.
3212 if test -z "$ac_dots"; then top_srcdir=.
3213 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3214 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3215 *) # Relative path.
3216 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3217 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3218 esac
3219
3220 case "$ac_given_INSTALL" in
3221 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3222 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3223 esac
3224
3225 echo creating "$ac_file"
3226 rm -f "$ac_file"
3227 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3228 case "$ac_file" in
3229 *Makefile*) ac_comsub="1i\\
3230 # $configure_input" ;;
3231 *) ac_comsub= ;;
3232 esac
3233
3234 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3235 sed -e "$ac_comsub
3236 s%@configure_input@%$configure_input%g
3237 s%@srcdir@%$srcdir%g
3238 s%@top_srcdir@%$top_srcdir%g
3239 s%@INSTALL@%$INSTALL%g
3240 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3241 fi; done
3242 rm -f conftest.s*
3243
3244 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3245 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3246 #
3247 # ac_d sets the value in "#define NAME VALUE" lines.
3248 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3249 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3250 ac_dC='\3'
3251 ac_dD='%g'
3252 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3253 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3254 ac_uB='\([ ]\)%\1#\2define\3'
3255 ac_uC=' '
3256 ac_uD='\4%g'
3257 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3258 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3259 ac_eB='$%\1#\2define\3'
3260 ac_eC=' '
3261 ac_eD='%g'
3262
3263 if test "${CONFIG_HEADERS+set}" != set; then
3264 EOF
3265 cat >> $CONFIG_STATUS <<EOF
3266 CONFIG_HEADERS="config.h"
3267 EOF
3268 cat >> $CONFIG_STATUS <<\EOF
3269 fi
3270 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3272 case "$ac_file" in
3273 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3274 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3275 *) ac_file_in="${ac_file}.in" ;;
3276 esac
3277
3278 echo creating $ac_file
3279
3280 rm -f conftest.frag conftest.in conftest.out
3281 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3282 cat $ac_file_inputs > conftest.in
3283
3284 EOF
3285
3286 # Transform confdefs.h into a sed script conftest.vals that substitutes
3287 # the proper values into config.h.in to produce config.h. And first:
3288 # Protect against being on the right side of a sed subst in config.status.
3289 # Protect against being in an unquoted here document in config.status.
3290 rm -f conftest.vals
3291 cat > conftest.hdr <<\EOF
3292 s/[\\&%]/\\&/g
3293 s%[\\$`]%\\&%g
3294 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3295 s%ac_d%ac_u%gp
3296 s%ac_u%ac_e%gp
3297 EOF
3298 sed -n -f conftest.hdr confdefs.h > conftest.vals
3299 rm -f conftest.hdr
3300
3301 # This sed command replaces #undef with comments. This is necessary, for
3302 # example, in the case of _POSIX_SOURCE, which is predefined and required
3303 # on some systems where configure will not decide to define it.
3304 cat >> conftest.vals <<\EOF
3305 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3306 EOF
3307
3308 # Break up conftest.vals because some shells have a limit on
3309 # the size of here documents, and old seds have small limits too.
3310
3311 rm -f conftest.tail
3312 while :
3313 do
3314 ac_lines=`grep -c . conftest.vals`
3315 # grep -c gives empty output for an empty file on some AIX systems.
3316 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3317 # Write a limited-size here document to conftest.frag.
3318 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3319 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3320 echo 'CEOF
3321 sed -f conftest.frag conftest.in > conftest.out
3322 rm -f conftest.in
3323 mv conftest.out conftest.in
3324 ' >> $CONFIG_STATUS
3325 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3326 rm -f conftest.vals
3327 mv conftest.tail conftest.vals
3328 done
3329 rm -f conftest.vals
3330
3331 cat >> $CONFIG_STATUS <<\EOF
3332 rm -f conftest.frag conftest.h
3333 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3334 cat conftest.in >> conftest.h
3335 rm -f conftest.in
3336 if cmp -s $ac_file conftest.h 2>/dev/null; then
3337 echo "$ac_file is unchanged"
3338 rm -f conftest.h
3339 else
3340 # Remove last slash and all that follows it. Not all systems have dirname.
3341 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3342 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3343 # The file is in a subdirectory.
3344 test ! -d "$ac_dir" && mkdir "$ac_dir"
3345 fi
3346 rm -f $ac_file
3347 mv conftest.h $ac_file
3348 fi
3349 fi; done
3350
3351 EOF
3352 cat >> $CONFIG_STATUS <<EOF
3353
3354 EOF
3355 cat >> $CONFIG_STATUS <<\EOF
3356
3357 exit 0
3358 EOF
3359 chmod +x $CONFIG_STATUS
3360 rm -fr confdefs* $ac_clean_files
3361 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3362

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