ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure
Revision: 1.4.2.2
Committed: Sun Mar 31 19:52:06 2002 UTC (22 years, 2 months ago) by root
Branch: UUDEVIEW
CVS Tags: UUDEVIEW-0-5-17
Changes since 1.4.2.1: +42 -43 lines
Log Message:
*** empty log message ***

File Contents

# Content
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 --disable-optimize compile for debugging"
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
65 ac_prev=
66 continue
67 fi
68
69 case "$ac_option" in
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 *) ac_optarg= ;;
72 esac
73
74 # Accept the important Cygnus configure options, so we can diagnose typos.
75
76 case "$ac_option" in
77
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
79 ac_prev=bindir ;;
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
82
83 -build | --build | --buil | --bui | --bu)
84 ac_prev=build ;;
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 build="$ac_optarg" ;;
87
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90 ac_prev=cache_file ;;
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
94
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96 ac_prev=datadir ;;
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98 | --da=*)
99 datadir="$ac_optarg" ;;
100
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 fi
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
109
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 fi
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117 case "$ac_option" in
118 *=*) ;;
119 *) ac_optarg=yes ;;
120 esac
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
131
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
134 with_gas=yes ;;
135
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
139 cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
150 [$ac_default_prefix]
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 [same as prefix]
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
157 [PREFIX/share]
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 [PREFIX/com]
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
172 EOF
173 cat << EOF
174 Host type:
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
185 EOF
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
188 fi
189 exit 0 ;;
190
191 -host | --host | --hos | --ho)
192 ac_prev=host ;;
193 -host=* | --host=* | --hos=* | --ho=*)
194 host="$ac_optarg" ;;
195
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
202
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 ac_prev=infodir ;;
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
207
208 -libdir | --libdir | --libdi | --libd)
209 ac_prev=libdir ;;
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
212
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
219
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
228
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 ac_prev=mandir ;;
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
233
234 -nfp | --nfp | --nf)
235 # Obsolete; use --without-fp.
236 with_fp=no ;;
237
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 | --no-cr | --no-c)
240 no_create=yes ;;
241
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 no_recursion=yes ;;
245
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
254
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 ac_prev=prefix ;;
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
259
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
266
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
273
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
290
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
293 silent=yes ;;
294
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 ac_prev=sbindir ;;
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 | --sbi=* | --sb=*)
299 sbindir="$ac_optarg" ;;
300
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
304 | --sha | --sh)
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 | --sha=* | --sh=*)
310 sharedstatedir="$ac_optarg" ;;
311
312 -site | --site | --sit)
313 ac_prev=site ;;
314 -site=* | --site=* | --sit=*)
315 site="$ac_optarg" ;;
316
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318 ac_prev=srcdir ;;
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
321
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
328
329 -target | --target | --targe | --targ | --tar | --ta | --t)
330 ac_prev=target ;;
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
333
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 verbose=yes ;;
336
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
339 exit 0 ;;
340
341 -with-* | --with-*)
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 fi
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
348 case "$ac_option" in
349 *=*) ;;
350 *) ac_optarg=yes ;;
351 esac
352 eval "with_${ac_package}='$ac_optarg'" ;;
353
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 fi
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
362
363 --x)
364 # Obsolete; use --with-x.
365 with_x=yes ;;
366
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
373
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
380
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382 ;;
383
384 *)
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 fi
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390 fi
391 nonopt="$ac_option"
392 ;;
393
394 esac
395 done
396
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412 exec 6>/dev/null
413 else
414 exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428 case "$ac_arg" in
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436 esac
437 done
438
439 # NLS nuisances.
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
448
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
453
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=uulib.c
457
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
462 ac_prog=$0
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465 srcdir=$ac_confdir
466 if test ! -r $srcdir/$ac_unique_file; then
467 srcdir=..
468 fi
469 else
470 ac_srcdir_defaulted=no
471 fi
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475 else
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485 else
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 fi
488 fi
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
492 . "$ac_site_file"
493 fi
494 done
495
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
498 . $cache_file
499 else
500 echo "creating cache $cache_file"
501 > $cache_file
502 fi
503
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
510
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516 ac_n= ac_c='
517 ' ac_t=' '
518 else
519 ac_n=-n ac_c= ac_t=
520 fi
521 else
522 ac_n= ac_c='\c' ac_t=
523 fi
524
525
526
527
528
529 #
530 # package revision
531 #
532 VERSION=0.5
533 PATCH=17
534
535 # Check whether --enable-optimize or --disable-optimize was given.
536 if test "${enable_optimize+set}" = set; then
537 enableval="$enable_optimize"
538 optimize=$enableval
539 else
540 optimize=yes
541 fi
542
543
544 # Extract the first word of "gcc", so it can be a program name with args.
545 set dummy gcc; ac_word=$2
546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
547 echo "configure:548: checking for $ac_word" >&5
548 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
549 echo $ac_n "(cached) $ac_c" 1>&6
550 else
551 if test -n "$CC"; then
552 ac_cv_prog_CC="$CC" # Let the user override the test.
553 else
554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
555 ac_dummy="$PATH"
556 for ac_dir in $ac_dummy; do
557 test -z "$ac_dir" && ac_dir=.
558 if test -f $ac_dir/$ac_word; then
559 ac_cv_prog_CC="gcc"
560 break
561 fi
562 done
563 IFS="$ac_save_ifs"
564 fi
565 fi
566 CC="$ac_cv_prog_CC"
567 if test -n "$CC"; then
568 echo "$ac_t""$CC" 1>&6
569 else
570 echo "$ac_t""no" 1>&6
571 fi
572
573 if test -z "$CC"; then
574 # Extract the first word of "cc", so it can be a program name with args.
575 set dummy cc; ac_word=$2
576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577 echo "configure:578: checking for $ac_word" >&5
578 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
580 else
581 if test -n "$CC"; then
582 ac_cv_prog_CC="$CC" # Let the user override the test.
583 else
584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
585 ac_prog_rejected=no
586 ac_dummy="$PATH"
587 for ac_dir in $ac_dummy; do
588 test -z "$ac_dir" && ac_dir=.
589 if test -f $ac_dir/$ac_word; then
590 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
591 ac_prog_rejected=yes
592 continue
593 fi
594 ac_cv_prog_CC="cc"
595 break
596 fi
597 done
598 IFS="$ac_save_ifs"
599 if test $ac_prog_rejected = yes; then
600 # We found a bogon in the path, so make sure we never use it.
601 set dummy $ac_cv_prog_CC
602 shift
603 if test $# -gt 0; then
604 # We chose a different compiler from the bogus one.
605 # However, it has the same basename, so the bogon will be chosen
606 # first if we set CC to just the basename; use the full file name.
607 shift
608 set dummy "$ac_dir/$ac_word" "$@"
609 shift
610 ac_cv_prog_CC="$@"
611 fi
612 fi
613 fi
614 fi
615 CC="$ac_cv_prog_CC"
616 if test -n "$CC"; then
617 echo "$ac_t""$CC" 1>&6
618 else
619 echo "$ac_t""no" 1>&6
620 fi
621
622 if test -z "$CC"; then
623 case "`uname -s`" in
624 *win32* | *WIN32*)
625 # Extract the first word of "cl", so it can be a program name with args.
626 set dummy cl; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
631 else
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
634 else
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
636 ac_dummy="$PATH"
637 for ac_dir in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
640 ac_cv_prog_CC="cl"
641 break
642 fi
643 done
644 IFS="$ac_save_ifs"
645 fi
646 fi
647 CC="$ac_cv_prog_CC"
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
650 else
651 echo "$ac_t""no" 1>&6
652 fi
653 ;;
654 esac
655 fi
656 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
657 fi
658
659 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
660 echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
661
662 ac_ext=c
663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
664 ac_cpp='$CPP $CPPFLAGS'
665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
667 cross_compiling=$ac_cv_prog_cc_cross
668
669 cat > conftest.$ac_ext << EOF
670
671 #line 672 "configure"
672 #include "confdefs.h"
673
674 main(){return(0);}
675 EOF
676 if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
677 ac_cv_prog_cc_works=yes
678 # If we can't run a trivial program, we are probably using a cross compiler.
679 if (./conftest; exit) 2>/dev/null; then
680 ac_cv_prog_cc_cross=no
681 else
682 ac_cv_prog_cc_cross=yes
683 fi
684 else
685 echo "configure: failed program was:" >&5
686 cat conftest.$ac_ext >&5
687 ac_cv_prog_cc_works=no
688 fi
689 rm -fr conftest*
690 ac_ext=c
691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
692 ac_cpp='$CPP $CPPFLAGS'
693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
695 cross_compiling=$ac_cv_prog_cc_cross
696
697 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
698 if test $ac_cv_prog_cc_works = no; then
699 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
700 fi
701 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
702 echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
703 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
704 cross_compiling=$ac_cv_prog_cc_cross
705
706 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
707 echo "configure:708: checking whether we are using GNU C" >&5
708 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
710 else
711 cat > conftest.c <<EOF
712 #ifdef __GNUC__
713 yes;
714 #endif
715 EOF
716 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717 ac_cv_prog_gcc=yes
718 else
719 ac_cv_prog_gcc=no
720 fi
721 fi
722
723 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
724
725 if test $ac_cv_prog_gcc = yes; then
726 GCC=yes
727 else
728 GCC=
729 fi
730
731 ac_test_CFLAGS="${CFLAGS+set}"
732 ac_save_CFLAGS="$CFLAGS"
733 CFLAGS=
734 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
735 echo "configure:736: checking whether ${CC-cc} accepts -g" >&5
736 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
738 else
739 echo 'void f(){}' > conftest.c
740 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
741 ac_cv_prog_cc_g=yes
742 else
743 ac_cv_prog_cc_g=no
744 fi
745 rm -f conftest*
746
747 fi
748
749 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
750 if test "$ac_test_CFLAGS" = set; then
751 CFLAGS="$ac_save_CFLAGS"
752 elif test $ac_cv_prog_cc_g = yes; then
753 if test "$GCC" = yes; then
754 CFLAGS="-g -O2"
755 else
756 CFLAGS="-g"
757 fi
758 else
759 if test "$GCC" = yes; then
760 CFLAGS="-O2"
761 else
762 CFLAGS=
763 fi
764 fi
765
766 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
767 echo "configure:768: checking how to run the C preprocessor" >&5
768 # On Suns, sometimes $CPP names a directory.
769 if test -n "$CPP" && test -d "$CPP"; then
770 CPP=
771 fi
772 if test -z "$CPP"; then
773 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
775 else
776 # This must be in double quotes, not single quotes, because CPP may get
777 # substituted into the Makefile and "${CC-cc}" will confuse make.
778 CPP="${CC-cc} -E"
779 # On the NeXT, cc -E runs the code through the compiler's parser,
780 # not just through cpp.
781 cat > conftest.$ac_ext <<EOF
782 #line 783 "configure"
783 #include "confdefs.h"
784 #include <assert.h>
785 Syntax Error
786 EOF
787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
788 { (eval echo configure:789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
790 if test -z "$ac_err"; then
791 :
792 else
793 echo "$ac_err" >&5
794 echo "configure: failed program was:" >&5
795 cat conftest.$ac_ext >&5
796 rm -rf conftest*
797 CPP="${CC-cc} -E -traditional-cpp"
798 cat > conftest.$ac_ext <<EOF
799 #line 800 "configure"
800 #include "confdefs.h"
801 #include <assert.h>
802 Syntax Error
803 EOF
804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
805 { (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
807 if test -z "$ac_err"; then
808 :
809 else
810 echo "$ac_err" >&5
811 echo "configure: failed program was:" >&5
812 cat conftest.$ac_ext >&5
813 rm -rf conftest*
814 CPP="${CC-cc} -nologo -E"
815 cat > conftest.$ac_ext <<EOF
816 #line 817 "configure"
817 #include "confdefs.h"
818 #include <assert.h>
819 Syntax Error
820 EOF
821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
822 { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
824 if test -z "$ac_err"; then
825 :
826 else
827 echo "$ac_err" >&5
828 echo "configure: failed program was:" >&5
829 cat conftest.$ac_ext >&5
830 rm -rf conftest*
831 CPP=/lib/cpp
832 fi
833 rm -f conftest*
834 fi
835 rm -f conftest*
836 fi
837 rm -f conftest*
838 ac_cv_prog_CPP="$CPP"
839 fi
840 CPP="$ac_cv_prog_CPP"
841 else
842 ac_cv_prog_CPP="$CPP"
843 fi
844 echo "$ac_t""$CPP" 1>&6
845
846
847 echo $ac_n "checking if HP-UX ansi C compiler flags are needed""... $ac_c" 1>&6
848 echo "configure:849: checking if HP-UX ansi C compiler flags are needed" >&5
849
850 os=`uname -s | tr 'A-Z' 'a-z'`
851 ac_cv_hpux_flags=no
852 if test "$os" = hp-ux ; then
853 if test "$ac_cv_prog_gcc" = yes ; then
854 if test "$CFLAGS" != "" ; then
855 # Shouldn't be in there.
856 CFLAGS=`echo "$CFLAGS" | sed 's/-Aa//g'`
857 fi
858 else
859 # If you're not using gcc, then you better have a cc/c89
860 # that is usable. If you have the barebones compiler, it
861 # won't work. The good compiler uses -Aa for the ANSI
862 # compatible stuff.
863 x=`echo $CFLAGS | grep 'Aa' 2>/dev/null`
864 if test "$x" = "" ; then
865 CFLAGS="$CFLAGS -Aa"
866 fi
867 ac_cv_hpux_flags=yes
868 fi
869 # Also add _HPUX_SOURCE to get the extended namespace.
870 x=`echo $CFLAGS | grep '_HPUX_SOURCE' 2>/dev/null`
871 if test "$x" = "" ; then
872 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
873 fi
874 fi
875 echo "$ac_t""$ac_cv_hpux_flags" 1>&6
876
877 if test "$CFLAGS" = "" ; then
878 CFLAGS="-O"
879 elif test "$ac_cv_prog_gcc" = "yes" ; then
880 case "$CFLAGS" in
881 *"-g -O"*)
882 #echo "using -g as default gcc CFLAGS" 1>&6
883 CFLAGS=`echo $CFLAGS | sed 's/-g\ -O/-O/'`
884 ;;
885 *"-O -g"*)
886 # Leave the -g, but remove all -O options.
887 #echo "using -g as default gcc CFLAGS" 1>&6
888 CFLAGS=`echo $CFLAGS | sed 's/-O\ -g/-O/'`
889 ;;
890 esac
891 fi
892
893
894 echo $ac_n "checking if the compiler supports function prototypes""... $ac_c" 1>&6
895 echo "configure:896: checking if the compiler supports function prototypes" >&5
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
899
900 int main() {
901 extern void exit(int status);
902 ; return 0; }
903 EOF
904 if { (eval echo configure:905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905 rm -rf conftest*
906 wi_cv_prototypes=yes
907 cat >> confdefs.h <<\EOF
908 #define PROTOTYPES 1
909 EOF
910
911 else
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
914 rm -rf conftest*
915 wi_cv_prototypes=no
916 fi
917 rm -f conftest*
918 echo "$ac_t""$wi_cv_prototypes" 1>&6
919
920 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
921 echo "configure:922: checking whether ${MAKE-make} sets \${MAKE}" >&5
922 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
923 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
925 else
926 cat > conftestmake <<\EOF
927 all:
928 @echo 'ac_maketemp="${MAKE}"'
929 EOF
930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
931 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
932 if test -n "$ac_maketemp"; then
933 eval ac_cv_prog_make_${ac_make}_set=yes
934 else
935 eval ac_cv_prog_make_${ac_make}_set=no
936 fi
937 rm -f conftestmake
938 fi
939 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
940 echo "$ac_t""yes" 1>&6
941 SET_MAKE=
942 else
943 echo "$ac_t""no" 1>&6
944 SET_MAKE="MAKE=${MAKE-make}"
945 fi
946
947 # Extract the first word of "ranlib", so it can be a program name with args.
948 set dummy ranlib; ac_word=$2
949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950 echo "configure:951: checking for $ac_word" >&5
951 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
953 else
954 if test -n "$RANLIB"; then
955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
956 else
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
958 ac_dummy="$PATH"
959 for ac_dir in $ac_dummy; do
960 test -z "$ac_dir" && ac_dir=.
961 if test -f $ac_dir/$ac_word; then
962 ac_cv_prog_RANLIB="ranlib"
963 break
964 fi
965 done
966 IFS="$ac_save_ifs"
967 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
968 fi
969 fi
970 RANLIB="$ac_cv_prog_RANLIB"
971 if test -n "$RANLIB"; then
972 echo "$ac_t""$RANLIB" 1>&6
973 else
974 echo "$ac_t""no" 1>&6
975 fi
976
977
978 #
979 # When optimization is enabled, remove -g from CFLAGS and add -O
980 #
981
982 if test "$optimize" = "yes" ; then
983 echo $ac_n "checking compiler flags""... $ac_c" 1>&6
984 echo "configure:985: checking compiler flags" >&5
985 CFLAGS=`echo $CFLAGS | sed 's/-g//g'`
986 case $CFLAGS in
987 *"-O"*)
988 ;;
989 *)
990 CFLAGS="$CFLAGS -O"
991 ;;
992 esac
993 echo "$ac_t""done" 1>&6
994 fi
995
996 if test "$wi_cv_prototypes" = no ; then
997 echo "configure: warning: Your compiler does not support function prototyping and" 1>&2
998 echo "configure: warning: is not able to properly compile this package. What a pity." 1>&2
999 echo "configure: warning: Get gcc, or any compiler that supports function prototypes." 1>&2
1000 exit 1
1001 fi
1002
1003 #
1004 # Checks for header files and library functions
1005 #
1006
1007 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1008 echo "configure:1009: checking for ANSI C header files" >&5
1009 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011 else
1012 cat > conftest.$ac_ext <<EOF
1013 #line 1014 "configure"
1014 #include "confdefs.h"
1015 #include <stdlib.h>
1016 #include <stdarg.h>
1017 #include <string.h>
1018 #include <float.h>
1019 EOF
1020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1021 { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1023 if test -z "$ac_err"; then
1024 rm -rf conftest*
1025 ac_cv_header_stdc=yes
1026 else
1027 echo "$ac_err" >&5
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1030 rm -rf conftest*
1031 ac_cv_header_stdc=no
1032 fi
1033 rm -f conftest*
1034
1035 if test $ac_cv_header_stdc = yes; then
1036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1037 cat > conftest.$ac_ext <<EOF
1038 #line 1039 "configure"
1039 #include "confdefs.h"
1040 #include <string.h>
1041 EOF
1042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1043 egrep "memchr" >/dev/null 2>&1; then
1044 :
1045 else
1046 rm -rf conftest*
1047 ac_cv_header_stdc=no
1048 fi
1049 rm -f conftest*
1050
1051 fi
1052
1053 if test $ac_cv_header_stdc = yes; then
1054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1055 cat > conftest.$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1058 #include <stdlib.h>
1059 EOF
1060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1061 egrep "free" >/dev/null 2>&1; then
1062 :
1063 else
1064 rm -rf conftest*
1065 ac_cv_header_stdc=no
1066 fi
1067 rm -f conftest*
1068
1069 fi
1070
1071 if test $ac_cv_header_stdc = yes; then
1072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1073 if test "$cross_compiling" = yes; then
1074 :
1075 else
1076 cat > conftest.$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1079 #include <ctype.h>
1080 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1081 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1082 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1083 int main () { int i; for (i = 0; i < 256; i++)
1084 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1085 exit (0); }
1086
1087 EOF
1088 if { (eval echo configure:1089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1089 then
1090 :
1091 else
1092 echo "configure: failed program was:" >&5
1093 cat conftest.$ac_ext >&5
1094 rm -fr conftest*
1095 ac_cv_header_stdc=no
1096 fi
1097 rm -fr conftest*
1098 fi
1099
1100 fi
1101 fi
1102
1103 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1104 if test $ac_cv_header_stdc = yes; then
1105 cat >> confdefs.h <<\EOF
1106 #define STDC_HEADERS 1
1107 EOF
1108
1109 fi
1110
1111 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1112 echo "configure:1113: checking for size_t" >&5
1113 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 cat > conftest.$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1119 #include <sys/types.h>
1120 #if STDC_HEADERS
1121 #include <stdlib.h>
1122 #include <stddef.h>
1123 #endif
1124 EOF
1125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1126 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1127 rm -rf conftest*
1128 ac_cv_type_size_t=yes
1129 else
1130 rm -rf conftest*
1131 ac_cv_type_size_t=no
1132 fi
1133 rm -f conftest*
1134
1135 fi
1136 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1137 if test $ac_cv_type_size_t = no; then
1138 cat >> confdefs.h <<\EOF
1139 #define size_t unsigned
1140 EOF
1141
1142 fi
1143
1144 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether time.h and sys/time.h may both be included" >&5
1146 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 cat > conftest.$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1152 #include <sys/types.h>
1153 #include <sys/time.h>
1154 #include <time.h>
1155 int main() {
1156 struct tm *tp;
1157 ; return 0; }
1158 EOF
1159 if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1160 rm -rf conftest*
1161 ac_cv_header_time=yes
1162 else
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1165 rm -rf conftest*
1166 ac_cv_header_time=no
1167 fi
1168 rm -f conftest*
1169 fi
1170
1171 echo "$ac_t""$ac_cv_header_time" 1>&6
1172 if test $ac_cv_header_time = yes; then
1173 cat >> confdefs.h <<\EOF
1174 #define TIME_WITH_SYS_TIME 1
1175 EOF
1176
1177 fi
1178
1179 for ac_hdr in fcntl.h unistd.h memory.h malloc.h errno.h
1180 do
1181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1183 echo "configure:1184: checking for $ac_hdr" >&5
1184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1186 else
1187 cat > conftest.$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1190 #include <$ac_hdr>
1191 EOF
1192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1193 { (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1195 if test -z "$ac_err"; then
1196 rm -rf conftest*
1197 eval "ac_cv_header_$ac_safe=yes"
1198 else
1199 echo "$ac_err" >&5
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1202 rm -rf conftest*
1203 eval "ac_cv_header_$ac_safe=no"
1204 fi
1205 rm -f conftest*
1206 fi
1207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1208 echo "$ac_t""yes" 1>&6
1209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1210 cat >> confdefs.h <<EOF
1211 #define $ac_tr_hdr 1
1212 EOF
1213
1214 else
1215 echo "$ac_t""no" 1>&6
1216 fi
1217 done
1218
1219 for ac_hdr in io.h sys/time.h
1220 do
1221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_hdr" >&5
1224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227 cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1230 #include <$ac_hdr>
1231 EOF
1232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233 { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235 if test -z "$ac_err"; then
1236 rm -rf conftest*
1237 eval "ac_cv_header_$ac_safe=yes"
1238 else
1239 echo "$ac_err" >&5
1240 echo "configure: failed program was:" >&5
1241 cat conftest.$ac_ext >&5
1242 rm -rf conftest*
1243 eval "ac_cv_header_$ac_safe=no"
1244 fi
1245 rm -f conftest*
1246 fi
1247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1248 echo "$ac_t""yes" 1>&6
1249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1250 cat >> confdefs.h <<EOF
1251 #define $ac_tr_hdr 1
1252 EOF
1253
1254 else
1255 echo "$ac_t""no" 1>&6
1256 fi
1257 done
1258
1259 for ac_func in gettimeofday
1260 do
1261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_func" >&5
1263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1265 else
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 /* System header to define __stub macros and hopefully few prototypes,
1270 which can conflict with char $ac_func(); below. */
1271 #include <assert.h>
1272 /* Override any gcc2 internal prototype to avoid an error. */
1273 /* We use char because int might match the return type of a gcc2
1274 builtin and then its argument prototype would still apply. */
1275 char $ac_func();
1276
1277 int main() {
1278
1279 /* The GNU C library defines this for functions which it implements
1280 to always fail with ENOSYS. Some functions are actually named
1281 something starting with __ and the normal name is an alias. */
1282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1283 choke me
1284 #else
1285 $ac_func();
1286 #endif
1287
1288 ; return 0; }
1289 EOF
1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1291 rm -rf conftest*
1292 eval "ac_cv_func_$ac_func=yes"
1293 else
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1296 rm -rf conftest*
1297 eval "ac_cv_func_$ac_func=no"
1298 fi
1299 rm -f conftest*
1300 fi
1301
1302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1303 echo "$ac_t""yes" 1>&6
1304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1305 cat >> confdefs.h <<EOF
1306 #define $ac_tr_func 1
1307 EOF
1308
1309 else
1310 echo "$ac_t""no" 1>&6
1311 fi
1312 done
1313
1314
1315 echo $ac_n "checking for tempnam""... $ac_c" 1>&6
1316 echo "configure:1317: checking for tempnam" >&5
1317 if eval "test \"`echo '$''{'ac_cv_func_tempnam'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1319 else
1320 cat > conftest.$ac_ext <<EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1323 /* System header to define __stub macros and hopefully few prototypes,
1324 which can conflict with char tempnam(); below. */
1325 #include <assert.h>
1326 /* Override any gcc2 internal prototype to avoid an error. */
1327 /* We use char because int might match the return type of a gcc2
1328 builtin and then its argument prototype would still apply. */
1329 char tempnam();
1330
1331 int main() {
1332
1333 /* The GNU C library defines this for functions which it implements
1334 to always fail with ENOSYS. Some functions are actually named
1335 something starting with __ and the normal name is an alias. */
1336 #if defined (__stub_tempnam) || defined (__stub___tempnam)
1337 choke me
1338 #else
1339 tempnam();
1340 #endif
1341
1342 ; return 0; }
1343 EOF
1344 if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1345 rm -rf conftest*
1346 eval "ac_cv_func_tempnam=yes"
1347 else
1348 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5
1350 rm -rf conftest*
1351 eval "ac_cv_func_tempnam=no"
1352 fi
1353 rm -f conftest*
1354 fi
1355
1356 if eval "test \"`echo '$ac_cv_func_'tempnam`\" = yes"; then
1357 echo "$ac_t""yes" 1>&6
1358 :
1359 else
1360 echo "$ac_t""no" 1>&6
1361 cat >> confdefs.h <<\EOF
1362 #define tempnam _FP_tempnam
1363 EOF
1364
1365 fi
1366
1367
1368 #
1369 # strerror might be internally defined. this would cause a
1370 # CHECK_FUNCS(strerror) to fail because it'd be called with
1371 # zero arguments. So use our own code.
1372 #
1373 echo $ac_n "checking for strerror""... $ac_c" 1>&6
1374 echo "configure:1375: checking for strerror" >&5
1375 cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1378
1379 char *blubb() { return (char *) strerror (42); }
1380
1381 int main() {
1382
1383 (void) blubb();
1384
1385 ; return 0; }
1386 EOF
1387 if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1388 rm -rf conftest*
1389 have_strerror=yes
1390 else
1391 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5
1393 rm -rf conftest*
1394 cat >> confdefs.h <<\EOF
1395 #define strerror _FP_strerror
1396 EOF
1397
1398 have_strerror=no
1399 fi
1400 rm -f conftest*
1401 echo "$ac_t""$have_strerror" 1>&6
1402
1403 echo $ac_n "checking for stdin""... $ac_c" 1>&6
1404 echo "configure:1405: checking for stdin" >&5
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408
1409 #include <stdio.h>
1410 char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; }
1411
1412 int main() {
1413
1414 (void) blubb();
1415
1416 ; return 0; }
1417 EOF
1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1419 rm -rf conftest*
1420 have_stdio=yes
1421 else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425 cat >> confdefs.h <<\EOF
1426 #define HAVE_STDIO 1
1427 EOF
1428
1429 have_stdio=no
1430 fi
1431 rm -f conftest*
1432 echo "$ac_t""$have_stdio" 1>&6
1433
1434 if test "$ac_cv_header_stdc" = "no" ; then
1435 for ac_hdr in stdarg.h varargs.h
1436 do
1437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1439 echo "configure:1440: checking for $ac_hdr" >&5
1440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1446 #include <$ac_hdr>
1447 EOF
1448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1449 { (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1451 if test -z "$ac_err"; then
1452 rm -rf conftest*
1453 eval "ac_cv_header_$ac_safe=yes"
1454 else
1455 echo "$ac_err" >&5
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1458 rm -rf conftest*
1459 eval "ac_cv_header_$ac_safe=no"
1460 fi
1461 rm -f conftest*
1462 fi
1463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1466 cat >> confdefs.h <<EOF
1467 #define $ac_tr_hdr 1
1468 EOF
1469
1470 else
1471 echo "$ac_t""no" 1>&6
1472 fi
1473 done
1474
1475 if test "$ac_cv_header_stdarg_h" = "no" ; then
1476 if test "$ac_cv_header_varargs_h" = "no" ; then
1477 { echo "configure: error: neither stdarg.h nor varargs.h present" 1>&2; exit 1; }
1478 fi
1479 fi
1480 fi
1481
1482 #
1483 # Check whether this is a DOS-Based system. Another bogus test.
1484 # Don't even bother to print a message. This code is needed so
1485 # that autoheader includes the #undef into the final config.h
1486 # and we can change the definition by hand on a really DOS
1487 # system (where ./configure doesn't work anyway ...)
1488 #
1489
1490 if false ; then
1491 cat >> confdefs.h <<\EOF
1492 #define SYSTEM_DOS 1
1493 EOF
1494
1495 cat >> confdefs.h <<\EOF
1496 #define SYSTEM_QUICKWIN 1
1497 EOF
1498
1499 cat >> confdefs.h <<\EOF
1500 #define SYSTEM_WINDLL 1
1501 EOF
1502
1503 cat >> confdefs.h <<\EOF
1504 #define SYSTEM_OS2 1
1505 EOF
1506
1507 fi
1508
1509 #
1510 # On some systems (so far, OS2 and WINDOWS), functions that are exported
1511 # from a DLL must be declared specifically.
1512 #
1513
1514 cat >> confdefs.h <<EOF
1515 #define UUEXPORT
1516 EOF
1517
1518 cat >> confdefs.h <<EOF
1519 #define TOOLEXPORT
1520 EOF
1521
1522
1523 #
1524 # set version number
1525 #
1526 echo $ac_n "checking version number""... $ac_c" 1>&6
1527 echo "configure:1528: checking version number" >&5
1528 version_number="$VERSION"pl"$PATCH"
1529 echo "$ac_t""$version_number" 1>&6
1530
1531
1532
1533 #
1534 # done
1535 #
1536
1537 trap '' 1 2 15
1538 cat > confcache <<\EOF
1539 # This file is a shell script that caches the results of configure
1540 # tests run on this system so they can be shared between configure
1541 # scripts and configure runs. It is not useful on other systems.
1542 # If it contains results you don't want to keep, you may remove or edit it.
1543 #
1544 # By default, configure uses ./config.cache as the cache file,
1545 # creating it if it does not exist already. You can give configure
1546 # the --cache-file=FILE option to use a different cache file; that is
1547 # what configure does when it calls configure scripts in
1548 # subdirectories, so they share the cache.
1549 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1550 # config.status only pays attention to the cache file if you give it the
1551 # --recheck option to rerun configure.
1552 #
1553 EOF
1554 # The following way of writing the cache mishandles newlines in values,
1555 # but we know of no workaround that is simple, portable, and efficient.
1556 # So, don't put newlines in cache variables' values.
1557 # Ultrix sh set writes to stderr and can't be redirected directly,
1558 # and sets the high bit in the cache file unless we assign to the vars.
1559 (set) 2>&1 |
1560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1561 *ac_space=\ *)
1562 # `set' does not quote correctly, so add quotes (double-quote substitution
1563 # turns \\\\ into \\, and sed turns \\ into \).
1564 sed -n \
1565 -e "s/'/'\\\\''/g" \
1566 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1567 ;;
1568 *)
1569 # `set' quotes correctly as required by POSIX, so do not add quotes.
1570 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1571 ;;
1572 esac >> confcache
1573 if cmp -s $cache_file confcache; then
1574 :
1575 else
1576 if test -w $cache_file; then
1577 echo "updating cache $cache_file"
1578 cat confcache > $cache_file
1579 else
1580 echo "not updating unwritable cache $cache_file"
1581 fi
1582 fi
1583 rm -f confcache
1584
1585 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1586
1587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1588 # Let make expand exec_prefix.
1589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1590
1591 # Any assignment to VPATH causes Sun make to only execute
1592 # the first set of double-colon rules, so remove it if not needed.
1593 # If there is a colon in the path, we need to keep it.
1594 if test "x$srcdir" = x.; then
1595 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1596 fi
1597
1598 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1599
1600 DEFS=-DHAVE_CONFIG_H
1601
1602 # Without the "./", some shells look in PATH for config.status.
1603 : ${CONFIG_STATUS=./config.status}
1604
1605 echo creating $CONFIG_STATUS
1606 rm -f $CONFIG_STATUS
1607 cat > $CONFIG_STATUS <<EOF
1608 #! /bin/sh
1609 # Generated automatically by configure.
1610 # Run this file to recreate the current configuration.
1611 # This directory was configured as follows,
1612 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1613 #
1614 # $0 $ac_configure_args
1615 #
1616 # Compiler output produced by configure, useful for debugging
1617 # configure, is in ./config.log if it exists.
1618
1619 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1620 for ac_option
1621 do
1622 case "\$ac_option" in
1623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1624 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1625 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1626 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1627 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1628 exit 0 ;;
1629 -help | --help | --hel | --he | --h)
1630 echo "\$ac_cs_usage"; exit 0 ;;
1631 *) echo "\$ac_cs_usage"; exit 1 ;;
1632 esac
1633 done
1634
1635 ac_given_srcdir=$srcdir
1636
1637 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1638 EOF
1639 cat >> $CONFIG_STATUS <<EOF
1640
1641 # Protect against being on the right side of a sed subst in config.status.
1642 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1643 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1644 $ac_vpsub
1645 $extrasub
1646 s%@SHELL@%$SHELL%g
1647 s%@CFLAGS@%$CFLAGS%g
1648 s%@CPPFLAGS@%$CPPFLAGS%g
1649 s%@CXXFLAGS@%$CXXFLAGS%g
1650 s%@FFLAGS@%$FFLAGS%g
1651 s%@DEFS@%$DEFS%g
1652 s%@LDFLAGS@%$LDFLAGS%g
1653 s%@LIBS@%$LIBS%g
1654 s%@exec_prefix@%$exec_prefix%g
1655 s%@prefix@%$prefix%g
1656 s%@program_transform_name@%$program_transform_name%g
1657 s%@bindir@%$bindir%g
1658 s%@sbindir@%$sbindir%g
1659 s%@libexecdir@%$libexecdir%g
1660 s%@datadir@%$datadir%g
1661 s%@sysconfdir@%$sysconfdir%g
1662 s%@sharedstatedir@%$sharedstatedir%g
1663 s%@localstatedir@%$localstatedir%g
1664 s%@libdir@%$libdir%g
1665 s%@includedir@%$includedir%g
1666 s%@oldincludedir@%$oldincludedir%g
1667 s%@infodir@%$infodir%g
1668 s%@mandir@%$mandir%g
1669 s%@CC@%$CC%g
1670 s%@CPP@%$CPP%g
1671 s%@SET_MAKE@%$SET_MAKE%g
1672 s%@RANLIB@%$RANLIB%g
1673 s%@VERSION@%$VERSION%g
1674 s%@PATCH@%$PATCH%g
1675
1676 CEOF
1677 EOF
1678
1679 cat >> $CONFIG_STATUS <<\EOF
1680
1681 # Split the substitutions into bite-sized pieces for seds with
1682 # small command number limits, like on Digital OSF/1 and HP-UX.
1683 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1684 ac_file=1 # Number of current file.
1685 ac_beg=1 # First line for current file.
1686 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1687 ac_more_lines=:
1688 ac_sed_cmds=""
1689 while $ac_more_lines; do
1690 if test $ac_beg -gt 1; then
1691 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1692 else
1693 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1694 fi
1695 if test ! -s conftest.s$ac_file; then
1696 ac_more_lines=false
1697 rm -f conftest.s$ac_file
1698 else
1699 if test -z "$ac_sed_cmds"; then
1700 ac_sed_cmds="sed -f conftest.s$ac_file"
1701 else
1702 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1703 fi
1704 ac_file=`expr $ac_file + 1`
1705 ac_beg=$ac_end
1706 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1707 fi
1708 done
1709 if test -z "$ac_sed_cmds"; then
1710 ac_sed_cmds=cat
1711 fi
1712 EOF
1713
1714 cat >> $CONFIG_STATUS <<EOF
1715
1716 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1717 EOF
1718 cat >> $CONFIG_STATUS <<\EOF
1719 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1721 case "$ac_file" in
1722 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1723 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1724 *) ac_file_in="${ac_file}.in" ;;
1725 esac
1726
1727 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1728
1729 # Remove last slash and all that follows it. Not all systems have dirname.
1730 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1731 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1732 # The file is in a subdirectory.
1733 test ! -d "$ac_dir" && mkdir "$ac_dir"
1734 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1735 # A "../" for each directory in $ac_dir_suffix.
1736 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1737 else
1738 ac_dir_suffix= ac_dots=
1739 fi
1740
1741 case "$ac_given_srcdir" in
1742 .) srcdir=.
1743 if test -z "$ac_dots"; then top_srcdir=.
1744 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1745 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1746 *) # Relative path.
1747 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1748 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1749 esac
1750
1751
1752 echo creating "$ac_file"
1753 rm -f "$ac_file"
1754 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1755 case "$ac_file" in
1756 *Makefile*) ac_comsub="1i\\
1757 # $configure_input" ;;
1758 *) ac_comsub= ;;
1759 esac
1760
1761 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1762 sed -e "$ac_comsub
1763 s%@configure_input@%$configure_input%g
1764 s%@srcdir@%$srcdir%g
1765 s%@top_srcdir@%$top_srcdir%g
1766 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1767 fi; done
1768 rm -f conftest.s*
1769
1770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1772 #
1773 # ac_d sets the value in "#define NAME VALUE" lines.
1774 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1775 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1776 ac_dC='\3'
1777 ac_dD='%g'
1778 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1779 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1780 ac_uB='\([ ]\)%\1#\2define\3'
1781 ac_uC=' '
1782 ac_uD='\4%g'
1783 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1784 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1785 ac_eB='$%\1#\2define\3'
1786 ac_eC=' '
1787 ac_eD='%g'
1788
1789 if test "${CONFIG_HEADERS+set}" != set; then
1790 EOF
1791 cat >> $CONFIG_STATUS <<EOF
1792 CONFIG_HEADERS="config.h"
1793 EOF
1794 cat >> $CONFIG_STATUS <<\EOF
1795 fi
1796 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1798 case "$ac_file" in
1799 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1800 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1801 *) ac_file_in="${ac_file}.in" ;;
1802 esac
1803
1804 echo creating $ac_file
1805
1806 rm -f conftest.frag conftest.in conftest.out
1807 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1808 cat $ac_file_inputs > conftest.in
1809
1810 EOF
1811
1812 # Transform confdefs.h into a sed script conftest.vals that substitutes
1813 # the proper values into config.h.in to produce config.h. And first:
1814 # Protect against being on the right side of a sed subst in config.status.
1815 # Protect against being in an unquoted here document in config.status.
1816 rm -f conftest.vals
1817 cat > conftest.hdr <<\EOF
1818 s/[\\&%]/\\&/g
1819 s%[\\$`]%\\&%g
1820 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1821 s%ac_d%ac_u%gp
1822 s%ac_u%ac_e%gp
1823 EOF
1824 sed -n -f conftest.hdr confdefs.h > conftest.vals
1825 rm -f conftest.hdr
1826
1827 # This sed command replaces #undef with comments. This is necessary, for
1828 # example, in the case of _POSIX_SOURCE, which is predefined and required
1829 # on some systems where configure will not decide to define it.
1830 cat >> conftest.vals <<\EOF
1831 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1832 EOF
1833
1834 # Break up conftest.vals because some shells have a limit on
1835 # the size of here documents, and old seds have small limits too.
1836
1837 rm -f conftest.tail
1838 while :
1839 do
1840 ac_lines=`grep -c . conftest.vals`
1841 # grep -c gives empty output for an empty file on some AIX systems.
1842 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1843 # Write a limited-size here document to conftest.frag.
1844 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1845 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1846 echo 'CEOF
1847 sed -f conftest.frag conftest.in > conftest.out
1848 rm -f conftest.in
1849 mv conftest.out conftest.in
1850 ' >> $CONFIG_STATUS
1851 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1852 rm -f conftest.vals
1853 mv conftest.tail conftest.vals
1854 done
1855 rm -f conftest.vals
1856
1857 cat >> $CONFIG_STATUS <<\EOF
1858 rm -f conftest.frag conftest.h
1859 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1860 cat conftest.in >> conftest.h
1861 rm -f conftest.in
1862 if cmp -s $ac_file conftest.h 2>/dev/null; then
1863 echo "$ac_file is unchanged"
1864 rm -f conftest.h
1865 else
1866 # Remove last slash and all that follows it. Not all systems have dirname.
1867 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1869 # The file is in a subdirectory.
1870 test ! -d "$ac_dir" && mkdir "$ac_dir"
1871 fi
1872 rm -f $ac_file
1873 mv conftest.h $ac_file
1874 fi
1875 fi; done
1876
1877 EOF
1878 cat >> $CONFIG_STATUS <<EOF
1879
1880 EOF
1881 cat >> $CONFIG_STATUS <<\EOF
1882
1883 exit 0
1884 EOF
1885 chmod +x $CONFIG_STATUS
1886 rm -fr confdefs* $ac_clean_files
1887 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1888