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.9 - (show annotations) (download)
Sun Jan 16 07:15:50 2000 UTC (24 years, 3 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a010, freewnn-1-1-1-a011, freewnn-1-1-1-a009
Changes since 1.8: +69 -57 lines
FreeWnn-1.1.1-a009 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 case "$top_srcdir" in
528 .) abs_top_srcdir=`pwd` ;;
529 /*) abs_top_srcdir=top_srcdir;;
530 *) # Relative path.
531 abs_top_srcdir=`pwd`$ac_dots$ac_given_srcdir ;;
532 esac
533
534
535
536
537 # Extract the first word of "gcc", so it can be a program name with args.
538 set dummy gcc; ac_word=$2
539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
540 echo "configure:541: checking for $ac_word" >&5
541 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
542 echo $ac_n "(cached) $ac_c" 1>&6
543 else
544 if test -n "$CC"; then
545 ac_cv_prog_CC="$CC" # Let the user override the test.
546 else
547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
548 ac_dummy="$PATH"
549 for ac_dir in $ac_dummy; do
550 test -z "$ac_dir" && ac_dir=.
551 if test -f $ac_dir/$ac_word; then
552 ac_cv_prog_CC="gcc"
553 break
554 fi
555 done
556 IFS="$ac_save_ifs"
557 fi
558 fi
559 CC="$ac_cv_prog_CC"
560 if test -n "$CC"; then
561 echo "$ac_t""$CC" 1>&6
562 else
563 echo "$ac_t""no" 1>&6
564 fi
565
566 if test -z "$CC"; then
567 # Extract the first word of "cc", so it can be a program name with args.
568 set dummy cc; ac_word=$2
569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
570 echo "configure:571: checking for $ac_word" >&5
571 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
572 echo $ac_n "(cached) $ac_c" 1>&6
573 else
574 if test -n "$CC"; then
575 ac_cv_prog_CC="$CC" # Let the user override the test.
576 else
577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
578 ac_prog_rejected=no
579 ac_dummy="$PATH"
580 for ac_dir in $ac_dummy; do
581 test -z "$ac_dir" && ac_dir=.
582 if test -f $ac_dir/$ac_word; then
583 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
584 ac_prog_rejected=yes
585 continue
586 fi
587 ac_cv_prog_CC="cc"
588 break
589 fi
590 done
591 IFS="$ac_save_ifs"
592 if test $ac_prog_rejected = yes; then
593 # We found a bogon in the path, so make sure we never use it.
594 set dummy $ac_cv_prog_CC
595 shift
596 if test $# -gt 0; then
597 # We chose a different compiler from the bogus one.
598 # However, it has the same basename, so the bogon will be chosen
599 # first if we set CC to just the basename; use the full file name.
600 shift
601 set dummy "$ac_dir/$ac_word" "$@"
602 shift
603 ac_cv_prog_CC="$@"
604 fi
605 fi
606 fi
607 fi
608 CC="$ac_cv_prog_CC"
609 if test -n "$CC"; then
610 echo "$ac_t""$CC" 1>&6
611 else
612 echo "$ac_t""no" 1>&6
613 fi
614
615 if test -z "$CC"; then
616 case "`uname -s`" in
617 *win32* | *WIN32*)
618 # Extract the first word of "cl", so it can be a program name with args.
619 set dummy cl; ac_word=$2
620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621 echo "configure:622: checking for $ac_word" >&5
622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
624 else
625 if test -n "$CC"; then
626 ac_cv_prog_CC="$CC" # Let the user override the test.
627 else
628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
629 ac_dummy="$PATH"
630 for ac_dir in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
633 ac_cv_prog_CC="cl"
634 break
635 fi
636 done
637 IFS="$ac_save_ifs"
638 fi
639 fi
640 CC="$ac_cv_prog_CC"
641 if test -n "$CC"; then
642 echo "$ac_t""$CC" 1>&6
643 else
644 echo "$ac_t""no" 1>&6
645 fi
646 ;;
647 esac
648 fi
649 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
650 fi
651
652 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
653 echo "configure:654: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
654
655 ac_ext=c
656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
657 ac_cpp='$CPP $CPPFLAGS'
658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
660 cross_compiling=$ac_cv_prog_cc_cross
661
662 cat > conftest.$ac_ext << EOF
663
664 #line 665 "configure"
665 #include "confdefs.h"
666
667 main(){return(0);}
668 EOF
669 if { (eval echo configure:670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
670 ac_cv_prog_cc_works=yes
671 # If we can't run a trivial program, we are probably using a cross compiler.
672 if (./conftest; exit) 2>/dev/null; then
673 ac_cv_prog_cc_cross=no
674 else
675 ac_cv_prog_cc_cross=yes
676 fi
677 else
678 echo "configure: failed program was:" >&5
679 cat conftest.$ac_ext >&5
680 ac_cv_prog_cc_works=no
681 fi
682 rm -fr conftest*
683 ac_ext=c
684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685 ac_cpp='$CPP $CPPFLAGS'
686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688 cross_compiling=$ac_cv_prog_cc_cross
689
690 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
691 if test $ac_cv_prog_cc_works = no; then
692 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
693 fi
694 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
695 echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
696 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
697 cross_compiling=$ac_cv_prog_cc_cross
698
699 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
700 echo "configure:701: checking whether we are using GNU C" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
703 else
704 cat > conftest.c <<EOF
705 #ifdef __GNUC__
706 yes;
707 #endif
708 EOF
709 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
710 ac_cv_prog_gcc=yes
711 else
712 ac_cv_prog_gcc=no
713 fi
714 fi
715
716 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
717
718 if test $ac_cv_prog_gcc = yes; then
719 GCC=yes
720 else
721 GCC=
722 fi
723
724 ac_test_CFLAGS="${CFLAGS+set}"
725 ac_save_CFLAGS="$CFLAGS"
726 CFLAGS=
727 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
728 echo "configure:729: checking whether ${CC-cc} accepts -g" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
731 else
732 echo 'void f(){}' > conftest.c
733 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
734 ac_cv_prog_cc_g=yes
735 else
736 ac_cv_prog_cc_g=no
737 fi
738 rm -f conftest*
739
740 fi
741
742 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
743 if test "$ac_test_CFLAGS" = set; then
744 CFLAGS="$ac_save_CFLAGS"
745 elif test $ac_cv_prog_cc_g = yes; then
746 if test "$GCC" = yes; then
747 CFLAGS="-g -O2"
748 else
749 CFLAGS="-g"
750 fi
751 else
752 if test "$GCC" = yes; then
753 CFLAGS="-O2"
754 else
755 CFLAGS=
756 fi
757 fi
758
759 echo $ac_n "checking for cpp""... $ac_c" 1>&6
760 echo "configure:761: checking for cpp" >&5
761 hosttype=`uname`
762 CCOPTIONS=""
763 CDEBUGFLAGS=-O
764 case $hosttype in
765 "Linux")
766 CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
767 CDEBUGFLAGS="-O2 -fno-strength-reduce"
768 if test -x /lib/cpp; then
769 CPP=/lib/cpp
770 fi
771 ;;
772 "FreeBSD"|"NetBSD"|"OpenBSD")
773 CCOPTIONS="-DCSRG_BASED"
774 CDEBUGFLAGS="-O2 -fno-strength-reduce"
775 if test -x /usr/libexec/cpp; then
776 CPP=/usr/libexec/cpp
777 fi
778 ;;
779 "BSD/OS")
780 CCOPTIONS="-DCSRG_BASED"
781 CDEBUGFLAGS="-O2 -fno-strength-reduce"
782 if test -x /usr/bin/cpp; then
783 CPP=/usr/bin/cpp
784 fi
785 ;;
786 "SunOS")
787 case `uname -r` in
788 4.*)
789 if test $CC = gcc; then
790 CDEBUGFLAGS=-O2
791 CCOPTIONS="-Dsun -Dsparc"
792 else
793 CDEBUGFLAGS=-O4
794 CCOPTIONS=""
795 fi
796 CPP=/usr/lib/cpp
797 ;;
798 5.*)
799 if test $CC = gcc; then
800 CDEBUGFLAGS=-O2
801 CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"
802 else
803 CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"
804 fi
805 if test -x /usr/ccs/lib/cpp; then
806 CPP=/usr/ccs/lib/cpp
807 fi
808 ;;
809 *)
810 echo "configure: warning: "This system is not supported. But continuing..."" 1>&2
811 ;;
812 esac
813 ;;
814 "HP-UX")
815 if test $CC = gcc; then
816 CDEBUGFLAGS=-O2
817 CCOPTIONS="-Dhpux -DSYSV"
818 else
819 CCOPTIONS="-Ae -Dhpux -DSYSV"
820 fi
821 case `uname -r` in
822 A.09.*)
823 if test -x /lib/cpp; then
824 CPP=/lib/cpp
825 fi
826 ;;
827 B.10.*|B.11.*)
828 if test -x /opt/langtools/lbin/cpp; then
829 CPP=/opt/langtools/lbin/cpp
830 fi
831 ;;
832 *)
833 echo "configure: warning: "This system is not supported. But continuing..."" 1>&2
834 ;;
835 esac
836 ;;
837 "BeOS")
838 case `uname -m` in
839 "BePC")
840 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
841 CDEBUGFLAGS="-O2 -fno-strength-reduce"
842 if test -x /boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-980929/cpp; then
843 CPP=/boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-980929/cpp
844 fi
845 ;;
846 "BeBox"|"BeMac")
847 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
848 NON_GNU_CPP=/boot/apps/GeekGadgets/bin/cpp
849 ;;
850 *)
851 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
852 ;;
853 esac
854 ;;
855 "AIX")
856 if test $CC = gcc; then
857 CDEBUGFLAGS=-O2
858 else
859 CDEBUGFLAGS=-O
860 fi
861 CCOPTIONS="-DSYSV"
862 CPP=/usr/lib/cpp
863 ;;
864 *)
865 echo "configure: warning: "This system is not supported. But continuing..."" 1>&2
866 ;;
867 esac
868 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
869 echo "configure:870: checking how to run the C preprocessor" >&5
870 # On Suns, sometimes $CPP names a directory.
871 if test -n "$CPP" && test -d "$CPP"; then
872 CPP=
873 fi
874 if test -z "$CPP"; then
875 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 # This must be in double quotes, not single quotes, because CPP may get
879 # substituted into the Makefile and "${CC-cc}" will confuse make.
880 CPP="${CC-cc} -E"
881 # On the NeXT, cc -E runs the code through the compiler's parser,
882 # not just through cpp.
883 cat > conftest.$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
886 #include <assert.h>
887 Syntax Error
888 EOF
889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
890 { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
892 if test -z "$ac_err"; then
893 :
894 else
895 echo "$ac_err" >&5
896 echo "configure: failed program was:" >&5
897 cat conftest.$ac_ext >&5
898 rm -rf conftest*
899 CPP="${CC-cc} -E -traditional-cpp"
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
903 #include <assert.h>
904 Syntax Error
905 EOF
906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
910 :
911 else
912 echo "$ac_err" >&5
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
915 rm -rf conftest*
916 CPP="${CC-cc} -nologo -E"
917 cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
920 #include <assert.h>
921 Syntax Error
922 EOF
923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
927 :
928 else
929 echo "$ac_err" >&5
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 rm -rf conftest*
933 CPP=/lib/cpp
934 fi
935 rm -f conftest*
936 fi
937 rm -f conftest*
938 fi
939 rm -f conftest*
940 ac_cv_prog_CPP="$CPP"
941 fi
942 CPP="$ac_cv_prog_CPP"
943 else
944 ac_cv_prog_CPP="$CPP"
945 fi
946 echo "$ac_t""$CPP" 1>&6
947
948
949 ac_aux_dir=
950 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
951 if test -f $ac_dir/install-sh; then
952 ac_aux_dir=$ac_dir
953 ac_install_sh="$ac_aux_dir/install-sh -c"
954 break
955 elif test -f $ac_dir/install.sh; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/install.sh -c"
958 break
959 fi
960 done
961 if test -z "$ac_aux_dir"; then
962 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963 fi
964 ac_config_guess=$ac_aux_dir/config.guess
965 ac_config_sub=$ac_aux_dir/config.sub
966 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
967
968 # Find a good install program. We prefer a C program (faster),
969 # so one script is as good as another. But avoid the broken or
970 # incompatible versions:
971 # SysV /etc/install, /usr/sbin/install
972 # SunOS /usr/etc/install
973 # IRIX /sbin/install
974 # AIX /bin/install
975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
978 # ./install, which can be erroneously created by make from ./install.sh.
979 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
980 echo "configure:981: checking for a BSD compatible install" >&5
981 if test -z "$INSTALL"; then
982 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
984 else
985 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
986 for ac_dir in $PATH; do
987 # Account for people who put trailing slashes in PATH elements.
988 case "$ac_dir/" in
989 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
990 *)
991 # OSF1 and SCO ODT 3.0 have their own names for install.
992 # Don't use installbsd from OSF since it installs stuff as root
993 # by default.
994 for ac_prog in ginstall scoinst install; do
995 if test -f $ac_dir/$ac_prog; then
996 if test $ac_prog = install &&
997 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
998 # AIX install. It has an incompatible calling convention.
999 :
1000 else
1001 ac_cv_path_install="$ac_dir/$ac_prog -c"
1002 break 2
1003 fi
1004 fi
1005 done
1006 ;;
1007 esac
1008 done
1009 IFS="$ac_save_IFS"
1010
1011 fi
1012 if test "${ac_cv_path_install+set}" = set; then
1013 INSTALL="$ac_cv_path_install"
1014 else
1015 # As a last resort, use the slow shell script. We don't cache a
1016 # path for INSTALL within a source directory, because that will
1017 # break other packages using the cache if that directory is
1018 # removed, or if the path is relative.
1019 INSTALL="$ac_install_sh"
1020 fi
1021 fi
1022 echo "$ac_t""$INSTALL" 1>&6
1023
1024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1025 # It thinks the first close brace ends the variable substitution.
1026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1027
1028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1029
1030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1031
1032 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether ln -s works" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1036 else
1037 rm -f conftestdata
1038 if ln -s X conftestdata 2>/dev/null
1039 then
1040 rm -f conftestdata
1041 ac_cv_prog_LN_S="ln -s"
1042 else
1043 ac_cv_prog_LN_S=ln
1044 fi
1045 fi
1046 LN_S="$ac_cv_prog_LN_S"
1047 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1048 echo "$ac_t""yes" 1>&6
1049 else
1050 echo "$ac_t""no" 1>&6
1051 fi
1052
1053 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1054 echo "configure:1055: checking whether ${MAKE-make} sets \${MAKE}" >&5
1055 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1056 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1058 else
1059 cat > conftestmake <<\EOF
1060 all:
1061 @echo 'ac_maketemp="${MAKE}"'
1062 EOF
1063 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1064 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1065 if test -n "$ac_maketemp"; then
1066 eval ac_cv_prog_make_${ac_make}_set=yes
1067 else
1068 eval ac_cv_prog_make_${ac_make}_set=no
1069 fi
1070 rm -f conftestmake
1071 fi
1072 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1073 echo "$ac_t""yes" 1>&6
1074 SET_MAKE=
1075 else
1076 echo "$ac_t""no" 1>&6
1077 SET_MAKE="MAKE=${MAKE-make}"
1078 fi
1079
1080 # Extract the first word of "ranlib", so it can be a program name with args.
1081 set dummy ranlib; ac_word=$2
1082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083 echo "configure:1084: checking for $ac_word" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1086 else
1087 if test -n "$RANLIB"; then
1088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1089 else
1090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1091 ac_dummy="$PATH"
1092 for ac_dir in $ac_dummy; do
1093 test -z "$ac_dir" && ac_dir=.
1094 if test -f $ac_dir/$ac_word; then
1095 ac_cv_prog_RANLIB="ranlib"
1096 break
1097 fi
1098 done
1099 IFS="$ac_save_ifs"
1100 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1101 fi
1102 fi
1103 RANLIB="$ac_cv_prog_RANLIB"
1104 if test -n "$RANLIB"; then
1105 echo "$ac_t""$RANLIB" 1>&6
1106 else
1107 echo "$ac_t""no" 1>&6
1108 fi
1109
1110
1111
1112
1113
1114 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1115 echo "configure:1116: checking for crypt in -lcrypt" >&5
1116 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120 ac_save_LIBS="$LIBS"
1121 LIBS="-lcrypt $LIBS"
1122 cat > conftest.$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1125 /* Override any gcc2 internal prototype to avoid an error. */
1126 /* We use char because int might match the return type of a gcc2
1127 builtin and then its argument prototype would still apply. */
1128 char crypt();
1129
1130 int main() {
1131 crypt()
1132 ; return 0; }
1133 EOF
1134 if { (eval echo configure:1135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1135 rm -rf conftest*
1136 eval "ac_cv_lib_$ac_lib_var=yes"
1137 else
1138 echo "configure: failed program was:" >&5
1139 cat conftest.$ac_ext >&5
1140 rm -rf conftest*
1141 eval "ac_cv_lib_$ac_lib_var=no"
1142 fi
1143 rm -f conftest*
1144 LIBS="$ac_save_LIBS"
1145
1146 fi
1147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1148 echo "$ac_t""yes" 1>&6
1149 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1150 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1151 cat >> confdefs.h <<EOF
1152 #define $ac_tr_lib 1
1153 EOF
1154
1155 LIBS="-lcrypt $LIBS"
1156
1157 else
1158 echo "$ac_t""no" 1>&6
1159 fi
1160
1161 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1162 echo "configure:1163: checking for connect in -lsocket" >&5
1163 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167 ac_save_LIBS="$LIBS"
1168 LIBS="-lsocket $LIBS"
1169 cat > conftest.$ac_ext <<EOF
1170 #line 1171 "configure"
1171 #include "confdefs.h"
1172 /* Override any gcc2 internal prototype to avoid an error. */
1173 /* We use char because int might match the return type of a gcc2
1174 builtin and then its argument prototype would still apply. */
1175 char connect();
1176
1177 int main() {
1178 connect()
1179 ; return 0; }
1180 EOF
1181 if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1182 rm -rf conftest*
1183 eval "ac_cv_lib_$ac_lib_var=yes"
1184 else
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1187 rm -rf conftest*
1188 eval "ac_cv_lib_$ac_lib_var=no"
1189 fi
1190 rm -f conftest*
1191 LIBS="$ac_save_LIBS"
1192
1193 fi
1194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1195 echo "$ac_t""yes" 1>&6
1196 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1197 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1198 cat >> confdefs.h <<EOF
1199 #define $ac_tr_lib 1
1200 EOF
1201
1202 LIBS="-lsocket $LIBS"
1203
1204 else
1205 echo "$ac_t""no" 1>&6
1206 fi
1207
1208 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1209 echo "configure:1210: checking for gethostbyname in -lnsl" >&5
1210 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214 ac_save_LIBS="$LIBS"
1215 LIBS="-lnsl $LIBS"
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1219 /* Override any gcc2 internal prototype to avoid an error. */
1220 /* We use char because int might match the return type of a gcc2
1221 builtin and then its argument prototype would still apply. */
1222 char gethostbyname();
1223
1224 int main() {
1225 gethostbyname()
1226 ; return 0; }
1227 EOF
1228 if { (eval echo configure:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1229 rm -rf conftest*
1230 eval "ac_cv_lib_$ac_lib_var=yes"
1231 else
1232 echo "configure: failed program was:" >&5
1233 cat conftest.$ac_ext >&5
1234 rm -rf conftest*
1235 eval "ac_cv_lib_$ac_lib_var=no"
1236 fi
1237 rm -f conftest*
1238 LIBS="$ac_save_LIBS"
1239
1240 fi
1241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1243 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1245 cat >> confdefs.h <<EOF
1246 #define $ac_tr_lib 1
1247 EOF
1248
1249 LIBS="-lnsl $LIBS"
1250
1251 else
1252 echo "$ac_t""no" 1>&6
1253 fi
1254
1255
1256 # If we find X, set shell vars x_includes and x_libraries to the
1257 # paths, otherwise set no_x=yes.
1258 # Uses ac_ vars as temps to allow command line to override cache and checks.
1259 # --without-x overrides everything else, but does not touch the cache.
1260 echo $ac_n "checking for X""... $ac_c" 1>&6
1261 echo "configure:1262: checking for X" >&5
1262
1263 # Check whether --with-x or --without-x was given.
1264 if test "${with_x+set}" = set; then
1265 withval="$with_x"
1266 :
1267 fi
1268
1269 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1270 if test "x$with_x" = xno; then
1271 # The user explicitly disabled X.
1272 have_x=disabled
1273 else
1274 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1275 # Both variables are already set.
1276 have_x=yes
1277 else
1278 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281 # One or both of the vars are not set, and there is no cached value.
1282 ac_x_includes=NO ac_x_libraries=NO
1283 rm -fr conftestdir
1284 if mkdir conftestdir; then
1285 cd conftestdir
1286 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1287 cat > Imakefile <<'EOF'
1288 acfindx:
1289 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1290 EOF
1291 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1292 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1293 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1294 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1295 for ac_extension in a so sl; do
1296 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1297 test -f $ac_im_libdir/libX11.$ac_extension; then
1298 ac_im_usrlibdir=$ac_im_libdir; break
1299 fi
1300 done
1301 # Screen out bogus values from the imake configuration. They are
1302 # bogus both because they are the default anyway, and because
1303 # using them would break gcc on systems where it needs fixed includes.
1304 case "$ac_im_incroot" in
1305 /usr/include) ;;
1306 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1307 esac
1308 case "$ac_im_usrlibdir" in
1309 /usr/lib | /lib) ;;
1310 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1311 esac
1312 fi
1313 cd ..
1314 rm -fr conftestdir
1315 fi
1316
1317 if test "$ac_x_includes" = NO; then
1318 # Guess where to find include files, by looking for this one X11 .h file.
1319 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1320
1321 # First, try using that file with no special directory specified.
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325 #include <$x_direct_test_include>
1326 EOF
1327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1328 { (eval echo configure:1329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1330 if test -z "$ac_err"; then
1331 rm -rf conftest*
1332 # We can compile using X headers with no special include directory.
1333 ac_x_includes=
1334 else
1335 echo "$ac_err" >&5
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1338 rm -rf conftest*
1339 # Look for the header file in a standard set of common directories.
1340 # Check X11 before X11Rn because it is often a symlink to the current release.
1341 for ac_dir in \
1342 /usr/X11/include \
1343 /usr/X11R6/include \
1344 /usr/X11R5/include \
1345 /usr/X11R4/include \
1346 \
1347 /usr/include/X11 \
1348 /usr/include/X11R6 \
1349 /usr/include/X11R5 \
1350 /usr/include/X11R4 \
1351 \
1352 /usr/local/X11/include \
1353 /usr/local/X11R6/include \
1354 /usr/local/X11R5/include \
1355 /usr/local/X11R4/include \
1356 \
1357 /usr/local/include/X11 \
1358 /usr/local/include/X11R6 \
1359 /usr/local/include/X11R5 \
1360 /usr/local/include/X11R4 \
1361 \
1362 /usr/X386/include \
1363 /usr/x386/include \
1364 /usr/XFree86/include/X11 \
1365 \
1366 /usr/include \
1367 /usr/local/include \
1368 /usr/unsupported/include \
1369 /usr/athena/include \
1370 /usr/local/x11r5/include \
1371 /usr/lpp/Xamples/include \
1372 \
1373 /usr/openwin/include \
1374 /usr/openwin/share/include \
1375 ; \
1376 do
1377 if test -r "$ac_dir/$x_direct_test_include"; then
1378 ac_x_includes=$ac_dir
1379 break
1380 fi
1381 done
1382 fi
1383 rm -f conftest*
1384 fi # $ac_x_includes = NO
1385
1386 if test "$ac_x_libraries" = NO; then
1387 # Check for the libraries.
1388
1389 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1390 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1391
1392 # See if we find them without any special options.
1393 # Don't add to $LIBS permanently.
1394 ac_save_LIBS="$LIBS"
1395 LIBS="-l$x_direct_test_library $LIBS"
1396 cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399
1400 int main() {
1401 ${x_direct_test_function}()
1402 ; return 0; }
1403 EOF
1404 if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1405 rm -rf conftest*
1406 LIBS="$ac_save_LIBS"
1407 # We can link X programs with no special library path.
1408 ac_x_libraries=
1409 else
1410 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5
1412 rm -rf conftest*
1413 LIBS="$ac_save_LIBS"
1414 # First see if replacing the include by lib works.
1415 # Check X11 before X11Rn because it is often a symlink to the current release.
1416 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1417 /usr/X11/lib \
1418 /usr/X11R6/lib \
1419 /usr/X11R5/lib \
1420 /usr/X11R4/lib \
1421 \
1422 /usr/lib/X11 \
1423 /usr/lib/X11R6 \
1424 /usr/lib/X11R5 \
1425 /usr/lib/X11R4 \
1426 \
1427 /usr/local/X11/lib \
1428 /usr/local/X11R6/lib \
1429 /usr/local/X11R5/lib \
1430 /usr/local/X11R4/lib \
1431 \
1432 /usr/local/lib/X11 \
1433 /usr/local/lib/X11R6 \
1434 /usr/local/lib/X11R5 \
1435 /usr/local/lib/X11R4 \
1436 \
1437 /usr/X386/lib \
1438 /usr/x386/lib \
1439 /usr/XFree86/lib/X11 \
1440 \
1441 /usr/lib \
1442 /usr/local/lib \
1443 /usr/unsupported/lib \
1444 /usr/athena/lib \
1445 /usr/local/x11r5/lib \
1446 /usr/lpp/Xamples/lib \
1447 /lib/usr/lib/X11 \
1448 \
1449 /usr/openwin/lib \
1450 /usr/openwin/share/lib \
1451 ; \
1452 do
1453 for ac_extension in a so sl; do
1454 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1455 ac_x_libraries=$ac_dir
1456 break 2
1457 fi
1458 done
1459 done
1460 fi
1461 rm -f conftest*
1462 fi # $ac_x_libraries = NO
1463
1464 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1465 # Didn't find X anywhere. Cache the known absence of X.
1466 ac_cv_have_x="have_x=no"
1467 else
1468 # Record where we found X for the cache.
1469 ac_cv_have_x="have_x=yes \
1470 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1471 fi
1472 fi
1473 fi
1474 eval "$ac_cv_have_x"
1475 fi # $with_x != no
1476
1477 if test "$have_x" != yes; then
1478 echo "$ac_t""$have_x" 1>&6
1479 no_x=yes
1480 else
1481 # If each of the values was on the command line, it overrides each guess.
1482 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1483 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1484 # Update the cache value to reflect the command line values.
1485 ac_cv_have_x="have_x=yes \
1486 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1487 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1488 fi
1489
1490 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1491 echo "configure:1492: checking for ANSI C header files" >&5
1492 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494 else
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1498 #include <stdlib.h>
1499 #include <stdarg.h>
1500 #include <string.h>
1501 #include <float.h>
1502 EOF
1503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1504 { (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1506 if test -z "$ac_err"; then
1507 rm -rf conftest*
1508 ac_cv_header_stdc=yes
1509 else
1510 echo "$ac_err" >&5
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1513 rm -rf conftest*
1514 ac_cv_header_stdc=no
1515 fi
1516 rm -f conftest*
1517
1518 if test $ac_cv_header_stdc = yes; then
1519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 #include <string.h>
1524 EOF
1525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526 egrep "memchr" >/dev/null 2>&1; then
1527 :
1528 else
1529 rm -rf conftest*
1530 ac_cv_header_stdc=no
1531 fi
1532 rm -f conftest*
1533
1534 fi
1535
1536 if test $ac_cv_header_stdc = yes; then
1537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 #include <stdlib.h>
1542 EOF
1543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1544 egrep "free" >/dev/null 2>&1; then
1545 :
1546 else
1547 rm -rf conftest*
1548 ac_cv_header_stdc=no
1549 fi
1550 rm -f conftest*
1551
1552 fi
1553
1554 if test $ac_cv_header_stdc = yes; then
1555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1556 if test "$cross_compiling" = yes; then
1557 :
1558 else
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1562 #include <ctype.h>
1563 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1564 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1566 int main () { int i; for (i = 0; i < 256; i++)
1567 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1568 exit (0); }
1569
1570 EOF
1571 if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1572 then
1573 :
1574 else
1575 echo "configure: failed program was:" >&5
1576 cat conftest.$ac_ext >&5
1577 rm -fr conftest*
1578 ac_cv_header_stdc=no
1579 fi
1580 rm -fr conftest*
1581 fi
1582
1583 fi
1584 fi
1585
1586 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1587 if test $ac_cv_header_stdc = yes; then
1588 cat >> confdefs.h <<\EOF
1589 #define STDC_HEADERS 1
1590 EOF
1591
1592 fi
1593
1594 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1595 echo "configure:1596: checking for sys/wait.h that is POSIX.1 compatible" >&5
1596 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1598 else
1599 cat > conftest.$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1602 #include <sys/types.h>
1603 #include <sys/wait.h>
1604 #ifndef WEXITSTATUS
1605 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1606 #endif
1607 #ifndef WIFEXITED
1608 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1609 #endif
1610 int main() {
1611 int s;
1612 wait (&s);
1613 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1614 ; return 0; }
1615 EOF
1616 if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1617 rm -rf conftest*
1618 ac_cv_header_sys_wait_h=yes
1619 else
1620 echo "configure: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1622 rm -rf conftest*
1623 ac_cv_header_sys_wait_h=no
1624 fi
1625 rm -f conftest*
1626 fi
1627
1628 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1629 if test $ac_cv_header_sys_wait_h = yes; then
1630 cat >> confdefs.h <<\EOF
1631 #define HAVE_SYS_WAIT_H 1
1632 EOF
1633
1634 fi
1635
1636 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
1637 do
1638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1640 echo "configure:1641: checking for $ac_hdr" >&5
1641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1643 else
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 #include <$ac_hdr>
1648 EOF
1649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1650 { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1652 if test -z "$ac_err"; then
1653 rm -rf conftest*
1654 eval "ac_cv_header_$ac_safe=yes"
1655 else
1656 echo "$ac_err" >&5
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 rm -rf conftest*
1660 eval "ac_cv_header_$ac_safe=no"
1661 fi
1662 rm -f conftest*
1663 fi
1664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1667 cat >> confdefs.h <<EOF
1668 #define $ac_tr_hdr 1
1669 EOF
1670
1671 else
1672 echo "$ac_t""no" 1>&6
1673 fi
1674 done
1675
1676
1677 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1678 echo "configure:1679: checking for mode_t" >&5
1679 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1681 else
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 #include <sys/types.h>
1686 #if STDC_HEADERS
1687 #include <stdlib.h>
1688 #include <stddef.h>
1689 #endif
1690 EOF
1691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1692 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1693 rm -rf conftest*
1694 ac_cv_type_mode_t=yes
1695 else
1696 rm -rf conftest*
1697 ac_cv_type_mode_t=no
1698 fi
1699 rm -f conftest*
1700
1701 fi
1702 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1703 if test $ac_cv_type_mode_t = no; then
1704 cat >> confdefs.h <<\EOF
1705 #define mode_t int
1706 EOF
1707
1708 fi
1709
1710 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1711 echo "configure:1712: checking whether time.h and sys/time.h may both be included" >&5
1712 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1714 else
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1718 #include <sys/types.h>
1719 #include <sys/time.h>
1720 #include <time.h>
1721 int main() {
1722 struct tm *tp;
1723 ; return 0; }
1724 EOF
1725 if { (eval echo configure:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1726 rm -rf conftest*
1727 ac_cv_header_time=yes
1728 else
1729 echo "configure: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1731 rm -rf conftest*
1732 ac_cv_header_time=no
1733 fi
1734 rm -f conftest*
1735 fi
1736
1737 echo "$ac_t""$ac_cv_header_time" 1>&6
1738 if test $ac_cv_header_time = yes; then
1739 cat >> confdefs.h <<\EOF
1740 #define TIME_WITH_SYS_TIME 1
1741 EOF
1742
1743 fi
1744
1745
1746 if test $ac_cv_prog_gcc = yes; then
1747 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether ${CC-cc} needs -traditional" >&5
1749 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 ac_pattern="Autoconf.*'x'"
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 #include <sgtty.h>
1757 Autoconf TIOCGETP
1758 EOF
1759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1760 egrep "$ac_pattern" >/dev/null 2>&1; then
1761 rm -rf conftest*
1762 ac_cv_prog_gcc_traditional=yes
1763 else
1764 rm -rf conftest*
1765 ac_cv_prog_gcc_traditional=no
1766 fi
1767 rm -f conftest*
1768
1769
1770 if test $ac_cv_prog_gcc_traditional = no; then
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1774 #include <termio.h>
1775 Autoconf TCGETA
1776 EOF
1777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1778 egrep "$ac_pattern" >/dev/null 2>&1; then
1779 rm -rf conftest*
1780 ac_cv_prog_gcc_traditional=yes
1781 fi
1782 rm -f conftest*
1783
1784 fi
1785 fi
1786
1787 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1788 if test $ac_cv_prog_gcc_traditional = yes; then
1789 CC="$CC -traditional"
1790 fi
1791 fi
1792
1793 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1794 echo "configure:1795: checking for 8-bit clean memcmp" >&5
1795 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798 if test "$cross_compiling" = yes; then
1799 ac_cv_func_memcmp_clean=no
1800 else
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1804
1805 main()
1806 {
1807 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1808 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1809 }
1810
1811 EOF
1812 if { (eval echo configure:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1813 then
1814 ac_cv_func_memcmp_clean=yes
1815 else
1816 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1818 rm -fr conftest*
1819 ac_cv_func_memcmp_clean=no
1820 fi
1821 rm -fr conftest*
1822 fi
1823
1824 fi
1825
1826 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1827 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1828
1829 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1830 echo "configure:1831: checking return type of signal handlers" >&5
1831 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 #include <sys/types.h>
1838 #include <signal.h>
1839 #ifdef signal
1840 #undef signal
1841 #endif
1842 #ifdef __cplusplus
1843 extern "C" void (*signal (int, void (*)(int)))(int);
1844 #else
1845 void (*signal ()) ();
1846 #endif
1847
1848 int main() {
1849 int i;
1850 ; return 0; }
1851 EOF
1852 if { (eval echo configure:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1853 rm -rf conftest*
1854 ac_cv_type_signal=void
1855 else
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1858 rm -rf conftest*
1859 ac_cv_type_signal=int
1860 fi
1861 rm -f conftest*
1862 fi
1863
1864 echo "$ac_t""$ac_cv_type_signal" 1>&6
1865 cat >> confdefs.h <<EOF
1866 #define RETSIGTYPE $ac_cv_type_signal
1867 EOF
1868
1869
1870 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
1871 echo "configure:1872: checking for wait3 that fills in rusage" >&5
1872 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1874 else
1875 if test "$cross_compiling" = yes; then
1876 ac_cv_func_wait3_rusage=no
1877 else
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 #include <sys/types.h>
1882 #include <sys/time.h>
1883 #include <sys/resource.h>
1884 #include <stdio.h>
1885 /* HP-UX has wait3 but does not fill in rusage at all. */
1886 main() {
1887 struct rusage r;
1888 int i;
1889 /* Use a field that we can force nonzero --
1890 voluntary context switches.
1891 For systems like NeXT and OSF/1 that don't set it,
1892 also use the system CPU time. And page faults (I/O) for Linux. */
1893 r.ru_nvcsw = 0;
1894 r.ru_stime.tv_sec = 0;
1895 r.ru_stime.tv_usec = 0;
1896 r.ru_majflt = r.ru_minflt = 0;
1897 switch (fork()) {
1898 case 0: /* Child. */
1899 sleep(1); /* Give up the CPU. */
1900 _exit(0);
1901 case -1: _exit(0); /* What can we do? */
1902 default: /* Parent. */
1903 wait3(&i, 0, &r);
1904 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
1905 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
1906 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
1907 }
1908 }
1909 EOF
1910 if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1911 then
1912 ac_cv_func_wait3_rusage=yes
1913 else
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1916 rm -fr conftest*
1917 ac_cv_func_wait3_rusage=no
1918 fi
1919 rm -fr conftest*
1920 fi
1921
1922 fi
1923
1924 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
1925 if test $ac_cv_func_wait3_rusage = yes; then
1926 cat >> confdefs.h <<\EOF
1927 #define HAVE_WAIT3 1
1928 EOF
1929
1930 fi
1931
1932 for ac_func in gethostname mkdir select socket strtol
1933 do
1934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_func" >&5
1936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1938 else
1939 cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1942 /* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $ac_func(); below. */
1944 #include <assert.h>
1945 /* Override any gcc2 internal prototype to avoid an error. */
1946 /* We use char because int might match the return type of a gcc2
1947 builtin and then its argument prototype would still apply. */
1948 char $ac_func();
1949
1950 int main() {
1951
1952 /* The GNU C library defines this for functions which it implements
1953 to always fail with ENOSYS. Some functions are actually named
1954 something starting with __ and the normal name is an alias. */
1955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1956 choke me
1957 #else
1958 $ac_func();
1959 #endif
1960
1961 ; return 0; }
1962 EOF
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1964 rm -rf conftest*
1965 eval "ac_cv_func_$ac_func=yes"
1966 else
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1969 rm -rf conftest*
1970 eval "ac_cv_func_$ac_func=no"
1971 fi
1972 rm -f conftest*
1973 fi
1974
1975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_func 1
1980 EOF
1981
1982 else
1983 echo "$ac_t""no" 1>&6
1984 fi
1985 done
1986
1987
1988
1989
1990 trap '' 1 2 15
1991 cat > confcache <<\EOF
1992 # This file is a shell script that caches the results of configure
1993 # tests run on this system so they can be shared between configure
1994 # scripts and configure runs. It is not useful on other systems.
1995 # If it contains results you don't want to keep, you may remove or edit it.
1996 #
1997 # By default, configure uses ./config.cache as the cache file,
1998 # creating it if it does not exist already. You can give configure
1999 # the --cache-file=FILE option to use a different cache file; that is
2000 # what configure does when it calls configure scripts in
2001 # subdirectories, so they share the cache.
2002 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2003 # config.status only pays attention to the cache file if you give it the
2004 # --recheck option to rerun configure.
2005 #
2006 EOF
2007 # The following way of writing the cache mishandles newlines in values,
2008 # but we know of no workaround that is simple, portable, and efficient.
2009 # So, don't put newlines in cache variables' values.
2010 # Ultrix sh set writes to stderr and can't be redirected directly,
2011 # and sets the high bit in the cache file unless we assign to the vars.
2012 (set) 2>&1 |
2013 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2014 *ac_space=\ *)
2015 # `set' does not quote correctly, so add quotes (double-quote substitution
2016 # turns \\\\ into \\, and sed turns \\ into \).
2017 sed -n \
2018 -e "s/'/'\\\\''/g" \
2019 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2020 ;;
2021 *)
2022 # `set' quotes correctly as required by POSIX, so do not add quotes.
2023 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2024 ;;
2025 esac >> confcache
2026 if cmp -s $cache_file confcache; then
2027 :
2028 else
2029 if test -w $cache_file; then
2030 echo "updating cache $cache_file"
2031 cat confcache > $cache_file
2032 else
2033 echo "not updating unwritable cache $cache_file"
2034 fi
2035 fi
2036 rm -f confcache
2037
2038 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2039
2040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2041 # Let make expand exec_prefix.
2042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2043
2044 # Any assignment to VPATH causes Sun make to only execute
2045 # the first set of double-colon rules, so remove it if not needed.
2046 # If there is a colon in the path, we need to keep it.
2047 if test "x$srcdir" = x.; then
2048 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2049 fi
2050
2051 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2052
2053 DEFS=-DHAVE_CONFIG_H
2054
2055 # Without the "./", some shells look in PATH for config.status.
2056 : ${CONFIG_STATUS=./config.status}
2057
2058 echo creating $CONFIG_STATUS
2059 rm -f $CONFIG_STATUS
2060 cat > $CONFIG_STATUS <<EOF
2061 #! /bin/sh
2062 # Generated automatically by configure.
2063 # Run this file to recreate the current configuration.
2064 # This directory was configured as follows,
2065 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2066 #
2067 # $0 $ac_configure_args
2068 #
2069 # Compiler output produced by configure, useful for debugging
2070 # configure, is in ./config.log if it exists.
2071
2072 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2073 for ac_option
2074 do
2075 case "\$ac_option" in
2076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2077 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2078 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2079 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2080 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2081 exit 0 ;;
2082 -help | --help | --hel | --he | --h)
2083 echo "\$ac_cs_usage"; exit 0 ;;
2084 *) echo "\$ac_cs_usage"; exit 1 ;;
2085 esac
2086 done
2087
2088 ac_given_srcdir=$srcdir
2089 ac_given_INSTALL="$INSTALL"
2090
2091 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
2092 EOF
2093 cat >> $CONFIG_STATUS <<EOF
2094
2095 # Protect against being on the right side of a sed subst in config.status.
2096 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2097 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2098 $ac_vpsub
2099 $extrasub
2100 s%@SHELL@%$SHELL%g
2101 s%@CFLAGS@%$CFLAGS%g
2102 s%@CPPFLAGS@%$CPPFLAGS%g
2103 s%@CXXFLAGS@%$CXXFLAGS%g
2104 s%@FFLAGS@%$FFLAGS%g
2105 s%@DEFS@%$DEFS%g
2106 s%@LDFLAGS@%$LDFLAGS%g
2107 s%@LIBS@%$LIBS%g
2108 s%@exec_prefix@%$exec_prefix%g
2109 s%@prefix@%$prefix%g
2110 s%@program_transform_name@%$program_transform_name%g
2111 s%@bindir@%$bindir%g
2112 s%@sbindir@%$sbindir%g
2113 s%@libexecdir@%$libexecdir%g
2114 s%@datadir@%$datadir%g
2115 s%@sysconfdir@%$sysconfdir%g
2116 s%@sharedstatedir@%$sharedstatedir%g
2117 s%@localstatedir@%$localstatedir%g
2118 s%@libdir@%$libdir%g
2119 s%@includedir@%$includedir%g
2120 s%@oldincludedir@%$oldincludedir%g
2121 s%@infodir@%$infodir%g
2122 s%@mandir@%$mandir%g
2123 s%@abs_top_srcdir@%$abs_top_srcdir%g
2124 s%@CC@%$CC%g
2125 s%@CPP@%$CPP%g
2126 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2127 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2128 s%@INSTALL_DATA@%$INSTALL_DATA%g
2129 s%@LN_S@%$LN_S%g
2130 s%@SET_MAKE@%$SET_MAKE%g
2131 s%@RANLIB@%$RANLIB%g
2132 s%@CCOPTIONS@%$CCOPTIONS%g
2133 s%@CDEBUGFLAGS@%$CDEBUGFLAGS%g
2134 s%@LIBOBJS@%$LIBOBJS%g
2135
2136 CEOF
2137 EOF
2138
2139 cat >> $CONFIG_STATUS <<\EOF
2140
2141 # Split the substitutions into bite-sized pieces for seds with
2142 # small command number limits, like on Digital OSF/1 and HP-UX.
2143 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2144 ac_file=1 # Number of current file.
2145 ac_beg=1 # First line for current file.
2146 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2147 ac_more_lines=:
2148 ac_sed_cmds=""
2149 while $ac_more_lines; do
2150 if test $ac_beg -gt 1; then
2151 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2152 else
2153 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2154 fi
2155 if test ! -s conftest.s$ac_file; then
2156 ac_more_lines=false
2157 rm -f conftest.s$ac_file
2158 else
2159 if test -z "$ac_sed_cmds"; then
2160 ac_sed_cmds="sed -f conftest.s$ac_file"
2161 else
2162 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2163 fi
2164 ac_file=`expr $ac_file + 1`
2165 ac_beg=$ac_end
2166 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2167 fi
2168 done
2169 if test -z "$ac_sed_cmds"; then
2170 ac_sed_cmds=cat
2171 fi
2172 EOF
2173
2174 cat >> $CONFIG_STATUS <<EOF
2175
2176 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"}
2177 EOF
2178 cat >> $CONFIG_STATUS <<\EOF
2179 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2180 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2181 case "$ac_file" in
2182 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2183 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2184 *) ac_file_in="${ac_file}.in" ;;
2185 esac
2186
2187 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2188
2189 # Remove last slash and all that follows it. Not all systems have dirname.
2190 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2191 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2192 # The file is in a subdirectory.
2193 test ! -d "$ac_dir" && mkdir "$ac_dir"
2194 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2195 # A "../" for each directory in $ac_dir_suffix.
2196 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2197 else
2198 ac_dir_suffix= ac_dots=
2199 fi
2200
2201 case "$ac_given_srcdir" in
2202 .) srcdir=.
2203 if test -z "$ac_dots"; then top_srcdir=.
2204 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2205 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2206 *) # Relative path.
2207 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2208 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2209 esac
2210
2211 case "$ac_given_INSTALL" in
2212 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2213 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2214 esac
2215
2216 echo creating "$ac_file"
2217 rm -f "$ac_file"
2218 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2219 case "$ac_file" in
2220 *Makefile*) ac_comsub="1i\\
2221 # $configure_input" ;;
2222 *) ac_comsub= ;;
2223 esac
2224
2225 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2226 sed -e "$ac_comsub
2227 s%@configure_input@%$configure_input%g
2228 s%@srcdir@%$srcdir%g
2229 s%@top_srcdir@%$top_srcdir%g
2230 s%@INSTALL@%$INSTALL%g
2231 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2232 fi; done
2233 rm -f conftest.s*
2234
2235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2237 #
2238 # ac_d sets the value in "#define NAME VALUE" lines.
2239 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2240 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2241 ac_dC='\3'
2242 ac_dD='%g'
2243 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2244 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2245 ac_uB='\([ ]\)%\1#\2define\3'
2246 ac_uC=' '
2247 ac_uD='\4%g'
2248 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2249 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2250 ac_eB='$%\1#\2define\3'
2251 ac_eC=' '
2252 ac_eD='%g'
2253
2254 if test "${CONFIG_HEADERS+set}" != set; then
2255 EOF
2256 cat >> $CONFIG_STATUS <<EOF
2257 CONFIG_HEADERS="config.h"
2258 EOF
2259 cat >> $CONFIG_STATUS <<\EOF
2260 fi
2261 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2263 case "$ac_file" in
2264 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2265 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2266 *) ac_file_in="${ac_file}.in" ;;
2267 esac
2268
2269 echo creating $ac_file
2270
2271 rm -f conftest.frag conftest.in conftest.out
2272 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2273 cat $ac_file_inputs > conftest.in
2274
2275 EOF
2276
2277 # Transform confdefs.h into a sed script conftest.vals that substitutes
2278 # the proper values into config.h.in to produce config.h. And first:
2279 # Protect against being on the right side of a sed subst in config.status.
2280 # Protect against being in an unquoted here document in config.status.
2281 rm -f conftest.vals
2282 cat > conftest.hdr <<\EOF
2283 s/[\\&%]/\\&/g
2284 s%[\\$`]%\\&%g
2285 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2286 s%ac_d%ac_u%gp
2287 s%ac_u%ac_e%gp
2288 EOF
2289 sed -n -f conftest.hdr confdefs.h > conftest.vals
2290 rm -f conftest.hdr
2291
2292 # This sed command replaces #undef with comments. This is necessary, for
2293 # example, in the case of _POSIX_SOURCE, which is predefined and required
2294 # on some systems where configure will not decide to define it.
2295 cat >> conftest.vals <<\EOF
2296 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2297 EOF
2298
2299 # Break up conftest.vals because some shells have a limit on
2300 # the size of here documents, and old seds have small limits too.
2301
2302 rm -f conftest.tail
2303 while :
2304 do
2305 ac_lines=`grep -c . conftest.vals`
2306 # grep -c gives empty output for an empty file on some AIX systems.
2307 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2308 # Write a limited-size here document to conftest.frag.
2309 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2310 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2311 echo 'CEOF
2312 sed -f conftest.frag conftest.in > conftest.out
2313 rm -f conftest.in
2314 mv conftest.out conftest.in
2315 ' >> $CONFIG_STATUS
2316 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2317 rm -f conftest.vals
2318 mv conftest.tail conftest.vals
2319 done
2320 rm -f conftest.vals
2321
2322 cat >> $CONFIG_STATUS <<\EOF
2323 rm -f conftest.frag conftest.h
2324 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2325 cat conftest.in >> conftest.h
2326 rm -f conftest.in
2327 if cmp -s $ac_file conftest.h 2>/dev/null; then
2328 echo "$ac_file is unchanged"
2329 rm -f conftest.h
2330 else
2331 # Remove last slash and all that follows it. Not all systems have dirname.
2332 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2333 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2334 # The file is in a subdirectory.
2335 test ! -d "$ac_dir" && mkdir "$ac_dir"
2336 fi
2337 rm -f $ac_file
2338 mv conftest.h $ac_file
2339 fi
2340 fi; done
2341
2342 EOF
2343 cat >> $CONFIG_STATUS <<EOF
2344
2345 EOF
2346 cat >> $CONFIG_STATUS <<\EOF
2347
2348 exit 0
2349 EOF
2350 chmod +x $CONFIG_STATUS
2351 rm -fr confdefs* $ac_clean_files
2352 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2353

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