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.13 - (show annotations) (download)
Thu Jun 14 18:28:51 2001 UTC (22 years, 10 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a017
Changes since 1.12: +156 -1 lines
FreeWnn-1.1.1-a017 is released.

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

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