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.7 - (show annotations) (download)
Sun Jan 16 06:55:27 2000 UTC (24 years, 3 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a007
Changes since 1.6: +51 -1154 lines
FreeWnn-1.1.1-a007 is released.

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

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