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.14 - (show annotations) (download)
Mon Jun 18 09:09:20 2001 UTC (22 years, 9 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a018
Changes since 1.13: +1138 -124 lines
FreeWnn-1.1.1-a018 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 --enable-shared[=PKGS] build shared libraries [default=yes]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25 --enable-sharedlib build shared library using GNU libtool"
26 ac_help="$ac_help
27 --enable-libraries build and install libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-server build and install server [default=yes]"
30 ac_help="$ac_help
31 --enable-Wnn build and install Wnn [default=true]"
32 ac_help="$ac_help
33 --enable-cWnn build and install cWnn [default=true]"
34 ac_help="$ac_help
35 --enable-kWnn build and install kWnn [default=true]"
36 ac_help="$ac_help
37 --with-libwnn use installed Wnn library [default=no]"
38 ac_help="$ac_help
39 --with-wnn-includes=DIR WNN include files are in DIR"
40 ac_help="$ac_help
41 --with-wnn-libraries=DIR Search for WNN libraries in DIR[default=/usr/local/lib]"
42 ac_help="$ac_help
43 --with-libcwnn use installed cWnn library [default=no]"
44 ac_help="$ac_help
45 --with-cwnn-includes=DIR CWNN include files are in DIR"
46 ac_help="$ac_help
47 --with-cwnn-libraries=DIR Search for CWNN libraries in DIR[default=/usr/local/lib]"
48 ac_help="$ac_help
49 --with-libkwnn use installed kWnn library [default=no]"
50 ac_help="$ac_help
51 --with-kwnn-includes=DIR KWNN include files are in DIR"
52 ac_help="$ac_help
53 --with-kwnn-libraries=DIR Search for KWNN libraries in DIR[default=/usr/local/lib]"
54 ac_help="$ac_help
55 --with-x use the X Window System"
56
57 # Initialize some variables set by options.
58 # The variables have the same names as the options, with
59 # dashes changed to underlines.
60 build=NONE
61 cache_file=./config.cache
62 exec_prefix=NONE
63 host=NONE
64 no_create=
65 nonopt=NONE
66 no_recursion=
67 prefix=NONE
68 program_prefix=NONE
69 program_suffix=NONE
70 program_transform_name=s,x,x,
71 silent=
72 site=
73 srcdir=
74 target=NONE
75 verbose=
76 x_includes=NONE
77 x_libraries=NONE
78 bindir='${exec_prefix}/bin'
79 sbindir='${exec_prefix}/sbin'
80 libexecdir='${exec_prefix}/libexec'
81 datadir='${prefix}/share'
82 sysconfdir='${prefix}/etc'
83 sharedstatedir='${prefix}/com'
84 localstatedir='${prefix}/var'
85 libdir='${exec_prefix}/lib'
86 includedir='${prefix}/include'
87 oldincludedir='/usr/include'
88 infodir='${prefix}/info'
89 mandir='${prefix}/man'
90
91 # Initialize some other variables.
92 subdirs=
93 MFLAGS= MAKEFLAGS=
94 SHELL=${CONFIG_SHELL-/bin/sh}
95 # Maximum number of lines to put in a shell here document.
96 ac_max_here_lines=12
97
98 ac_prev=
99 for ac_option
100 do
101
102 # If the previous option needs an argument, assign it.
103 if test -n "$ac_prev"; then
104 eval "$ac_prev=\$ac_option"
105 ac_prev=
106 continue
107 fi
108
109 case "$ac_option" in
110 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
111 *) ac_optarg= ;;
112 esac
113
114 # Accept the important Cygnus configure options, so we can diagnose typos.
115
116 case "$ac_option" in
117
118 -bindir | --bindir | --bindi | --bind | --bin | --bi)
119 ac_prev=bindir ;;
120 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
121 bindir="$ac_optarg" ;;
122
123 -build | --build | --buil | --bui | --bu)
124 ac_prev=build ;;
125 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
126 build="$ac_optarg" ;;
127
128 -cache-file | --cache-file | --cache-fil | --cache-fi \
129 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
130 ac_prev=cache_file ;;
131 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
132 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
133 cache_file="$ac_optarg" ;;
134
135 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
136 ac_prev=datadir ;;
137 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
138 | --da=*)
139 datadir="$ac_optarg" ;;
140
141 -disable-* | --disable-*)
142 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 fi
147 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}=no" ;;
149
150 -enable-* | --enable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 fi
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 case "$ac_option" in
158 *=*) ;;
159 *) ac_optarg=yes ;;
160 esac
161 eval "enable_${ac_feature}='$ac_optarg'" ;;
162
163 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
164 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
165 | --exec | --exe | --ex)
166 ac_prev=exec_prefix ;;
167 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
168 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
169 | --exec=* | --exe=* | --ex=*)
170 exec_prefix="$ac_optarg" ;;
171
172 -gas | --gas | --ga | --g)
173 # Obsolete; use --with-gas.
174 with_gas=yes ;;
175
176 -help | --help | --hel | --he)
177 # Omit some internal or obsolete options to make the list less imposing.
178 # This message is too long to be a string in the A/UX 3.1 sh.
179 cat << EOF
180 Usage: configure [options] [host]
181 Options: [defaults in brackets after descriptions]
182 Configuration:
183 --cache-file=FILE cache test results in FILE
184 --help print this message
185 --no-create do not create output files
186 --quiet, --silent do not print \`checking...' messages
187 --version print the version of autoconf that created configure
188 Directory and file names:
189 --prefix=PREFIX install architecture-independent files in PREFIX
190 [$ac_default_prefix]
191 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 [same as prefix]
193 --bindir=DIR user executables in DIR [EPREFIX/bin]
194 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
195 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
196 --datadir=DIR read-only architecture-independent data in DIR
197 [PREFIX/share]
198 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
199 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 [PREFIX/com]
201 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
202 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
203 --includedir=DIR C header files in DIR [PREFIX/include]
204 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
205 --infodir=DIR info documentation in DIR [PREFIX/info]
206 --mandir=DIR man documentation in DIR [PREFIX/man]
207 --srcdir=DIR find the sources in DIR [configure dir or ..]
208 --program-prefix=PREFIX prepend PREFIX to installed program names
209 --program-suffix=SUFFIX append SUFFIX to installed program names
210 --program-transform-name=PROGRAM
211 run sed PROGRAM on installed program names
212 EOF
213 cat << EOF
214 Host type:
215 --build=BUILD configure for building on BUILD [BUILD=HOST]
216 --host=HOST configure for HOST [guessed]
217 --target=TARGET configure for TARGET [TARGET=HOST]
218 Features and packages:
219 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
220 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
221 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
222 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
223 --x-includes=DIR X include files are in DIR
224 --x-libraries=DIR X library files are in DIR
225 EOF
226 if test -n "$ac_help"; then
227 echo "--enable and --with options recognized:$ac_help"
228 fi
229 exit 0 ;;
230
231 -host | --host | --hos | --ho)
232 ac_prev=host ;;
233 -host=* | --host=* | --hos=* | --ho=*)
234 host="$ac_optarg" ;;
235
236 -includedir | --includedir | --includedi | --included | --include \
237 | --includ | --inclu | --incl | --inc)
238 ac_prev=includedir ;;
239 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
240 | --includ=* | --inclu=* | --incl=* | --inc=*)
241 includedir="$ac_optarg" ;;
242
243 -infodir | --infodir | --infodi | --infod | --info | --inf)
244 ac_prev=infodir ;;
245 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
246 infodir="$ac_optarg" ;;
247
248 -libdir | --libdir | --libdi | --libd)
249 ac_prev=libdir ;;
250 -libdir=* | --libdir=* | --libdi=* | --libd=*)
251 libdir="$ac_optarg" ;;
252
253 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
254 | --libexe | --libex | --libe)
255 ac_prev=libexecdir ;;
256 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
257 | --libexe=* | --libex=* | --libe=*)
258 libexecdir="$ac_optarg" ;;
259
260 -localstatedir | --localstatedir | --localstatedi | --localstated \
261 | --localstate | --localstat | --localsta | --localst \
262 | --locals | --local | --loca | --loc | --lo)
263 ac_prev=localstatedir ;;
264 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
265 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
266 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
267 localstatedir="$ac_optarg" ;;
268
269 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
270 ac_prev=mandir ;;
271 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
272 mandir="$ac_optarg" ;;
273
274 -nfp | --nfp | --nf)
275 # Obsolete; use --without-fp.
276 with_fp=no ;;
277
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
279 | --no-cr | --no-c)
280 no_create=yes ;;
281
282 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
283 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
284 no_recursion=yes ;;
285
286 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
287 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
288 | --oldin | --oldi | --old | --ol | --o)
289 ac_prev=oldincludedir ;;
290 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
291 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
292 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
293 oldincludedir="$ac_optarg" ;;
294
295 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
296 ac_prev=prefix ;;
297 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
298 prefix="$ac_optarg" ;;
299
300 -program-prefix | --program-prefix | --program-prefi | --program-pref \
301 | --program-pre | --program-pr | --program-p)
302 ac_prev=program_prefix ;;
303 -program-prefix=* | --program-prefix=* | --program-prefi=* \
304 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
305 program_prefix="$ac_optarg" ;;
306
307 -program-suffix | --program-suffix | --program-suffi | --program-suff \
308 | --program-suf | --program-su | --program-s)
309 ac_prev=program_suffix ;;
310 -program-suffix=* | --program-suffix=* | --program-suffi=* \
311 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
312 program_suffix="$ac_optarg" ;;
313
314 -program-transform-name | --program-transform-name \
315 | --program-transform-nam | --program-transform-na \
316 | --program-transform-n | --program-transform- \
317 | --program-transform | --program-transfor \
318 | --program-transfo | --program-transf \
319 | --program-trans | --program-tran \
320 | --progr-tra | --program-tr | --program-t)
321 ac_prev=program_transform_name ;;
322 -program-transform-name=* | --program-transform-name=* \
323 | --program-transform-nam=* | --program-transform-na=* \
324 | --program-transform-n=* | --program-transform-=* \
325 | --program-transform=* | --program-transfor=* \
326 | --program-transfo=* | --program-transf=* \
327 | --program-trans=* | --program-tran=* \
328 | --progr-tra=* | --program-tr=* | --program-t=*)
329 program_transform_name="$ac_optarg" ;;
330
331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
332 | -silent | --silent | --silen | --sile | --sil)
333 silent=yes ;;
334
335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
336 ac_prev=sbindir ;;
337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
338 | --sbi=* | --sb=*)
339 sbindir="$ac_optarg" ;;
340
341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
343 | --sharedst | --shareds | --shared | --share | --shar \
344 | --sha | --sh)
345 ac_prev=sharedstatedir ;;
346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
349 | --sha=* | --sh=*)
350 sharedstatedir="$ac_optarg" ;;
351
352 -site | --site | --sit)
353 ac_prev=site ;;
354 -site=* | --site=* | --sit=*)
355 site="$ac_optarg" ;;
356
357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
358 ac_prev=srcdir ;;
359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
360 srcdir="$ac_optarg" ;;
361
362 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
363 | --syscon | --sysco | --sysc | --sys | --sy)
364 ac_prev=sysconfdir ;;
365 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
366 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
367 sysconfdir="$ac_optarg" ;;
368
369 -target | --target | --targe | --targ | --tar | --ta | --t)
370 ac_prev=target ;;
371 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
372 target="$ac_optarg" ;;
373
374 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 verbose=yes ;;
376
377 -version | --version | --versio | --versi | --vers)
378 echo "configure generated by autoconf version 2.13"
379 exit 0 ;;
380
381 -with-* | --with-*)
382 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 fi
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 case "$ac_option" in
389 *=*) ;;
390 *) ac_optarg=yes ;;
391 esac
392 eval "with_${ac_package}='$ac_optarg'" ;;
393
394 -without-* | --without-*)
395 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 fi
400 ac_package=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}=no" ;;
402
403 --x)
404 # Obsolete; use --with-x.
405 with_x=yes ;;
406
407 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
408 | --x-incl | --x-inc | --x-in | --x-i)
409 ac_prev=x_includes ;;
410 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
411 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
412 x_includes="$ac_optarg" ;;
413
414 -x-libraries | --x-libraries | --x-librarie | --x-librari \
415 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
416 ac_prev=x_libraries ;;
417 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
418 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
419 x_libraries="$ac_optarg" ;;
420
421 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
422 ;;
423
424 *)
425 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
426 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 fi
428 if test "x$nonopt" != xNONE; then
429 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
430 fi
431 nonopt="$ac_option"
432 ;;
433
434 esac
435 done
436
437 if test -n "$ac_prev"; then
438 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 fi
440
441 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442
443 # File descriptor usage:
444 # 0 standard input
445 # 1 file creation
446 # 2 errors and warnings
447 # 3 some systems may open it to /dev/tty
448 # 4 used on the Kubota Titan
449 # 6 checking for... messages and results
450 # 5 compiler messages saved in config.log
451 if test "$silent" = yes; then
452 exec 6>/dev/null
453 else
454 exec 6>&1
455 fi
456 exec 5>./config.log
457
458 echo "\
459 This file contains any messages produced by compilers while
460 running configure, to aid debugging if configure makes a mistake.
461 " 1>&5
462
463 # Strip out --no-create and --no-recursion so they do not pile up.
464 # Also quote any args containing shell metacharacters.
465 ac_configure_args=
466 for ac_arg
467 do
468 case "$ac_arg" in
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c) ;;
471 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
472 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
474 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
475 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 esac
477 done
478
479 # NLS nuisances.
480 # Only set these to C if already set. These must not be set unconditionally
481 # because not all systems understand e.g. LANG=C (notably SCO).
482 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
483 # Non-C LC_CTYPE values break the ctype check.
484 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
485 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
486 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
487 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
488
489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
490 rm -rf conftest* confdefs.h
491 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 echo > confdefs.h
493
494 # A filename unique to this package, relative to the directory that
495 # configure is in, which we can look for to find out if srcdir is correct.
496 ac_unique_file=Wnn/conv/cvt_head.h
497
498 # Find the source files, if location was not specified.
499 if test -z "$srcdir"; then
500 ac_srcdir_defaulted=yes
501 # Try the directory containing this script, then its parent.
502 ac_prog=$0
503 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
504 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
505 srcdir=$ac_confdir
506 if test ! -r $srcdir/$ac_unique_file; then
507 srcdir=..
508 fi
509 else
510 ac_srcdir_defaulted=no
511 fi
512 if test ! -r $srcdir/$ac_unique_file; then
513 if test "$ac_srcdir_defaulted" = yes; then
514 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 else
516 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 fi
518 fi
519 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520
521 # Prefer explicitly selected file to automatically selected ones.
522 if test -z "$CONFIG_SITE"; then
523 if test "x$prefix" != xNONE; then
524 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
525 else
526 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 fi
528 fi
529 for ac_site_file in $CONFIG_SITE; do
530 if test -r "$ac_site_file"; then
531 echo "loading site script $ac_site_file"
532 . "$ac_site_file"
533 fi
534 done
535
536 if test -r "$cache_file"; then
537 echo "loading cache $cache_file"
538 . $cache_file
539 else
540 echo "creating cache $cache_file"
541 > $cache_file
542 fi
543
544 ac_ext=c
545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
546 ac_cpp='$CPP $CPPFLAGS'
547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
549 cross_compiling=$ac_cv_prog_cc_cross
550
551 ac_exeext=
552 ac_objext=o
553 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
556 ac_n= ac_c='
557 ' ac_t=' '
558 else
559 ac_n=-n ac_c= ac_t=
560 fi
561 else
562 ac_n= ac_c='\c' ac_t=
563 fi
564
565
566
567
568 case "$top_srcdir" in
569 .) abs_top_srcdir=`pwd` ;;
570 /*) abs_top_srcdir=top_srcdir;;
571 *) # Relative path.
572 abs_top_srcdir=`pwd`$ac_dots$ac_given_srcdir ;;
573 esac
574
575
576
577 ac_aux_dir=
578 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
579 if test -f $ac_dir/install-sh; then
580 ac_aux_dir=$ac_dir
581 ac_install_sh="$ac_aux_dir/install-sh -c"
582 break
583 elif test -f $ac_dir/install.sh; then
584 ac_aux_dir=$ac_dir
585 ac_install_sh="$ac_aux_dir/install.sh -c"
586 break
587 fi
588 done
589 if test -z "$ac_aux_dir"; then
590 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
591 fi
592 ac_config_guess=$ac_aux_dir/config.guess
593 ac_config_sub=$ac_aux_dir/config.sub
594 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
595
596 # Check whether --enable-shared or --disable-shared was given.
597 if test "${enable_shared+set}" = set; then
598 enableval="$enable_shared"
599 p=${PACKAGE-default}
600 case "$enableval" in
601 yes) enable_shared=yes ;;
602 no) enable_shared=no ;;
603 *)
604 enable_shared=no
605 # Look at the argument we got. We use all the common list separators.
606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
607 for pkg in $enableval; do
608 if test "X$pkg" = "X$p"; then
609 enable_shared=yes
610 fi
611 done
612 IFS="$ac_save_ifs"
613 ;;
614 esac
615 else
616 enable_shared=yes
617 fi
618
619 # Check whether --enable-static or --disable-static was given.
620 if test "${enable_static+set}" = set; then
621 enableval="$enable_static"
622 p=${PACKAGE-default}
623 case "$enableval" in
624 yes) enable_static=yes ;;
625 no) enable_static=no ;;
626 *)
627 enable_static=no
628 # Look at the argument we got. We use all the common list separators.
629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
630 for pkg in $enableval; do
631 if test "X$pkg" = "X$p"; then
632 enable_static=yes
633 fi
634 done
635 IFS="$ac_save_ifs"
636 ;;
637 esac
638 else
639 enable_static=yes
640 fi
641
642 # Check whether --enable-fast-install or --disable-fast-install was given.
643 if test "${enable_fast_install+set}" = set; then
644 enableval="$enable_fast_install"
645 p=${PACKAGE-default}
646 case "$enableval" in
647 yes) enable_fast_install=yes ;;
648 no) enable_fast_install=no ;;
649 *)
650 enable_fast_install=no
651 # Look at the argument we got. We use all the common list separators.
652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
653 for pkg in $enableval; do
654 if test "X$pkg" = "X$p"; then
655 enable_fast_install=yes
656 fi
657 done
658 IFS="$ac_save_ifs"
659 ;;
660 esac
661 else
662 enable_fast_install=yes
663 fi
664
665
666 # Make sure we can run config.sub.
667 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
668 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
669 fi
670
671 echo $ac_n "checking host system type""... $ac_c" 1>&6
672 echo "configure:673: checking host system type" >&5
673
674 host_alias=$host
675 case "$host_alias" in
676 NONE)
677 case $nonopt in
678 NONE)
679 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
680 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
681 fi ;;
682 *) host_alias=$nonopt ;;
683 esac ;;
684 esac
685
686 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
687 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
688 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
689 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
690 echo "$ac_t""$host" 1>&6
691
692 echo $ac_n "checking build system type""... $ac_c" 1>&6
693 echo "configure:694: checking build system type" >&5
694
695 build_alias=$build
696 case "$build_alias" in
697 NONE)
698 case $nonopt in
699 NONE) build_alias=$host_alias ;;
700 *) build_alias=$nonopt ;;
701 esac ;;
702 esac
703
704 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
705 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
706 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
707 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo "$ac_t""$build" 1>&6
709
710 # Extract the first word of "ranlib", so it can be a program name with args.
711 set dummy ranlib; ac_word=$2
712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
713 echo "configure:714: checking for $ac_word" >&5
714 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
715 echo $ac_n "(cached) $ac_c" 1>&6
716 else
717 if test -n "$RANLIB"; then
718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
719 else
720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
721 ac_dummy="$PATH"
722 for ac_dir in $ac_dummy; do
723 test -z "$ac_dir" && ac_dir=.
724 if test -f $ac_dir/$ac_word; then
725 ac_cv_prog_RANLIB="ranlib"
726 break
727 fi
728 done
729 IFS="$ac_save_ifs"
730 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
731 fi
732 fi
733 RANLIB="$ac_cv_prog_RANLIB"
734 if test -n "$RANLIB"; then
735 echo "$ac_t""$RANLIB" 1>&6
736 else
737 echo "$ac_t""no" 1>&6
738 fi
739
740 # Extract the first word of "gcc", so it can be a program name with args.
741 set dummy gcc; ac_word=$2
742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
743 echo "configure:744: checking for $ac_word" >&5
744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746 else
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
749 else
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 ac_dummy="$PATH"
752 for ac_dir in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir=.
754 if test -f $ac_dir/$ac_word; then
755 ac_cv_prog_CC="gcc"
756 break
757 fi
758 done
759 IFS="$ac_save_ifs"
760 fi
761 fi
762 CC="$ac_cv_prog_CC"
763 if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
765 else
766 echo "$ac_t""no" 1>&6
767 fi
768
769 if test -z "$CC"; then
770 # Extract the first word of "cc", so it can be a program name with args.
771 set dummy cc; ac_word=$2
772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
773 echo "configure:774: checking for $ac_word" >&5
774 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
776 else
777 if test -n "$CC"; then
778 ac_cv_prog_CC="$CC" # Let the user override the test.
779 else
780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
781 ac_prog_rejected=no
782 ac_dummy="$PATH"
783 for ac_dir in $ac_dummy; do
784 test -z "$ac_dir" && ac_dir=.
785 if test -f $ac_dir/$ac_word; then
786 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
787 ac_prog_rejected=yes
788 continue
789 fi
790 ac_cv_prog_CC="cc"
791 break
792 fi
793 done
794 IFS="$ac_save_ifs"
795 if test $ac_prog_rejected = yes; then
796 # We found a bogon in the path, so make sure we never use it.
797 set dummy $ac_cv_prog_CC
798 shift
799 if test $# -gt 0; then
800 # We chose a different compiler from the bogus one.
801 # However, it has the same basename, so the bogon will be chosen
802 # first if we set CC to just the basename; use the full file name.
803 shift
804 set dummy "$ac_dir/$ac_word" "$@"
805 shift
806 ac_cv_prog_CC="$@"
807 fi
808 fi
809 fi
810 fi
811 CC="$ac_cv_prog_CC"
812 if test -n "$CC"; then
813 echo "$ac_t""$CC" 1>&6
814 else
815 echo "$ac_t""no" 1>&6
816 fi
817
818 if test -z "$CC"; then
819 case "`uname -s`" in
820 *win32* | *WIN32*)
821 # Extract the first word of "cl", so it can be a program name with args.
822 set dummy cl; ac_word=$2
823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
824 echo "configure:825: checking for $ac_word" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827 else
828 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test.
830 else
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 ac_dummy="$PATH"
833 for ac_dir in $ac_dummy; do
834 test -z "$ac_dir" && ac_dir=.
835 if test -f $ac_dir/$ac_word; then
836 ac_cv_prog_CC="cl"
837 break
838 fi
839 done
840 IFS="$ac_save_ifs"
841 fi
842 fi
843 CC="$ac_cv_prog_CC"
844 if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6
846 else
847 echo "$ac_t""no" 1>&6
848 fi
849 ;;
850 esac
851 fi
852 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
853 fi
854
855 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
856 echo "configure:857: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
857
858 ac_ext=c
859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
860 ac_cpp='$CPP $CPPFLAGS'
861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
863 cross_compiling=$ac_cv_prog_cc_cross
864
865 cat > conftest.$ac_ext << EOF
866
867 #line 868 "configure"
868 #include "confdefs.h"
869
870 main(){return(0);}
871 EOF
872 if { (eval echo configure:873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
873 ac_cv_prog_cc_works=yes
874 # If we can't run a trivial program, we are probably using a cross compiler.
875 if (./conftest; exit) 2>/dev/null; then
876 ac_cv_prog_cc_cross=no
877 else
878 ac_cv_prog_cc_cross=yes
879 fi
880 else
881 echo "configure: failed program was:" >&5
882 cat conftest.$ac_ext >&5
883 ac_cv_prog_cc_works=no
884 fi
885 rm -fr conftest*
886 ac_ext=c
887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
888 ac_cpp='$CPP $CPPFLAGS'
889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
891 cross_compiling=$ac_cv_prog_cc_cross
892
893 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
894 if test $ac_cv_prog_cc_works = no; then
895 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
896 fi
897 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
898 echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
899 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
900 cross_compiling=$ac_cv_prog_cc_cross
901
902 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
903 echo "configure:904: checking whether we are using GNU C" >&5
904 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
906 else
907 cat > conftest.c <<EOF
908 #ifdef __GNUC__
909 yes;
910 #endif
911 EOF
912 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
913 ac_cv_prog_gcc=yes
914 else
915 ac_cv_prog_gcc=no
916 fi
917 fi
918
919 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
920
921 if test $ac_cv_prog_gcc = yes; then
922 GCC=yes
923 else
924 GCC=
925 fi
926
927 ac_test_CFLAGS="${CFLAGS+set}"
928 ac_save_CFLAGS="$CFLAGS"
929 CFLAGS=
930 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
931 echo "configure:932: checking whether ${CC-cc} accepts -g" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
934 else
935 echo 'void f(){}' > conftest.c
936 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
937 ac_cv_prog_cc_g=yes
938 else
939 ac_cv_prog_cc_g=no
940 fi
941 rm -f conftest*
942
943 fi
944
945 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
946 if test "$ac_test_CFLAGS" = set; then
947 CFLAGS="$ac_save_CFLAGS"
948 elif test $ac_cv_prog_cc_g = yes; then
949 if test "$GCC" = yes; then
950 CFLAGS="-g -O2"
951 else
952 CFLAGS="-g"
953 fi
954 else
955 if test "$GCC" = yes; then
956 CFLAGS="-O2"
957 else
958 CFLAGS=
959 fi
960 fi
961
962 # Check whether --with-gnu-ld or --without-gnu-ld was given.
963 if test "${with_gnu_ld+set}" = set; then
964 withval="$with_gnu_ld"
965 test "$withval" = no || with_gnu_ld=yes
966 else
967 with_gnu_ld=no
968 fi
969
970 ac_prog=ld
971 if test "$ac_cv_prog_gcc" = yes; then
972 # Check if gcc -print-prog-name=ld gives a path.
973 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
974 echo "configure:975: checking for ld used by GCC" >&5
975 ac_prog=`($CC -print-prog-name=ld) 2>&5`
976 case "$ac_prog" in
977 # Accept absolute paths.
978 [\\/]* | [A-Za-z]:[\\/]*)
979 re_direlt='/[^/][^/]*/\.\./'
980 # Canonicalize the path of ld
981 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
982 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
983 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
984 done
985 test -z "$LD" && LD="$ac_prog"
986 ;;
987 "")
988 # If it fails, then pretend we aren't using GCC.
989 ac_prog=ld
990 ;;
991 *)
992 # If it is relative, then search for the first ld in PATH.
993 with_gnu_ld=unknown
994 ;;
995 esac
996 elif test "$with_gnu_ld" = yes; then
997 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
998 echo "configure:999: checking for GNU ld" >&5
999 else
1000 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1001 echo "configure:1002: checking for non-GNU ld" >&5
1002 fi
1003 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1005 else
1006 if test -z "$LD"; then
1007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1008 for ac_dir in $PATH; do
1009 test -z "$ac_dir" && ac_dir=.
1010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1011 ac_cv_path_LD="$ac_dir/$ac_prog"
1012 # Check to see if the program is GNU ld. I'd rather use --version,
1013 # but apparently some GNU ld's only accept -v.
1014 # Break only if it was the GNU/non-GNU ld that we prefer.
1015 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1016 test "$with_gnu_ld" != no && break
1017 else
1018 test "$with_gnu_ld" != yes && break
1019 fi
1020 fi
1021 done
1022 IFS="$ac_save_ifs"
1023 else
1024 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1025 fi
1026 fi
1027
1028 LD="$ac_cv_path_LD"
1029 if test -n "$LD"; then
1030 echo "$ac_t""$LD" 1>&6
1031 else
1032 echo "$ac_t""no" 1>&6
1033 fi
1034 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1035 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1036 echo "configure:1037: checking if the linker ($LD) is GNU ld" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1039 else
1040 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1041 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1042 ac_cv_prog_gnu_ld=yes
1043 else
1044 ac_cv_prog_gnu_ld=no
1045 fi
1046 fi
1047
1048 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1049
1050
1051 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1052 echo "configure:1053: checking for BSD-compatible nm" >&5
1053 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1055 else
1056 if test -n "$NM"; then
1057 # Let the user override the test.
1058 ac_cv_path_NM="$NM"
1059 else
1060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1061 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1062 test -z "$ac_dir" && ac_dir=.
1063 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1064 # Check to see if the nm accepts a BSD-compat flag.
1065 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1066 # nm: unknown option "B" ignored
1067 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1068 ac_cv_path_NM="$ac_dir/nm -B"
1069 break
1070 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1071 ac_cv_path_NM="$ac_dir/nm -p"
1072 break
1073 else
1074 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1075 continue # so that we can try to find one that supports BSD flags
1076 fi
1077 fi
1078 done
1079 IFS="$ac_save_ifs"
1080 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1081 fi
1082 fi
1083
1084 NM="$ac_cv_path_NM"
1085 echo "$ac_t""$NM" 1>&6
1086
1087 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1088 echo "configure:1089: checking whether ln -s works" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092 rm -f conftestdata
1093 if ln -s X conftestdata 2>/dev/null
1094 then
1095 rm -f conftestdata
1096 ac_cv_prog_LN_S="ln -s"
1097 else
1098 ac_cv_prog_LN_S=ln
1099 fi
1100 fi
1101 LN_S="$ac_cv_prog_LN_S"
1102 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1103 echo "$ac_t""yes" 1>&6
1104 else
1105 echo "$ac_t""no" 1>&6
1106 fi
1107
1108
1109 case "$target" in
1110 NONE) lt_target="$host" ;;
1111 *) lt_target="$target" ;;
1112 esac
1113
1114 # Check for any special flags to pass to ltconfig.
1115 libtool_flags="--cache-file=$cache_file"
1116 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1117 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1118 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1119 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1120 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1121
1122
1123 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1124 if test "${enable_libtool_lock+set}" = set; then
1125 enableval="$enable_libtool_lock"
1126 :
1127 fi
1128
1129 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1130 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1131
1132 # Some flags need to be propagated to the compiler or linker for good
1133 # libtool support.
1134 case "$lt_target" in
1135 *-*-irix6*)
1136 # Find out which ABI we are using.
1137 echo '#line 1138 "configure"' > conftest.$ac_ext
1138 if { (eval echo configure:1139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1139 case "`/usr/bin/file conftest.o`" in
1140 *32-bit*)
1141 LD="${LD-ld} -32"
1142 ;;
1143 *N32*)
1144 LD="${LD-ld} -n32"
1145 ;;
1146 *64-bit*)
1147 LD="${LD-ld} -64"
1148 ;;
1149 esac
1150 fi
1151 rm -rf conftest*
1152 ;;
1153
1154 *-*-sco3.2v5*)
1155 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1156 SAVE_CFLAGS="$CFLAGS"
1157 CFLAGS="$CFLAGS -belf"
1158 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether the C compiler needs -belf" >&5
1160 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1162 else
1163 cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1166
1167 int main() {
1168
1169 ; return 0; }
1170 EOF
1171 if { (eval echo configure:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1172 rm -rf conftest*
1173 lt_cv_cc_needs_belf=yes
1174 else
1175 echo "configure: failed program was:" >&5
1176 cat conftest.$ac_ext >&5
1177 rm -rf conftest*
1178 lt_cv_cc_needs_belf=no
1179 fi
1180 rm -f conftest*
1181 fi
1182
1183 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1184 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1185 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1186 CFLAGS="$SAVE_CFLAGS"
1187 fi
1188 ;;
1189
1190
1191 esac
1192
1193
1194 # Save cache, so that ltconfig can load it
1195 cat > confcache <<\EOF
1196 # This file is a shell script that caches the results of configure
1197 # tests run on this system so they can be shared between configure
1198 # scripts and configure runs. It is not useful on other systems.
1199 # If it contains results you don't want to keep, you may remove or edit it.
1200 #
1201 # By default, configure uses ./config.cache as the cache file,
1202 # creating it if it does not exist already. You can give configure
1203 # the --cache-file=FILE option to use a different cache file; that is
1204 # what configure does when it calls configure scripts in
1205 # subdirectories, so they share the cache.
1206 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1207 # config.status only pays attention to the cache file if you give it the
1208 # --recheck option to rerun configure.
1209 #
1210 EOF
1211 # The following way of writing the cache mishandles newlines in values,
1212 # but we know of no workaround that is simple, portable, and efficient.
1213 # So, don't put newlines in cache variables' values.
1214 # Ultrix sh set writes to stderr and can't be redirected directly,
1215 # and sets the high bit in the cache file unless we assign to the vars.
1216 (set) 2>&1 |
1217 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1218 *ac_space=\ *)
1219 # `set' does not quote correctly, so add quotes (double-quote substitution
1220 # turns \\\\ into \\, and sed turns \\ into \).
1221 sed -n \
1222 -e "s/'/'\\\\''/g" \
1223 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1224 ;;
1225 *)
1226 # `set' quotes correctly as required by POSIX, so do not add quotes.
1227 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1228 ;;
1229 esac >> confcache
1230 if cmp -s $cache_file confcache; then
1231 :
1232 else
1233 if test -w $cache_file; then
1234 echo "updating cache $cache_file"
1235 cat confcache > $cache_file
1236 else
1237 echo "not updating unwritable cache $cache_file"
1238 fi
1239 fi
1240 rm -f confcache
1241
1242
1243 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1244 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1245 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1246 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1247 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1248 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1249 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1250 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1251
1252 # Reload cache, that may have been modified by ltconfig
1253 if test -r "$cache_file"; then
1254 echo "loading cache $cache_file"
1255 . $cache_file
1256 else
1257 echo "creating cache $cache_file"
1258 > $cache_file
1259 fi
1260
1261
1262 # This can be used to rebuild libtool when needed
1263 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1264
1265 # Always use our own libtool.
1266 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1267
1268 # Redirect the config.log output again, so that the ltconfig log is not
1269 # clobbered by the next message.
1270 exec 5>>./config.log
1271
1272
1273 # Check whether --enable-sharedlib or --disable-sharedlib was given.
1274 if test "${enable_sharedlib+set}" = set; then
1275 enableval="$enable_sharedlib"
1276 if test "$enableval" = yes
1277 then
1278 use_sharedlib=yes
1279 else
1280 use_sharedlib=no
1281 fi
1282 else
1283 use_sharedlib=default
1284 fi
1285
1286
1287
1288
1289 # Check whether --enable-libraries or --disable-libraries was given.
1290 if test "${enable_libraries+set}" = set; then
1291 enableval="$enable_libraries"
1292 case "${enableval}" in
1293 yes) libraries=true ;;
1294 no) libraries=false ;;
1295 *) { echo "configure: error: bad value for --enable-libraries" 1>&2; exit 1; } ;;
1296 esac
1297 else
1298 libraries=true
1299 fi
1300
1301
1302 # Check whether --enable-server or --disable-server was given.
1303 if test "${enable_server+set}" = set; then
1304 enableval="$enable_server"
1305 case "${enableval}" in
1306 yes) server=true ;;
1307 no) server=false ;;
1308 *) { echo "configure: error: bad value for --enable-server" 1>&2; exit 1; } ;;
1309 esac
1310 else
1311 server=true
1312 fi
1313
1314
1315
1316 if test $libraries = true; then
1317 SUBDIRS="\$(LIB_SUBDIRS)"
1318 WNNMANDIR="\$(LIB_WNNMANDIR)"
1319 fi
1320 if test $server = true; then
1321 SUBDIRS="$SUBDIRS \$(SERVER_SUBDIRS)"
1322 WNNMANDIR="$WNNMANDIR \$(SERVER_WNNMANDIR)"
1323 fi
1324
1325
1326
1327
1328
1329 # Check whether --enable-Wnn or --disable-Wnn was given.
1330 if test "${enable_Wnn+set}" = set; then
1331 enableval="$enable_Wnn"
1332 case "${enableval}" in
1333 yes) Wnn="Wnn";;
1334 no) Wnn="" ;;
1335 *) { echo "configure: error: bad value for --enable-Wnn" 1>&2; exit 1; } ;;
1336 esac
1337 else
1338 Wnn="Wnn"
1339 fi
1340
1341
1342
1343 if test "$server" = true -a "$Wnn" = Wnn; then
1344 JSERVER_SUBDIRS1="\$(JSERVER_SUBDIRS1)"
1345 JSERVER_SUBDIRS2="\$(JSERVER_SUBDIRS2)"
1346 else
1347 JSERVER_SUBDIRS1=""
1348 JSERVER_SUBDIRS2=""
1349 fi
1350
1351
1352
1353 # Check whether --enable-cWnn or --disable-cWnn was given.
1354 if test "${enable_cWnn+set}" = set; then
1355 enableval="$enable_cWnn"
1356 case "${enableval}" in
1357 yes) cWnn="cWnn" ;;
1358 no) cWnn="" ;;
1359 *) { echo "configure: error: bad value for --enable-cWnn" 1>&2; exit 1; } ;;
1360 esac
1361 else
1362 cWnn="cWnn"
1363 fi
1364
1365
1366
1367 # Check whether --enable-kWnn or --disable-kWnn was given.
1368 if test "${enable_kWnn+set}" = set; then
1369 enableval="$enable_kWnn"
1370 case "${enableval}" in
1371 yes) kWnn="kWnn" ;;
1372 no) kWnn="" ;;
1373 *) { echo "configure: error: bad value for --enable-kWnn" 1>&2; exit 1; } ;;
1374 esac
1375 else
1376 kWnn="kWnn"
1377 fi
1378
1379
1380
1381
1382
1383 # Check whether --with-libwnn or --without-libwnn was given.
1384 if test "${with_libwnn+set}" = set; then
1385 withval="$with_libwnn"
1386 with_libwnn="${withval}"
1387 # Check whether --with-wnn-includes or --without-wnn-includes was given.
1388 if test "${with_wnn_includes+set}" = set; then
1389 withval="$with_wnn_includes"
1390 wnnincludedir="-I${withval}"
1391 else
1392 wnnincludedir=''
1393 fi
1394
1395 # Check whether --with-wnn-libraries or --without-wnn-libraries was given.
1396 if test "${with_wnn_libraries+set}" = set; then
1397 withval="$with_wnn_libraries"
1398 wnnlibdir="${withval}"
1399 else
1400 wnnlibdir='/usr/local/lib'
1401 fi
1402
1403 if test "X${with_libwnn}" = X-lwnn; then
1404 WNNJLIB="-L${wnnlibdir} -lwnn"
1405 elif test X"`echo ${with_libwnn} | grep '^/.*'`" != X ; then
1406 WNNJLIB="${with_libwnn}"
1407 else
1408 WNNJLIB="${wnnlibdir}/libwnn.a"
1409 fi
1410 DEPWNNJLIB=""
1411 HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data"
1412
1413 else
1414 WNNJLIB="\$(WNNJLIBSRC)/libwnn.la"
1415 DEPWNNJLIB="\$(WNNJLIB)"
1416 HINSI_DATA="\$(WNNJDSRC)/hinsi.data"
1417
1418 fi
1419
1420
1421
1422
1423
1424 # Check whether --with-libcwnn or --without-libcwnn was given.
1425 if test "${with_libcwnn+set}" = set; then
1426 withval="$with_libcwnn"
1427
1428 # Check whether --with-cwnn-includes or --without-cwnn-includes was given.
1429 if test "${with_cwnn_includes+set}" = set; then
1430 withval="$with_cwnn_includes"
1431 cwnnincludedir="-I${withval}"
1432 else
1433 cwnnincludedir=''
1434 fi
1435
1436 # Check whether --with-cwnn-libraries or --without-cwnn-libraries was given.
1437 if test "${with_cwnn_libraries+set}" = set; then
1438 withval="$with_cwnn_libraries"
1439 cwnnlibdir="${withval}"
1440 else
1441 cwnnlibdir='/usr/local/lib'
1442 fi
1443
1444 if test "X${with_libcwnn}" = X-lcwnn; then
1445 CWNNJLIB="-L${cwnnlibdir} -lcwnn"
1446 elif test X"`echo ${with_libcwnn} | grep '^/.*'`" != X ; then
1447 CWNNJLIB="${with_libcwnn}"
1448 else
1449 CWNNJLIB="${cwnnlibdir}/libcwnn.a"
1450 fi
1451 DEPCWNNJLIB=""
1452 CHINSI_DATA="\$(CWNNWNNDIR)/cixing.data"
1453 THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
1454
1455 else
1456 CWNNJLIB="\$(CWNNJLIBSRC)/libcwnn.la"
1457 DEPCWNNJLIB="\$(CWNNJLIB)"
1458 CHINSI_DATA="\$(CWNNCDSRC)/cixing.data"
1459 THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
1460
1461 fi
1462
1463
1464
1465
1466
1467
1468 # Check whether --with-libkwnn or --without-libkwnn was given.
1469 if test "${with_libkwnn+set}" = set; then
1470 withval="$with_libkwnn"
1471
1472 # Check whether --with-kwnn-includes or --without-kwnn-includes was given.
1473 if test "${with_kwnn_includes+set}" = set; then
1474 withval="$with_kwnn_includes"
1475 kwnnincludedir="-I${withval}"
1476 else
1477 kwnnincludedir=''
1478 fi
1479
1480 # Check whether --with-kwnn-libraries or --without-kwnn-libraries was given.
1481 if test "${with_kwnn_libraries+set}" = set; then
1482 withval="$with_kwnn_libraries"
1483 kwnnlibdir="${withval}"
1484 else
1485 kwnnlibdir='/usr/local/lib'
1486 fi
1487
1488 if test "X${with_libkwnn}" = X-lkwnn; then
1489 KWNNJLIB="-L${kwnnlibdir} -lkwnn"
1490 elif test X"`echo ${with_libkwnn} | grep '^/.*'`" != X ; then
1491 KWNNJLIB="${with_libkwnn}"
1492 else
1493 KWNNJLIB="${kwnnlibdir}/libkwnn.a"
1494 fi
1495 DEPKWNNJLIB=""
1496 KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data"
1497
1498 else
1499 KWNNJLIB="\$(KWNNJLIBSRC)/libkwnn.la"
1500 DEPKWNNJLIB="\$(KWNNJLIB)"
1501 KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data"
1502
1503 fi
1504
1505
1506
1507
1508
1509 # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1512 echo "configure:1513: checking for $ac_word" >&5
1513 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1515 else
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1518 else
1519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1520 ac_dummy="$PATH"
1521 for ac_dir in $ac_dummy; do
1522 test -z "$ac_dir" && ac_dir=.
1523 if test -f $ac_dir/$ac_word; then
1524 ac_cv_prog_CC="gcc"
1525 break
1526 fi
1527 done
1528 IFS="$ac_save_ifs"
1529 fi
1530 fi
1531 CC="$ac_cv_prog_CC"
1532 if test -n "$CC"; then
1533 echo "$ac_t""$CC" 1>&6
1534 else
1535 echo "$ac_t""no" 1>&6
1536 fi
1537
1538 if test -z "$CC"; then
1539 # Extract the first word of "cc", so it can be a program name with args.
1540 set dummy cc; ac_word=$2
1541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542 echo "configure:1543: checking for $ac_word" >&5
1543 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1548 else
1549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1550 ac_prog_rejected=no
1551 ac_dummy="$PATH"
1552 for ac_dir in $ac_dummy; do
1553 test -z "$ac_dir" && ac_dir=.
1554 if test -f $ac_dir/$ac_word; then
1555 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1556 ac_prog_rejected=yes
1557 continue
1558 fi
1559 ac_cv_prog_CC="cc"
1560 break
1561 fi
1562 done
1563 IFS="$ac_save_ifs"
1564 if test $ac_prog_rejected = yes; then
1565 # We found a bogon in the path, so make sure we never use it.
1566 set dummy $ac_cv_prog_CC
1567 shift
1568 if test $# -gt 0; then
1569 # We chose a different compiler from the bogus one.
1570 # However, it has the same basename, so the bogon will be chosen
1571 # first if we set CC to just the basename; use the full file name.
1572 shift
1573 set dummy "$ac_dir/$ac_word" "$@"
1574 shift
1575 ac_cv_prog_CC="$@"
1576 fi
1577 fi
1578 fi
1579 fi
1580 CC="$ac_cv_prog_CC"
1581 if test -n "$CC"; then
1582 echo "$ac_t""$CC" 1>&6
1583 else
1584 echo "$ac_t""no" 1>&6
1585 fi
1586
1587 if test -z "$CC"; then
1588 case "`uname -s`" in
1589 *win32* | *WIN32*)
1590 # Extract the first word of "cl", so it can be a program name with args.
1591 set dummy cl; ac_word=$2
1592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1593 echo "configure:1594: checking for $ac_word" >&5
1594 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1596 else
1597 if test -n "$CC"; then
1598 ac_cv_prog_CC="$CC" # Let the user override the test.
1599 else
1600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 ac_dummy="$PATH"
1602 for ac_dir in $ac_dummy; do
1603 test -z "$ac_dir" && ac_dir=.
1604 if test -f $ac_dir/$ac_word; then
1605 ac_cv_prog_CC="cl"
1606 break
1607 fi
1608 done
1609 IFS="$ac_save_ifs"
1610 fi
1611 fi
1612 CC="$ac_cv_prog_CC"
1613 if test -n "$CC"; then
1614 echo "$ac_t""$CC" 1>&6
1615 else
1616 echo "$ac_t""no" 1>&6
1617 fi
1618 ;;
1619 esac
1620 fi
1621 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1622 fi
1623
1624 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1625 echo "configure:1626: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1626
1627 ac_ext=c
1628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1629 ac_cpp='$CPP $CPPFLAGS'
1630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1632 cross_compiling=$ac_cv_prog_cc_cross
1633
1634 cat > conftest.$ac_ext << EOF
1635
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1638
1639 main(){return(0);}
1640 EOF
1641 if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1642 ac_cv_prog_cc_works=yes
1643 # If we can't run a trivial program, we are probably using a cross compiler.
1644 if (./conftest; exit) 2>/dev/null; then
1645 ac_cv_prog_cc_cross=no
1646 else
1647 ac_cv_prog_cc_cross=yes
1648 fi
1649 else
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1652 ac_cv_prog_cc_works=no
1653 fi
1654 rm -fr conftest*
1655 ac_ext=c
1656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1657 ac_cpp='$CPP $CPPFLAGS'
1658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1660 cross_compiling=$ac_cv_prog_cc_cross
1661
1662 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1663 if test $ac_cv_prog_cc_works = no; then
1664 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1665 fi
1666 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1667 echo "configure:1668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1668 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1669 cross_compiling=$ac_cv_prog_cc_cross
1670
1671 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1672 echo "configure:1673: checking whether we are using GNU C" >&5
1673 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1675 else
1676 cat > conftest.c <<EOF
1677 #ifdef __GNUC__
1678 yes;
1679 #endif
1680 EOF
1681 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1682 ac_cv_prog_gcc=yes
1683 else
1684 ac_cv_prog_gcc=no
1685 fi
1686 fi
1687
1688 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1689
1690 if test $ac_cv_prog_gcc = yes; then
1691 GCC=yes
1692 else
1693 GCC=
1694 fi
1695
1696 ac_test_CFLAGS="${CFLAGS+set}"
1697 ac_save_CFLAGS="$CFLAGS"
1698 CFLAGS=
1699 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1700 echo "configure:1701: checking whether ${CC-cc} accepts -g" >&5
1701 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1703 else
1704 echo 'void f(){}' > conftest.c
1705 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1706 ac_cv_prog_cc_g=yes
1707 else
1708 ac_cv_prog_cc_g=no
1709 fi
1710 rm -f conftest*
1711
1712 fi
1713
1714 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1715 if test "$ac_test_CFLAGS" = set; then
1716 CFLAGS="$ac_save_CFLAGS"
1717 elif test $ac_cv_prog_cc_g = yes; then
1718 if test "$GCC" = yes; then
1719 CFLAGS="-g -O2"
1720 else
1721 CFLAGS="-g"
1722 fi
1723 else
1724 if test "$GCC" = yes; then
1725 CFLAGS="-O2"
1726 else
1727 CFLAGS=
1728 fi
1729 fi
1730
1731 echo $ac_n "checking for cpp""... $ac_c" 1>&6
1732 echo "configure:1733: checking for cpp" >&5
1733 hosttype=`uname`
1734 CCOPTIONS=""
1735 CDEBUGFLAGS=-O
1736 case $hosttype in
1737 "Linux")
1738 CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
1739 CDEBUGFLAGS="-O2 -fno-strength-reduce"
1740 CPP=`$CC -print-prog-name=cpp`
1741 ;;
1742 "FreeBSD"|"NetBSD"|"OpenBSD")
1743 CCOPTIONS="-DCSRG_BASED"
1744 CDEBUGFLAGS="-O2 -fno-strength-reduce"
1745 CPP=`$CC -print-prog-name=cpp`
1746 ;;
1747 "BSD/OS")
1748 CCOPTIONS="-DCSRG_BASED"
1749 CDEBUGFLAGS="-O2 -fno-strength-reduce"
1750 if test -x /usr/bin/cpp; then
1751 CPP=/usr/bin/cpp
1752 fi
1753 ;;
1754 "SunOS")
1755 case `uname -r` in
1756 4.*)
1757 if test $CC = gcc; then
1758 CDEBUGFLAGS=-O2
1759 CCOPTIONS="-Dsun -Dsparc"
1760 else
1761 CDEBUGFLAGS=-O4
1762 CCOPTIONS=""
1763 fi
1764 CPP=/usr/lib/cpp
1765 ;;
1766 5.*)
1767 if test $CC = gcc; then
1768 CDEBUGFLAGS=-O2
1769 CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"
1770 else
1771 CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"
1772 fi
1773 if test -x /usr/ccs/lib/cpp; then
1774 CPP=/usr/ccs/lib/cpp
1775 fi
1776 ;;
1777 *)
1778 echo "configure: warning: "It is not reported if FreeWnn works on this system. But continuing..."" 1>&2
1779 ;;
1780 esac
1781 ;;
1782 "HP-UX")
1783 if test $CC = gcc; then
1784 CDEBUGFLAGS=-O2
1785 CCOPTIONS="-Dhpux -DSYSV"
1786 else
1787 CCOPTIONS="-Ae -Dhpux -DSYSV"
1788 fi
1789 case `uname -r` in
1790 A.09.*)
1791 if test -x /lib/cpp; then
1792 CPP=/lib/cpp
1793 fi
1794 ;;
1795 B.10.*|B.11.*)
1796 if test -x /opt/langtools/lbin/cpp; then
1797 CPP=/opt/langtools/lbin/cpp
1798 fi
1799 ;;
1800 *)
1801 echo "configure: warning: "It is not reported if FreeWnn works on this system. But continuing..."" 1>&2
1802 ;;
1803 esac
1804 ;;
1805 "BeOS")
1806 case `uname -m` in
1807 "BePC")
1808 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
1809 CDEBUGFLAGS="-O2 -fno-strength-reduce"
1810 CPP=`$CC -print-prog-name=cpp`
1811 ;;
1812 "BeBox"|"BeMac")
1813 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
1814 NON_GNU_CPP=/boot/apps/GeekGadgets/bin/cpp
1815 ;;
1816 *)
1817 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
1818 ;;
1819 esac
1820 ;;
1821 "AIX")
1822 if test $CC = gcc; then
1823 CDEBUGFLAGS=-O2
1824 else
1825 CDEBUGFLAGS=-O
1826 fi
1827 CCOPTIONS="-DSYSV"
1828 CPP=/usr/lib/cpp
1829 ;;
1830 *)
1831 echo "configure: warning: "It is not reported if FreeWnn works on this system. But continuing..."" 1>&2
1832 ;;
1833 esac
1834 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1835 echo "configure:1836: checking how to run the C preprocessor" >&5
1836 # On Suns, sometimes $CPP names a directory.
1837 if test -n "$CPP" && test -d "$CPP"; then
1838 CPP=
1839 fi
1840 if test -z "$CPP"; then
1841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1843 else
1844 # This must be in double quotes, not single quotes, because CPP may get
1845 # substituted into the Makefile and "${CC-cc}" will confuse make.
1846 CPP="${CC-cc} -E"
1847 # On the NeXT, cc -E runs the code through the compiler's parser,
1848 # not just through cpp.
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 #include <assert.h>
1853 Syntax Error
1854 EOF
1855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1856 { (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1858 if test -z "$ac_err"; then
1859 :
1860 else
1861 echo "$ac_err" >&5
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 rm -rf conftest*
1865 CPP="${CC-cc} -E -traditional-cpp"
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 #include <assert.h>
1870 Syntax Error
1871 EOF
1872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1873 { (eval echo configure:1874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1875 if test -z "$ac_err"; then
1876 :
1877 else
1878 echo "$ac_err" >&5
1879 echo "configure: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1881 rm -rf conftest*
1882 CPP="${CC-cc} -nologo -E"
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 #include <assert.h>
1887 Syntax Error
1888 EOF
1889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1890 { (eval echo configure:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1892 if test -z "$ac_err"; then
1893 :
1894 else
1895 echo "$ac_err" >&5
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1898 rm -rf conftest*
1899 CPP=/lib/cpp
1900 fi
1901 rm -f conftest*
1902 fi
1903 rm -f conftest*
1904 fi
1905 rm -f conftest*
1906 ac_cv_prog_CPP="$CPP"
1907 fi
1908 CPP="$ac_cv_prog_CPP"
1909 else
1910 ac_cv_prog_CPP="$CPP"
1911 fi
1912 echo "$ac_t""$CPP" 1>&6
1913
1914
1915 # Find a good install program. We prefer a C program (faster),
1916 # so one script is as good as another. But avoid the broken or
1917 # incompatible versions:
1918 # SysV /etc/install, /usr/sbin/install
1919 # SunOS /usr/etc/install
1920 # IRIX /sbin/install
1921 # AIX /bin/install
1922 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1923 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1924 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1925 # ./install, which can be erroneously created by make from ./install.sh.
1926 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1927 echo "configure:1928: checking for a BSD compatible install" >&5
1928 if test -z "$INSTALL"; then
1929 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1931 else
1932 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1933 for ac_dir in $PATH; do
1934 # Account for people who put trailing slashes in PATH elements.
1935 case "$ac_dir/" in
1936 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1937 *)
1938 # OSF1 and SCO ODT 3.0 have their own names for install.
1939 # Don't use installbsd from OSF since it installs stuff as root
1940 # by default.
1941 for ac_prog in ginstall scoinst install; do
1942 if test -f $ac_dir/$ac_prog; then
1943 if test $ac_prog = install &&
1944 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1945 # AIX install. It has an incompatible calling convention.
1946 :
1947 else
1948 ac_cv_path_install="$ac_dir/$ac_prog -c"
1949 break 2
1950 fi
1951 fi
1952 done
1953 ;;
1954 esac
1955 done
1956 IFS="$ac_save_IFS"
1957
1958 fi
1959 if test "${ac_cv_path_install+set}" = set; then
1960 INSTALL="$ac_cv_path_install"
1961 else
1962 # As a last resort, use the slow shell script. We don't cache a
1963 # path for INSTALL within a source directory, because that will
1964 # break other packages using the cache if that directory is
1965 # removed, or if the path is relative.
1966 INSTALL="$ac_install_sh"
1967 fi
1968 fi
1969 echo "$ac_t""$INSTALL" 1>&6
1970
1971 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1972 # It thinks the first close brace ends the variable substitution.
1973 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1974
1975 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1976
1977 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1978
1979 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1980 echo "configure:1981: checking whether ln -s works" >&5
1981 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1983 else
1984 rm -f conftestdata
1985 if ln -s X conftestdata 2>/dev/null
1986 then
1987 rm -f conftestdata
1988 ac_cv_prog_LN_S="ln -s"
1989 else
1990 ac_cv_prog_LN_S=ln
1991 fi
1992 fi
1993 LN_S="$ac_cv_prog_LN_S"
1994 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1995 echo "$ac_t""yes" 1>&6
1996 else
1997 echo "$ac_t""no" 1>&6
1998 fi
1999
2000 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2001 echo "configure:2002: checking whether ${MAKE-make} sets \${MAKE}" >&5
2002 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2003 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2005 else
2006 cat > conftestmake <<\EOF
2007 all:
2008 @echo 'ac_maketemp="${MAKE}"'
2009 EOF
2010 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2011 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2012 if test -n "$ac_maketemp"; then
2013 eval ac_cv_prog_make_${ac_make}_set=yes
2014 else
2015 eval ac_cv_prog_make_${ac_make}_set=no
2016 fi
2017 rm -f conftestmake
2018 fi
2019 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2020 echo "$ac_t""yes" 1>&6
2021 SET_MAKE=
2022 else
2023 echo "$ac_t""no" 1>&6
2024 SET_MAKE="MAKE=${MAKE-make}"
2025 fi
2026
2027 # Extract the first word of "ranlib", so it can be a program name with args.
2028 set dummy ranlib; ac_word=$2
2029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2030 echo "configure:2031: checking for $ac_word" >&5
2031 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 if test -n "$RANLIB"; then
2035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2036 else
2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2038 ac_dummy="$PATH"
2039 for ac_dir in $ac_dummy; do
2040 test -z "$ac_dir" && ac_dir=.
2041 if test -f $ac_dir/$ac_word; then
2042 ac_cv_prog_RANLIB="ranlib"
2043 break
2044 fi
2045 done
2046 IFS="$ac_save_ifs"
2047 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2048 fi
2049 fi
2050 RANLIB="$ac_cv_prog_RANLIB"
2051 if test -n "$RANLIB"; then
2052 echo "$ac_t""$RANLIB" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2055 fi
2056
2057
2058
2059
2060
2061 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2062 echo "configure:2063: checking for crypt in -lcrypt" >&5
2063 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 ac_save_LIBS="$LIBS"
2068 LIBS="-lcrypt $LIBS"
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 /* Override any gcc2 internal prototype to avoid an error. */
2073 /* We use char because int might match the return type of a gcc2
2074 builtin and then its argument prototype would still apply. */
2075 char crypt();
2076
2077 int main() {
2078 crypt()
2079 ; return 0; }
2080 EOF
2081 if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2082 rm -rf conftest*
2083 eval "ac_cv_lib_$ac_lib_var=yes"
2084 else
2085 echo "configure: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2087 rm -rf conftest*
2088 eval "ac_cv_lib_$ac_lib_var=no"
2089 fi
2090 rm -f conftest*
2091 LIBS="$ac_save_LIBS"
2092
2093 fi
2094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2095 echo "$ac_t""yes" 1>&6
2096 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2097 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2098 cat >> confdefs.h <<EOF
2099 #define $ac_tr_lib 1
2100 EOF
2101
2102 LIBS="-lcrypt $LIBS"
2103
2104 else
2105 echo "$ac_t""no" 1>&6
2106 fi
2107
2108 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2109 echo "configure:2110: checking for connect in -lsocket" >&5
2110 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 ac_save_LIBS="$LIBS"
2115 LIBS="-lsocket $LIBS"
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 /* Override any gcc2 internal prototype to avoid an error. */
2120 /* We use char because int might match the return type of a gcc2
2121 builtin and then its argument prototype would still apply. */
2122 char connect();
2123
2124 int main() {
2125 connect()
2126 ; return 0; }
2127 EOF
2128 if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2129 rm -rf conftest*
2130 eval "ac_cv_lib_$ac_lib_var=yes"
2131 else
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2134 rm -rf conftest*
2135 eval "ac_cv_lib_$ac_lib_var=no"
2136 fi
2137 rm -f conftest*
2138 LIBS="$ac_save_LIBS"
2139
2140 fi
2141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2142 echo "$ac_t""yes" 1>&6
2143 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2144 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2145 cat >> confdefs.h <<EOF
2146 #define $ac_tr_lib 1
2147 EOF
2148
2149 LIBS="-lsocket $LIBS"
2150
2151 else
2152 echo "$ac_t""no" 1>&6
2153 fi
2154
2155 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2156 echo "configure:2157: checking for gethostbyname in -lnsl" >&5
2157 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2160 else
2161 ac_save_LIBS="$LIBS"
2162 LIBS="-lnsl $LIBS"
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166 /* Override any gcc2 internal prototype to avoid an error. */
2167 /* We use char because int might match the return type of a gcc2
2168 builtin and then its argument prototype would still apply. */
2169 char gethostbyname();
2170
2171 int main() {
2172 gethostbyname()
2173 ; return 0; }
2174 EOF
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2176 rm -rf conftest*
2177 eval "ac_cv_lib_$ac_lib_var=yes"
2178 else
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2181 rm -rf conftest*
2182 eval "ac_cv_lib_$ac_lib_var=no"
2183 fi
2184 rm -f conftest*
2185 LIBS="$ac_save_LIBS"
2186
2187 fi
2188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2189 echo "$ac_t""yes" 1>&6
2190 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2191 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2192 cat >> confdefs.h <<EOF
2193 #define $ac_tr_lib 1
2194 EOF
2195
2196 LIBS="-lnsl $LIBS"
2197
2198 else
2199 echo "$ac_t""no" 1>&6
2200 fi
2201
2202
2203 # If we find X, set shell vars x_includes and x_libraries to the
2204 # paths, otherwise set no_x=yes.
2205 # Uses ac_ vars as temps to allow command line to override cache and checks.
2206 # --without-x overrides everything else, but does not touch the cache.
2207 echo $ac_n "checking for X""... $ac_c" 1>&6
2208 echo "configure:2209: checking for X" >&5
2209
2210 # Check whether --with-x or --without-x was given.
2211 if test "${with_x+set}" = set; then
2212 withval="$with_x"
2213 :
2214 fi
2215
2216 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2217 if test "x$with_x" = xno; then
2218 # The user explicitly disabled X.
2219 have_x=disabled
2220 else
2221 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2222 # Both variables are already set.
2223 have_x=yes
2224 else
2225 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2227 else
2228 # One or both of the vars are not set, and there is no cached value.
2229 ac_x_includes=NO ac_x_libraries=NO
2230 rm -fr conftestdir
2231 if mkdir conftestdir; then
2232 cd conftestdir
2233 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2234 cat > Imakefile <<'EOF'
2235 acfindx:
2236 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2237 EOF
2238 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2239 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2240 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2241 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2242 for ac_extension in a so sl; do
2243 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2244 test -f $ac_im_libdir/libX11.$ac_extension; then
2245 ac_im_usrlibdir=$ac_im_libdir; break
2246 fi
2247 done
2248 # Screen out bogus values from the imake configuration. They are
2249 # bogus both because they are the default anyway, and because
2250 # using them would break gcc on systems where it needs fixed includes.
2251 case "$ac_im_incroot" in
2252 /usr/include) ;;
2253 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2254 esac
2255 case "$ac_im_usrlibdir" in
2256 /usr/lib | /lib) ;;
2257 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2258 esac
2259 fi
2260 cd ..
2261 rm -fr conftestdir
2262 fi
2263
2264 if test "$ac_x_includes" = NO; then
2265 # Guess where to find include files, by looking for this one X11 .h file.
2266 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2267
2268 # First, try using that file with no special directory specified.
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2272 #include <$x_direct_test_include>
2273 EOF
2274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2277 if test -z "$ac_err"; then
2278 rm -rf conftest*
2279 # We can compile using X headers with no special include directory.
2280 ac_x_includes=
2281 else
2282 echo "$ac_err" >&5
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2285 rm -rf conftest*
2286 # Look for the header file in a standard set of common directories.
2287 # Check X11 before X11Rn because it is often a symlink to the current release.
2288 for ac_dir in \
2289 /usr/X11/include \
2290 /usr/X11R6/include \
2291 /usr/X11R5/include \
2292 /usr/X11R4/include \
2293 \
2294 /usr/include/X11 \
2295 /usr/include/X11R6 \
2296 /usr/include/X11R5 \
2297 /usr/include/X11R4 \
2298 \
2299 /usr/local/X11/include \
2300 /usr/local/X11R6/include \
2301 /usr/local/X11R5/include \
2302 /usr/local/X11R4/include \
2303 \
2304 /usr/local/include/X11 \
2305 /usr/local/include/X11R6 \
2306 /usr/local/include/X11R5 \
2307 /usr/local/include/X11R4 \
2308 \
2309 /usr/X386/include \
2310 /usr/x386/include \
2311 /usr/XFree86/include/X11 \
2312 \
2313 /usr/include \
2314 /usr/local/include \
2315 /usr/unsupported/include \
2316 /usr/athena/include \
2317 /usr/local/x11r5/include \
2318 /usr/lpp/Xamples/include \
2319 \
2320 /usr/openwin/include \
2321 /usr/openwin/share/include \
2322 ; \
2323 do
2324 if test -r "$ac_dir/$x_direct_test_include"; then
2325 ac_x_includes=$ac_dir
2326 break
2327 fi
2328 done
2329 fi
2330 rm -f conftest*
2331 fi # $ac_x_includes = NO
2332
2333 if test "$ac_x_libraries" = NO; then
2334 # Check for the libraries.
2335
2336 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2337 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2338
2339 # See if we find them without any special options.
2340 # Don't add to $LIBS permanently.
2341 ac_save_LIBS="$LIBS"
2342 LIBS="-l$x_direct_test_library $LIBS"
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346
2347 int main() {
2348 ${x_direct_test_function}()
2349 ; return 0; }
2350 EOF
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2352 rm -rf conftest*
2353 LIBS="$ac_save_LIBS"
2354 # We can link X programs with no special library path.
2355 ac_x_libraries=
2356 else
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2359 rm -rf conftest*
2360 LIBS="$ac_save_LIBS"
2361 # First see if replacing the include by lib works.
2362 # Check X11 before X11Rn because it is often a symlink to the current release.
2363 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2364 /usr/X11/lib \
2365 /usr/X11R6/lib \
2366 /usr/X11R5/lib \
2367 /usr/X11R4/lib \
2368 \
2369 /usr/lib/X11 \
2370 /usr/lib/X11R6 \
2371 /usr/lib/X11R5 \
2372 /usr/lib/X11R4 \
2373 \
2374 /usr/local/X11/lib \
2375 /usr/local/X11R6/lib \
2376 /usr/local/X11R5/lib \
2377 /usr/local/X11R4/lib \
2378 \
2379 /usr/local/lib/X11 \
2380 /usr/local/lib/X11R6 \
2381 /usr/local/lib/X11R5 \
2382 /usr/local/lib/X11R4 \
2383 \
2384 /usr/X386/lib \
2385 /usr/x386/lib \
2386 /usr/XFree86/lib/X11 \
2387 \
2388 /usr/lib \
2389 /usr/local/lib \
2390 /usr/unsupported/lib \
2391 /usr/athena/lib \
2392 /usr/local/x11r5/lib \
2393 /usr/lpp/Xamples/lib \
2394 /lib/usr/lib/X11 \
2395 \
2396 /usr/openwin/lib \
2397 /usr/openwin/share/lib \
2398 ; \
2399 do
2400 for ac_extension in a so sl; do
2401 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2402 ac_x_libraries=$ac_dir
2403 break 2
2404 fi
2405 done
2406 done
2407 fi
2408 rm -f conftest*
2409 fi # $ac_x_libraries = NO
2410
2411 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2412 # Didn't find X anywhere. Cache the known absence of X.
2413 ac_cv_have_x="have_x=no"
2414 else
2415 # Record where we found X for the cache.
2416 ac_cv_have_x="have_x=yes \
2417 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2418 fi
2419 fi
2420 fi
2421 eval "$ac_cv_have_x"
2422 fi # $with_x != no
2423
2424 if test "$have_x" != yes; then
2425 echo "$ac_t""$have_x" 1>&6
2426 no_x=yes
2427 else
2428 # If each of the values was on the command line, it overrides each guess.
2429 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2430 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2431 # Update the cache value to reflect the command line values.
2432 ac_cv_have_x="have_x=yes \
2433 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2434 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2435 fi
2436
2437 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2438 echo "configure:2439: checking for ANSI C header files" >&5
2439 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2441 else
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 #include <stdlib.h>
2446 #include <stdarg.h>
2447 #include <string.h>
2448 #include <float.h>
2449 EOF
2450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2451 { (eval echo configure:2452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2453 if test -z "$ac_err"; then
2454 rm -rf conftest*
2455 ac_cv_header_stdc=yes
2456 else
2457 echo "$ac_err" >&5
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 ac_cv_header_stdc=no
2462 fi
2463 rm -f conftest*
2464
2465 if test $ac_cv_header_stdc = yes; then
2466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2470 #include <string.h>
2471 EOF
2472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2473 egrep "memchr" >/dev/null 2>&1; then
2474 :
2475 else
2476 rm -rf conftest*
2477 ac_cv_header_stdc=no
2478 fi
2479 rm -f conftest*
2480
2481 fi
2482
2483 if test $ac_cv_header_stdc = yes; then
2484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <stdlib.h>
2489 EOF
2490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2491 egrep "free" >/dev/null 2>&1; then
2492 :
2493 else
2494 rm -rf conftest*
2495 ac_cv_header_stdc=no
2496 fi
2497 rm -f conftest*
2498
2499 fi
2500
2501 if test $ac_cv_header_stdc = yes; then
2502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2503 if test "$cross_compiling" = yes; then
2504 :
2505 else
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 #include <ctype.h>
2510 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2511 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2513 int main () { int i; for (i = 0; i < 256; i++)
2514 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2515 exit (0); }
2516
2517 EOF
2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2519 then
2520 :
2521 else
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 rm -fr conftest*
2525 ac_cv_header_stdc=no
2526 fi
2527 rm -fr conftest*
2528 fi
2529
2530 fi
2531 fi
2532
2533 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2534 if test $ac_cv_header_stdc = yes; then
2535 cat >> confdefs.h <<\EOF
2536 #define STDC_HEADERS 1
2537 EOF
2538
2539 fi
2540
2541 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2542 echo "configure:2543: checking for sys/wait.h that is POSIX.1 compatible" >&5
2543 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2549 #include <sys/types.h>
2550 #include <sys/wait.h>
2551 #ifndef WEXITSTATUS
2552 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2553 #endif
2554 #ifndef WIFEXITED
2555 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2556 #endif
2557 int main() {
2558 int s;
2559 wait (&s);
2560 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2561 ; return 0; }
2562 EOF
2563 if { (eval echo configure:2564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2564 rm -rf conftest*
2565 ac_cv_header_sys_wait_h=yes
2566 else
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 rm -rf conftest*
2570 ac_cv_header_sys_wait_h=no
2571 fi
2572 rm -f conftest*
2573 fi
2574
2575 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2576 if test $ac_cv_header_sys_wait_h = yes; then
2577 cat >> confdefs.h <<\EOF
2578 #define HAVE_SYS_WAIT_H 1
2579 EOF
2580
2581 fi
2582
2583 for ac_hdr in fcntl.h limits.h malloc.h sgtty.h strings.h termio.h unistd.h
2584 do
2585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_hdr" >&5
2588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2590 else
2591 cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2594 #include <$ac_hdr>
2595 EOF
2596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2597 { (eval echo configure:2598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2599 if test -z "$ac_err"; then
2600 rm -rf conftest*
2601 eval "ac_cv_header_$ac_safe=yes"
2602 else
2603 echo "$ac_err" >&5
2604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2606 rm -rf conftest*
2607 eval "ac_cv_header_$ac_safe=no"
2608 fi
2609 rm -f conftest*
2610 fi
2611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2614 cat >> confdefs.h <<EOF
2615 #define $ac_tr_hdr 1
2616 EOF
2617
2618 else
2619 echo "$ac_t""no" 1>&6
2620 fi
2621 done
2622
2623 for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/types.h sys/param.h
2624 do
2625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_hdr" >&5
2628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2630 else
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 #include <$ac_hdr>
2635 EOF
2636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2637 { (eval echo configure:2638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2639 if test -z "$ac_err"; then
2640 rm -rf conftest*
2641 eval "ac_cv_header_$ac_safe=yes"
2642 else
2643 echo "$ac_err" >&5
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2646 rm -rf conftest*
2647 eval "ac_cv_header_$ac_safe=no"
2648 fi
2649 rm -f conftest*
2650 fi
2651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2652 echo "$ac_t""yes" 1>&6
2653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2654 cat >> confdefs.h <<EOF
2655 #define $ac_tr_hdr 1
2656 EOF
2657
2658 else
2659 echo "$ac_t""no" 1>&6
2660 fi
2661 done
2662
2663
2664 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2665 echo "configure:2666: checking for mode_t" >&5
2666 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2668 else
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 #include <sys/types.h>
2673 #if STDC_HEADERS
2674 #include <stdlib.h>
2675 #include <stddef.h>
2676 #endif
2677 EOF
2678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2679 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2680 rm -rf conftest*
2681 ac_cv_type_mode_t=yes
2682 else
2683 rm -rf conftest*
2684 ac_cv_type_mode_t=no
2685 fi
2686 rm -f conftest*
2687
2688 fi
2689 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2690 if test $ac_cv_type_mode_t = no; then
2691 cat >> confdefs.h <<\EOF
2692 #define mode_t int
2693 EOF
2694
2695 fi
2696
2697 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2698 echo "configure:2699: checking whether time.h and sys/time.h may both be included" >&5
2699 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2701 else
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <sys/types.h>
2706 #include <sys/time.h>
2707 #include <time.h>
2708 int main() {
2709 struct tm *tp;
2710 ; return 0; }
2711 EOF
2712 if { (eval echo configure:2713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2713 rm -rf conftest*
2714 ac_cv_header_time=yes
2715 else
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 rm -rf conftest*
2719 ac_cv_header_time=no
2720 fi
2721 rm -f conftest*
2722 fi
2723
2724 echo "$ac_t""$ac_cv_header_time" 1>&6
2725 if test $ac_cv_header_time = yes; then
2726 cat >> confdefs.h <<\EOF
2727 #define TIME_WITH_SYS_TIME 1
2728 EOF
2729
2730 fi
2731
2732 echo $ac_n "checking for time_t""... $ac_c" 1>&6
2733 echo "configure:2734: checking for time_t" >&5
2734 if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2736 else
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <sys/types.h>
2741 #if STDC_HEADERS
2742 #include <stdlib.h>
2743 #include <stddef.h>
2744 #endif
2745 EOF
2746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2747 egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2748 rm -rf conftest*
2749 ac_cv_type_time_t=yes
2750 else
2751 rm -rf conftest*
2752 ac_cv_type_time_t=no
2753 fi
2754 rm -f conftest*
2755
2756 fi
2757 echo "$ac_t""$ac_cv_type_time_t" 1>&6
2758 if test $ac_cv_type_time_t = no; then
2759 cat >> confdefs.h <<\EOF
2760 #define time_t long
2761 EOF
2762
2763 fi
2764
2765
2766 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
2767 echo "configure:2768: checking for socklen_t" >&5
2768 cat > conftest.$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2771 #include <sys/socket.h>
2772 EOF
2773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774 egrep "socklen_t" >/dev/null 2>&1; then
2775 rm -rf conftest*
2776 echo "$ac_t""yes" 1>&6
2777 else
2778 rm -rf conftest*
2779
2780 cat >> confdefs.h <<\EOF
2781 #define socklen_t int
2782 EOF
2783
2784 echo "$ac_t""no" 1>&6
2785
2786 fi
2787 rm -f conftest*
2788
2789
2790
2791 echo $ac_n "checking for RAND_MAX""... $ac_c" 1>&6
2792 echo "configure:2793: checking for RAND_MAX" >&5
2793 cat > conftest.$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2796 #include <stdlib.h>
2797 #ifdef RAND_MAX
2798 yes
2799 #endif
2800
2801 EOF
2802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2803 egrep "yes" >/dev/null 2>&1; then
2804 rm -rf conftest*
2805 cat >> confdefs.h <<\EOF
2806 #define HAVE_RAND_MAX 1
2807 EOF
2808
2809 fi
2810 rm -f conftest*
2811
2812
2813 if test $ac_cv_prog_gcc = yes; then
2814 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2815 echo "configure:2816: checking whether ${CC-cc} needs -traditional" >&5
2816 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2818 else
2819 ac_pattern="Autoconf.*'x'"
2820 cat > conftest.$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2823 #include <sgtty.h>
2824 Autoconf TIOCGETP
2825 EOF
2826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2827 egrep "$ac_pattern" >/dev/null 2>&1; then
2828 rm -rf conftest*
2829 ac_cv_prog_gcc_traditional=yes
2830 else
2831 rm -rf conftest*
2832 ac_cv_prog_gcc_traditional=no
2833 fi
2834 rm -f conftest*
2835
2836
2837 if test $ac_cv_prog_gcc_traditional = no; then
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 #include <termio.h>
2842 Autoconf TCGETA
2843 EOF
2844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845 egrep "$ac_pattern" >/dev/null 2>&1; then
2846 rm -rf conftest*
2847 ac_cv_prog_gcc_traditional=yes
2848 fi
2849 rm -f conftest*
2850
2851 fi
2852 fi
2853
2854 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2855 if test $ac_cv_prog_gcc_traditional = yes; then
2856 CC="$CC -traditional"
2857 fi
2858 fi
2859
2860 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2861 echo "configure:2862: checking for 8-bit clean memcmp" >&5
2862 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2864 else
2865 if test "$cross_compiling" = yes; then
2866 ac_cv_func_memcmp_clean=no
2867 else
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2871
2872 main()
2873 {
2874 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2875 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2876 }
2877
2878 EOF
2879 if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2880 then
2881 ac_cv_func_memcmp_clean=yes
2882 else
2883 echo "configure: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2885 rm -fr conftest*
2886 ac_cv_func_memcmp_clean=no
2887 fi
2888 rm -fr conftest*
2889 fi
2890
2891 fi
2892
2893 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2894 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2895
2896 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2897 echo "configure:2898: checking return type of signal handlers" >&5
2898 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2900 else
2901 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2904 #include <sys/types.h>
2905 #include <signal.h>
2906 #ifdef signal
2907 #undef signal
2908 #endif
2909 #ifdef __cplusplus
2910 extern "C" void (*signal (int, void (*)(int)))(int);
2911 #else
2912 void (*signal ()) ();
2913 #endif
2914
2915 int main() {
2916 int i;
2917 ; return 0; }
2918 EOF
2919 if { (eval echo configure:2920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2920 rm -rf conftest*
2921 ac_cv_type_signal=void
2922 else
2923 echo "configure: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2925 rm -rf conftest*
2926 ac_cv_type_signal=int
2927 fi
2928 rm -f conftest*
2929 fi
2930
2931 echo "$ac_t""$ac_cv_type_signal" 1>&6
2932 cat >> confdefs.h <<EOF
2933 #define RETSIGTYPE $ac_cv_type_signal
2934 EOF
2935
2936
2937 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2938 echo "configure:2939: checking for wait3 that fills in rusage" >&5
2939 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2941 else
2942 if test "$cross_compiling" = yes; then
2943 ac_cv_func_wait3_rusage=no
2944 else
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2948 #include <sys/types.h>
2949 #include <sys/time.h>
2950 #include <sys/resource.h>
2951 #include <stdio.h>
2952 /* HP-UX has wait3 but does not fill in rusage at all. */
2953 main() {
2954 struct rusage r;
2955 int i;
2956 /* Use a field that we can force nonzero --
2957 voluntary context switches.
2958 For systems like NeXT and OSF/1 that don't set it,
2959 also use the system CPU time. And page faults (I/O) for Linux. */
2960 r.ru_nvcsw = 0;
2961 r.ru_stime.tv_sec = 0;
2962 r.ru_stime.tv_usec = 0;
2963 r.ru_majflt = r.ru_minflt = 0;
2964 switch (fork()) {
2965 case 0: /* Child. */
2966 sleep(1); /* Give up the CPU. */
2967 _exit(0);
2968 case -1: _exit(0); /* What can we do? */
2969 default: /* Parent. */
2970 wait3(&i, 0, &r);
2971 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2972 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2973 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2974 }
2975 }
2976 EOF
2977 if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2978 then
2979 ac_cv_func_wait3_rusage=yes
2980 else
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2983 rm -fr conftest*
2984 ac_cv_func_wait3_rusage=no
2985 fi
2986 rm -fr conftest*
2987 fi
2988
2989 fi
2990
2991 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
2992 if test $ac_cv_func_wait3_rusage = yes; then
2993 cat >> confdefs.h <<\EOF
2994 #define HAVE_WAIT3 1
2995 EOF
2996
2997 fi
2998
2999 for ac_func in gethostname mkdir select socket strtol
3000 do
3001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_func" >&5
3003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3005 else
3006 cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3009 /* System header to define __stub macros and hopefully few prototypes,
3010 which can conflict with char $ac_func(); below. */
3011 #include <assert.h>
3012 /* Override any gcc2 internal prototype to avoid an error. */
3013 /* We use char because int might match the return type of a gcc2
3014 builtin and then its argument prototype would still apply. */
3015 char $ac_func();
3016
3017 int main() {
3018
3019 /* The GNU C library defines this for functions which it implements
3020 to always fail with ENOSYS. Some functions are actually named
3021 something starting with __ and the normal name is an alias. */
3022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3023 choke me
3024 #else
3025 $ac_func();
3026 #endif
3027
3028 ; return 0; }
3029 EOF
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3031 rm -rf conftest*
3032 eval "ac_cv_func_$ac_func=yes"
3033 else
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3036 rm -rf conftest*
3037 eval "ac_cv_func_$ac_func=no"
3038 fi
3039 rm -f conftest*
3040 fi
3041
3042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3043 echo "$ac_t""yes" 1>&6
3044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3045 cat >> confdefs.h <<EOF
3046 #define $ac_tr_func 1
3047 EOF
3048
3049 else
3050 echo "$ac_t""no" 1>&6
3051 fi
3052 done
3053
3054 for ac_func in drand48
3055 do
3056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3057 echo "configure:3058: checking for $ac_func" >&5
3058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3060 else
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3064 /* System header to define __stub macros and hopefully few prototypes,
3065 which can conflict with char $ac_func(); below. */
3066 #include <assert.h>
3067 /* Override any gcc2 internal prototype to avoid an error. */
3068 /* We use char because int might match the return type of a gcc2
3069 builtin and then its argument prototype would still apply. */
3070 char $ac_func();
3071
3072 int main() {
3073
3074 /* The GNU C library defines this for functions which it implements
3075 to always fail with ENOSYS. Some functions are actually named
3076 something starting with __ and the normal name is an alias. */
3077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3078 choke me
3079 #else
3080 $ac_func();
3081 #endif
3082
3083 ; return 0; }
3084 EOF
3085 if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3086 rm -rf conftest*
3087 eval "ac_cv_func_$ac_func=yes"
3088 else
3089 echo "configure: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3091 rm -rf conftest*
3092 eval "ac_cv_func_$ac_func=no"
3093 fi
3094 rm -f conftest*
3095 fi
3096
3097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3098 echo "$ac_t""yes" 1>&6
3099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3100 cat >> confdefs.h <<EOF
3101 #define $ac_tr_func 1
3102 EOF
3103
3104 else
3105 echo "$ac_t""no" 1>&6
3106 fi
3107 done
3108
3109 for ac_func in perror
3110 do
3111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3112 echo "configure:3113: checking for $ac_func" >&5
3113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3115 else
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 /* System header to define __stub macros and hopefully few prototypes,
3120 which can conflict with char $ac_func(); below. */
3121 #include <assert.h>
3122 /* Override any gcc2 internal prototype to avoid an error. */
3123 /* We use char because int might match the return type of a gcc2
3124 builtin and then its argument prototype would still apply. */
3125 char $ac_func();
3126
3127 int main() {
3128
3129 /* The GNU C library defines this for functions which it implements
3130 to always fail with ENOSYS. Some functions are actually named
3131 something starting with __ and the normal name is an alias. */
3132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3133 choke me
3134 #else
3135 $ac_func();
3136 #endif
3137
3138 ; return 0; }
3139 EOF
3140 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3141 rm -rf conftest*
3142 eval "ac_cv_func_$ac_func=yes"
3143 else
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3146 rm -rf conftest*
3147 eval "ac_cv_func_$ac_func=no"
3148 fi
3149 rm -f conftest*
3150 fi
3151
3152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3153 echo "$ac_t""yes" 1>&6
3154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3155 cat >> confdefs.h <<EOF
3156 #define $ac_tr_func 1
3157 EOF
3158
3159 else
3160 echo "$ac_t""no" 1>&6
3161 fi
3162 done
3163
3164 for ac_func in closesocket setsockopt send recv
3165 do
3166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3167 echo "configure:3168: checking for $ac_func" >&5
3168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3170 else
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3174 /* System header to define __stub macros and hopefully few prototypes,
3175 which can conflict with char $ac_func(); below. */
3176 #include <assert.h>
3177 /* Override any gcc2 internal prototype to avoid an error. */
3178 /* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3180 char $ac_func();
3181
3182 int main() {
3183
3184 /* The GNU C library defines this for functions which it implements
3185 to always fail with ENOSYS. Some functions are actually named
3186 something starting with __ and the normal name is an alias. */
3187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3188 choke me
3189 #else
3190 $ac_func();
3191 #endif
3192
3193 ; return 0; }
3194 EOF
3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3196 rm -rf conftest*
3197 eval "ac_cv_func_$ac_func=yes"
3198 else
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3201 rm -rf conftest*
3202 eval "ac_cv_func_$ac_func=no"
3203 fi
3204 rm -f conftest*
3205 fi
3206
3207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3208 echo "$ac_t""yes" 1>&6
3209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3210 cat >> confdefs.h <<EOF
3211 #define $ac_tr_func 1
3212 EOF
3213
3214 else
3215 echo "$ac_t""no" 1>&6
3216 fi
3217 done
3218
3219 echo $ac_n "checking for setpgrp""... $ac_c" 1>&6
3220 echo "configure:3221: checking for setpgrp" >&5
3221 if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 /* System header to define __stub macros and hopefully few prototypes,
3228 which can conflict with char setpgrp(); below. */
3229 #include <assert.h>
3230 /* Override any gcc2 internal prototype to avoid an error. */
3231 /* We use char because int might match the return type of a gcc2
3232 builtin and then its argument prototype would still apply. */
3233 char setpgrp();
3234
3235 int main() {
3236
3237 /* The GNU C library defines this for functions which it implements
3238 to always fail with ENOSYS. Some functions are actually named
3239 something starting with __ and the normal name is an alias. */
3240 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
3241 choke me
3242 #else
3243 setpgrp();
3244 #endif
3245
3246 ; return 0; }
3247 EOF
3248 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3249 rm -rf conftest*
3250 eval "ac_cv_func_setpgrp=yes"
3251 else
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -rf conftest*
3255 eval "ac_cv_func_setpgrp=no"
3256 fi
3257 rm -f conftest*
3258 fi
3259
3260 if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 :
3263 else
3264 echo "$ac_t""no" 1>&6
3265 fi
3266
3267 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
3268 echo "configure:3269: checking whether setpgrp takes no argument" >&5
3269 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3271 else
3272 if test "$cross_compiling" = yes; then
3273 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
3274 else
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278
3279 #ifdef HAVE_UNISTD_H
3280 #include <unistd.h>
3281 #endif
3282
3283 /*
3284 * If this system has a BSD-style setpgrp, which takes arguments, exit
3285 * successfully.
3286 */
3287 main()
3288 {
3289 if (setpgrp(1,1) == -1)
3290 exit(0);
3291 else
3292 exit(1);
3293 }
3294
3295 EOF
3296 if { (eval echo configure:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3297 then
3298 ac_cv_func_setpgrp_void=no
3299 else
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3302 rm -fr conftest*
3303 ac_cv_func_setpgrp_void=yes
3304 fi
3305 rm -fr conftest*
3306 fi
3307
3308
3309 fi
3310
3311 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
3312 if test $ac_cv_func_setpgrp_void = yes; then
3313 cat >> confdefs.h <<\EOF
3314 #define SETPGRP_VOID 1
3315 EOF
3316
3317 fi
3318
3319
3320
3321 trap '' 1 2 15
3322 cat > confcache <<\EOF
3323 # This file is a shell script that caches the results of configure
3324 # tests run on this system so they can be shared between configure
3325 # scripts and configure runs. It is not useful on other systems.
3326 # If it contains results you don't want to keep, you may remove or edit it.
3327 #
3328 # By default, configure uses ./config.cache as the cache file,
3329 # creating it if it does not exist already. You can give configure
3330 # the --cache-file=FILE option to use a different cache file; that is
3331 # what configure does when it calls configure scripts in
3332 # subdirectories, so they share the cache.
3333 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3334 # config.status only pays attention to the cache file if you give it the
3335 # --recheck option to rerun configure.
3336 #
3337 EOF
3338 # The following way of writing the cache mishandles newlines in values,
3339 # but we know of no workaround that is simple, portable, and efficient.
3340 # So, don't put newlines in cache variables' values.
3341 # Ultrix sh set writes to stderr and can't be redirected directly,
3342 # and sets the high bit in the cache file unless we assign to the vars.
3343 (set) 2>&1 |
3344 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3345 *ac_space=\ *)
3346 # `set' does not quote correctly, so add quotes (double-quote substitution
3347 # turns \\\\ into \\, and sed turns \\ into \).
3348 sed -n \
3349 -e "s/'/'\\\\''/g" \
3350 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3351 ;;
3352 *)
3353 # `set' quotes correctly as required by POSIX, so do not add quotes.
3354 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3355 ;;
3356 esac >> confcache
3357 if cmp -s $cache_file confcache; then
3358 :
3359 else
3360 if test -w $cache_file; then
3361 echo "updating cache $cache_file"
3362 cat confcache > $cache_file
3363 else
3364 echo "not updating unwritable cache $cache_file"
3365 fi
3366 fi
3367 rm -f confcache
3368
3369 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3370
3371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3372 # Let make expand exec_prefix.
3373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3374
3375 # Any assignment to VPATH causes Sun make to only execute
3376 # the first set of double-colon rules, so remove it if not needed.
3377 # If there is a colon in the path, we need to keep it.
3378 if test "x$srcdir" = x.; then
3379 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3380 fi
3381
3382 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3383
3384 DEFS=-DHAVE_CONFIG_H
3385
3386 # Without the "./", some shells look in PATH for config.status.
3387 : ${CONFIG_STATUS=./config.status}
3388
3389 echo creating $CONFIG_STATUS
3390 rm -f $CONFIG_STATUS
3391 cat > $CONFIG_STATUS <<EOF
3392 #! /bin/sh
3393 # Generated automatically by configure.
3394 # Run this file to recreate the current configuration.
3395 # This directory was configured as follows,
3396 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3397 #
3398 # $0 $ac_configure_args
3399 #
3400 # Compiler output produced by configure, useful for debugging
3401 # configure, is in ./config.log if it exists.
3402
3403 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3404 for ac_option
3405 do
3406 case "\$ac_option" in
3407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3408 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3409 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3410 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3411 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3412 exit 0 ;;
3413 -help | --help | --hel | --he | --h)
3414 echo "\$ac_cs_usage"; exit 0 ;;
3415 *) echo "\$ac_cs_usage"; exit 1 ;;
3416 esac
3417 done
3418
3419 ac_given_srcdir=$srcdir
3420 ac_given_INSTALL="$INSTALL"
3421
3422 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
3423 EOF
3424 cat >> $CONFIG_STATUS <<EOF
3425
3426 # Protect against being on the right side of a sed subst in config.status.
3427 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3428 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3429 $ac_vpsub
3430 $extrasub
3431 s%@SHELL@%$SHELL%g
3432 s%@CFLAGS@%$CFLAGS%g
3433 s%@CPPFLAGS@%$CPPFLAGS%g
3434 s%@CXXFLAGS@%$CXXFLAGS%g
3435 s%@FFLAGS@%$FFLAGS%g
3436 s%@DEFS@%$DEFS%g
3437 s%@LDFLAGS@%$LDFLAGS%g
3438 s%@LIBS@%$LIBS%g
3439 s%@exec_prefix@%$exec_prefix%g
3440 s%@prefix@%$prefix%g
3441 s%@program_transform_name@%$program_transform_name%g
3442 s%@bindir@%$bindir%g
3443 s%@sbindir@%$sbindir%g
3444 s%@libexecdir@%$libexecdir%g
3445 s%@datadir@%$datadir%g
3446 s%@sysconfdir@%$sysconfdir%g
3447 s%@sharedstatedir@%$sharedstatedir%g
3448 s%@localstatedir@%$localstatedir%g
3449 s%@libdir@%$libdir%g
3450 s%@includedir@%$includedir%g
3451 s%@oldincludedir@%$oldincludedir%g
3452 s%@infodir@%$infodir%g
3453 s%@mandir@%$mandir%g
3454 s%@abs_top_srcdir@%$abs_top_srcdir%g
3455 s%@host@%$host%g
3456 s%@host_alias@%$host_alias%g
3457 s%@host_cpu@%$host_cpu%g
3458 s%@host_vendor@%$host_vendor%g
3459 s%@host_os@%$host_os%g
3460 s%@build@%$build%g
3461 s%@build_alias@%$build_alias%g
3462 s%@build_cpu@%$build_cpu%g
3463 s%@build_vendor@%$build_vendor%g
3464 s%@build_os@%$build_os%g
3465 s%@RANLIB@%$RANLIB%g
3466 s%@CC@%$CC%g
3467 s%@LN_S@%$LN_S%g
3468 s%@LIBTOOL@%$LIBTOOL%g
3469 s%@SUBDIRS@%$SUBDIRS%g
3470 s%@WNNMANDIR@%$WNNMANDIR%g
3471 s%@Wnn@%$Wnn%g
3472 s%@JSERVER_SUBDIRS1@%$JSERVER_SUBDIRS1%g
3473 s%@JSERVER_SUBDIRS2@%$JSERVER_SUBDIRS2%g
3474 s%@cWnn@%$cWnn%g
3475 s%@kWnn@%$kWnn%g
3476 s%@WNNJLIB@%$WNNJLIB%g
3477 s%@DEPWNNJLIB@%$DEPWNNJLIB%g
3478 s%@HINSI_DATA@%$HINSI_DATA%g
3479 s%@CWNNJLIB@%$CWNNJLIB%g
3480 s%@DEPCWNNJLIB@%$DEPCWNNJLIB%g
3481 s%@CHINSI_DATA@%$CHINSI_DATA%g
3482 s%@THINSI_DATA@%$THINSI_DATA%g
3483 s%@KWNNJLIB@%$KWNNJLIB%g
3484 s%@DEPKWNNJLIB@%$DEPKWNNJLIB%g
3485 s%@KHINSI_DATA@%$KHINSI_DATA%g
3486 s%@CPP@%$CPP%g
3487 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3488 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3489 s%@INSTALL_DATA@%$INSTALL_DATA%g
3490 s%@SET_MAKE@%$SET_MAKE%g
3491 s%@CCOPTIONS@%$CCOPTIONS%g
3492 s%@CDEBUGFLAGS@%$CDEBUGFLAGS%g
3493 s%@LIBOBJS@%$LIBOBJS%g
3494
3495 CEOF
3496 EOF
3497
3498 cat >> $CONFIG_STATUS <<\EOF
3499
3500 # Split the substitutions into bite-sized pieces for seds with
3501 # small command number limits, like on Digital OSF/1 and HP-UX.
3502 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3503 ac_file=1 # Number of current file.
3504 ac_beg=1 # First line for current file.
3505 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3506 ac_more_lines=:
3507 ac_sed_cmds=""
3508 while $ac_more_lines; do
3509 if test $ac_beg -gt 1; then
3510 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3511 else
3512 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3513 fi
3514 if test ! -s conftest.s$ac_file; then
3515 ac_more_lines=false
3516 rm -f conftest.s$ac_file
3517 else
3518 if test -z "$ac_sed_cmds"; then
3519 ac_sed_cmds="sed -f conftest.s$ac_file"
3520 else
3521 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3522 fi
3523 ac_file=`expr $ac_file + 1`
3524 ac_beg=$ac_end
3525 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3526 fi
3527 done
3528 if test -z "$ac_sed_cmds"; then
3529 ac_sed_cmds=cat
3530 fi
3531 EOF
3532
3533 cat >> $CONFIG_STATUS <<EOF
3534
3535 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"}
3536 EOF
3537 cat >> $CONFIG_STATUS <<\EOF
3538 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3540 case "$ac_file" in
3541 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3542 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3543 *) ac_file_in="${ac_file}.in" ;;
3544 esac
3545
3546 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3547
3548 # Remove last slash and all that follows it. Not all systems have dirname.
3549 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3550 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3551 # The file is in a subdirectory.
3552 test ! -d "$ac_dir" && mkdir "$ac_dir"
3553 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3554 # A "../" for each directory in $ac_dir_suffix.
3555 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3556 else
3557 ac_dir_suffix= ac_dots=
3558 fi
3559
3560 case "$ac_given_srcdir" in
3561 .) srcdir=.
3562 if test -z "$ac_dots"; then top_srcdir=.
3563 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3564 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3565 *) # Relative path.
3566 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3567 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3568 esac
3569
3570 case "$ac_given_INSTALL" in
3571 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3572 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3573 esac
3574
3575 echo creating "$ac_file"
3576 rm -f "$ac_file"
3577 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3578 case "$ac_file" in
3579 *Makefile*) ac_comsub="1i\\
3580 # $configure_input" ;;
3581 *) ac_comsub= ;;
3582 esac
3583
3584 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3585 sed -e "$ac_comsub
3586 s%@configure_input@%$configure_input%g
3587 s%@srcdir@%$srcdir%g
3588 s%@top_srcdir@%$top_srcdir%g
3589 s%@INSTALL@%$INSTALL%g
3590 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3591 fi; done
3592 rm -f conftest.s*
3593
3594 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3595 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3596 #
3597 # ac_d sets the value in "#define NAME VALUE" lines.
3598 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3599 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3600 ac_dC='\3'
3601 ac_dD='%g'
3602 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3603 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3604 ac_uB='\([ ]\)%\1#\2define\3'
3605 ac_uC=' '
3606 ac_uD='\4%g'
3607 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3608 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3609 ac_eB='$%\1#\2define\3'
3610 ac_eC=' '
3611 ac_eD='%g'
3612
3613 if test "${CONFIG_HEADERS+set}" != set; then
3614 EOF
3615 cat >> $CONFIG_STATUS <<EOF
3616 CONFIG_HEADERS="config.h"
3617 EOF
3618 cat >> $CONFIG_STATUS <<\EOF
3619 fi
3620 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3621 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3622 case "$ac_file" in
3623 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3624 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3625 *) ac_file_in="${ac_file}.in" ;;
3626 esac
3627
3628 echo creating $ac_file
3629
3630 rm -f conftest.frag conftest.in conftest.out
3631 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3632 cat $ac_file_inputs > conftest.in
3633
3634 EOF
3635
3636 # Transform confdefs.h into a sed script conftest.vals that substitutes
3637 # the proper values into config.h.in to produce config.h. And first:
3638 # Protect against being on the right side of a sed subst in config.status.
3639 # Protect against being in an unquoted here document in config.status.
3640 rm -f conftest.vals
3641 cat > conftest.hdr <<\EOF
3642 s/[\\&%]/\\&/g
3643 s%[\\$`]%\\&%g
3644 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3645 s%ac_d%ac_u%gp
3646 s%ac_u%ac_e%gp
3647 EOF
3648 sed -n -f conftest.hdr confdefs.h > conftest.vals
3649 rm -f conftest.hdr
3650
3651 # This sed command replaces #undef with comments. This is necessary, for
3652 # example, in the case of _POSIX_SOURCE, which is predefined and required
3653 # on some systems where configure will not decide to define it.
3654 cat >> conftest.vals <<\EOF
3655 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3656 EOF
3657
3658 # Break up conftest.vals because some shells have a limit on
3659 # the size of here documents, and old seds have small limits too.
3660
3661 rm -f conftest.tail
3662 while :
3663 do
3664 ac_lines=`grep -c . conftest.vals`
3665 # grep -c gives empty output for an empty file on some AIX systems.
3666 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3667 # Write a limited-size here document to conftest.frag.
3668 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3669 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3670 echo 'CEOF
3671 sed -f conftest.frag conftest.in > conftest.out
3672 rm -f conftest.in
3673 mv conftest.out conftest.in
3674 ' >> $CONFIG_STATUS
3675 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3676 rm -f conftest.vals
3677 mv conftest.tail conftest.vals
3678 done
3679 rm -f conftest.vals
3680
3681 cat >> $CONFIG_STATUS <<\EOF
3682 rm -f conftest.frag conftest.h
3683 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3684 cat conftest.in >> conftest.h
3685 rm -f conftest.in
3686 if cmp -s $ac_file conftest.h 2>/dev/null; then
3687 echo "$ac_file is unchanged"
3688 rm -f conftest.h
3689 else
3690 # Remove last slash and all that follows it. Not all systems have dirname.
3691 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3692 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3693 # The file is in a subdirectory.
3694 test ! -d "$ac_dir" && mkdir "$ac_dir"
3695 fi
3696 rm -f $ac_file
3697 mv conftest.h $ac_file
3698 fi
3699 fi; done
3700
3701 EOF
3702 cat >> $CONFIG_STATUS <<EOF
3703
3704 EOF
3705 cat >> $CONFIG_STATUS <<\EOF
3706
3707 exit 0
3708 EOF
3709 chmod +x $CONFIG_STATUS
3710 rm -fr confdefs* $ac_clean_files
3711 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3712

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