ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure
Revision: 1.5
Committed: Sun Mar 31 20:04:29 2002 UTC (22 years, 2 months ago) by root
Branch: MAIN
Changes since 1.4: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 root 1.4 # Generated by Autoconf 2.52.
4 root 1.1 #
5 root 1.4 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6     # Free Software Foundation, Inc.
7 root 1.1 # This configure script is free software; the Free Software Foundation
8     # gives unlimited permission to copy, distribute and modify it.
9    
10 root 1.4 # Avoid depending upon Character Ranges.
11     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14     as_cr_digits='0123456789'
15     as_cr_alnum=$as_cr_Letters$as_cr_digits
16    
17     # Sed expression to map a string onto a valid variable name.
18     as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19    
20     # Sed expression to map a string onto a valid CPP name.
21     as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22    
23     # Be Bourne compatible
24     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25     emulate sh
26     NULLCMD=:
27     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28     set -o posix
29     fi
30    
31     # Name of the executable.
32     as_me=`echo "$0" |sed 's,.*[\\/],,'`
33    
34     if expr a : '\(a\)' >/dev/null 2>&1; then
35     as_expr=expr
36     else
37     as_expr=false
38     fi
39    
40     rm -f conf$$ conf$$.exe conf$$.file
41     echo >conf$$.file
42     if ln -s conf$$.file conf$$ 2>/dev/null; then
43     # We could just check for DJGPP; but this test a) works b) is more generic
44     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45     if test -f conf$$.exe; then
46     # Don't use ln at all; we don't have any links
47     as_ln_s='cp -p'
48     else
49     as_ln_s='ln -s'
50     fi
51     elif ln conf$$.file conf$$ 2>/dev/null; then
52     as_ln_s=ln
53     else
54     as_ln_s='cp -p'
55     fi
56     rm -f conf$$ conf$$.exe conf$$.file
57    
58     as_executable_p="test -f"
59    
60     # Support unset when possible.
61     if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62     as_unset=unset
63     else
64     as_unset=false
65     fi
66    
67     # NLS nuisances.
68     $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69     $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70     $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71     $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72     $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73     $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74     $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75     $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76    
77     # IFS
78     # We need space, tab and new line, in precisely that order.
79     as_nl='
80     '
81     IFS=" $as_nl"
82    
83     # CDPATH.
84     $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85    
86     # Name of the host.
87     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88     # so uname gets run too.
89     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90    
91     exec 6>&1
92    
93     #
94     # Initializations.
95     #
96 root 1.1 ac_default_prefix=/usr/local
97 root 1.4 cross_compiling=no
98     subdirs=
99     MFLAGS= MAKEFLAGS=
100     SHELL=${CONFIG_SHELL-/bin/sh}
101    
102     # Maximum number of lines to put in a shell here document.
103     # This variable seems obsolete. It should probably be removed, and
104     # only ac_max_sed_lines should be used.
105     : ${ac_max_here_lines=38}
106    
107     ac_unique_file="uulib.c"
108     # Factoring default headers for most tests.
109     ac_includes_default="\
110     #include <stdio.h>
111     #if HAVE_SYS_TYPES_H
112     # include <sys/types.h>
113     #endif
114     #if HAVE_SYS_STAT_H
115     # include <sys/stat.h>
116     #endif
117     #if STDC_HEADERS
118     # include <stdlib.h>
119     # include <stddef.h>
120     #else
121     # if HAVE_STDLIB_H
122     # include <stdlib.h>
123     # endif
124     #endif
125     #if HAVE_STRING_H
126     # if !STDC_HEADERS && HAVE_MEMORY_H
127     # include <memory.h>
128     # endif
129     # include <string.h>
130     #endif
131     #if HAVE_STRINGS_H
132     # include <strings.h>
133     #endif
134     #if HAVE_INTTYPES_H
135     # include <inttypes.h>
136     #else
137     # if HAVE_STDINT_H
138     # include <stdint.h>
139     # endif
140     #endif
141     #if HAVE_UNISTD_H
142     # include <unistd.h>
143     #endif"
144 root 1.1
145     # Initialize some variables set by options.
146 root 1.4 ac_init_help=
147     ac_init_version=false
148 root 1.1 # The variables have the same names as the options, with
149     # dashes changed to underlines.
150 root 1.4 cache_file=/dev/null
151 root 1.1 exec_prefix=NONE
152     no_create=
153     no_recursion=
154     prefix=NONE
155     program_prefix=NONE
156     program_suffix=NONE
157     program_transform_name=s,x,x,
158     silent=
159     site=
160     srcdir=
161     verbose=
162     x_includes=NONE
163     x_libraries=NONE
164 root 1.4
165     # Installation directory options.
166     # These are left unexpanded so users can "make install exec_prefix=/foo"
167     # and all the variables that are supposed to be based on exec_prefix
168     # by default will actually change.
169     # Use braces instead of parens because sh, perl, etc. also accept them.
170 root 1.1 bindir='${exec_prefix}/bin'
171     sbindir='${exec_prefix}/sbin'
172     libexecdir='${exec_prefix}/libexec'
173     datadir='${prefix}/share'
174     sysconfdir='${prefix}/etc'
175     sharedstatedir='${prefix}/com'
176     localstatedir='${prefix}/var'
177     libdir='${exec_prefix}/lib'
178     includedir='${prefix}/include'
179     oldincludedir='/usr/include'
180     infodir='${prefix}/info'
181     mandir='${prefix}/man'
182    
183 root 1.4 # Identity of this package.
184     PACKAGE_NAME=
185     PACKAGE_TARNAME=
186     PACKAGE_VERSION=
187     PACKAGE_STRING=
188     PACKAGE_BUGREPORT=
189 root 1.1
190     ac_prev=
191     for ac_option
192     do
193     # If the previous option needs an argument, assign it.
194     if test -n "$ac_prev"; then
195     eval "$ac_prev=\$ac_option"
196     ac_prev=
197     continue
198     fi
199    
200 root 1.4 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201 root 1.1
202     # Accept the important Cygnus configure options, so we can diagnose typos.
203    
204 root 1.4 case $ac_option in
205 root 1.1
206     -bindir | --bindir | --bindi | --bind | --bin | --bi)
207     ac_prev=bindir ;;
208     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 root 1.4 bindir=$ac_optarg ;;
210 root 1.1
211     -build | --build | --buil | --bui | --bu)
212 root 1.4 ac_prev=build_alias ;;
213 root 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 root 1.4 build_alias=$ac_optarg ;;
215 root 1.1
216     -cache-file | --cache-file | --cache-fil | --cache-fi \
217     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218     ac_prev=cache_file ;;
219     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 root 1.4 cache_file=$ac_optarg ;;
222    
223     --config-cache | -C)
224     cache_file=config.cache ;;
225 root 1.1
226     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227     ac_prev=datadir ;;
228     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229     | --da=*)
230 root 1.4 datadir=$ac_optarg ;;
231 root 1.1
232     -disable-* | --disable-*)
233 root 1.4 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 root 1.1 # Reject names that are not valid shell variable names.
235 root 1.4 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237     { (exit 1); exit 1; }; }
238     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239     eval "enable_$ac_feature=no" ;;
240 root 1.1
241     -enable-* | --enable-*)
242 root 1.4 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 root 1.1 # Reject names that are not valid shell variable names.
244 root 1.4 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246     { (exit 1); exit 1; }; }
247     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248     case $ac_option in
249     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 root 1.1 *) ac_optarg=yes ;;
251     esac
252 root 1.4 eval "enable_$ac_feature='$ac_optarg'" ;;
253 root 1.1
254     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256     | --exec | --exe | --ex)
257     ac_prev=exec_prefix ;;
258     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260     | --exec=* | --exe=* | --ex=*)
261 root 1.4 exec_prefix=$ac_optarg ;;
262 root 1.1
263     -gas | --gas | --ga | --g)
264     # Obsolete; use --with-gas.
265     with_gas=yes ;;
266    
267 root 1.4 -help | --help | --hel | --he | -h)
268     ac_init_help=long ;;
269     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270     ac_init_help=recursive ;;
271     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272     ac_init_help=short ;;
273 root 1.1
274     -host | --host | --hos | --ho)
275 root 1.4 ac_prev=host_alias ;;
276 root 1.1 -host=* | --host=* | --hos=* | --ho=*)
277 root 1.4 host_alias=$ac_optarg ;;
278 root 1.1
279     -includedir | --includedir | --includedi | --included | --include \
280     | --includ | --inclu | --incl | --inc)
281     ac_prev=includedir ;;
282     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283     | --includ=* | --inclu=* | --incl=* | --inc=*)
284 root 1.4 includedir=$ac_optarg ;;
285 root 1.1
286     -infodir | --infodir | --infodi | --infod | --info | --inf)
287     ac_prev=infodir ;;
288     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 root 1.4 infodir=$ac_optarg ;;
290 root 1.1
291     -libdir | --libdir | --libdi | --libd)
292     ac_prev=libdir ;;
293     -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 root 1.4 libdir=$ac_optarg ;;
295 root 1.1
296     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297     | --libexe | --libex | --libe)
298     ac_prev=libexecdir ;;
299     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300     | --libexe=* | --libex=* | --libe=*)
301 root 1.4 libexecdir=$ac_optarg ;;
302 root 1.1
303     -localstatedir | --localstatedir | --localstatedi | --localstated \
304     | --localstate | --localstat | --localsta | --localst \
305     | --locals | --local | --loca | --loc | --lo)
306     ac_prev=localstatedir ;;
307     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 root 1.4 localstatedir=$ac_optarg ;;
311 root 1.1
312     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313     ac_prev=mandir ;;
314     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 root 1.4 mandir=$ac_optarg ;;
316 root 1.1
317     -nfp | --nfp | --nf)
318     # Obsolete; use --without-fp.
319     with_fp=no ;;
320    
321     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322     | --no-cr | --no-c)
323     no_create=yes ;;
324    
325     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327     no_recursion=yes ;;
328    
329     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331     | --oldin | --oldi | --old | --ol | --o)
332     ac_prev=oldincludedir ;;
333     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 root 1.4 oldincludedir=$ac_optarg ;;
337 root 1.1
338     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339     ac_prev=prefix ;;
340     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 root 1.4 prefix=$ac_optarg ;;
342 root 1.1
343     -program-prefix | --program-prefix | --program-prefi | --program-pref \
344     | --program-pre | --program-pr | --program-p)
345     ac_prev=program_prefix ;;
346     -program-prefix=* | --program-prefix=* | --program-prefi=* \
347     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 root 1.4 program_prefix=$ac_optarg ;;
349 root 1.1
350     -program-suffix | --program-suffix | --program-suffi | --program-suff \
351     | --program-suf | --program-su | --program-s)
352     ac_prev=program_suffix ;;
353     -program-suffix=* | --program-suffix=* | --program-suffi=* \
354     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 root 1.4 program_suffix=$ac_optarg ;;
356 root 1.1
357     -program-transform-name | --program-transform-name \
358     | --program-transform-nam | --program-transform-na \
359     | --program-transform-n | --program-transform- \
360     | --program-transform | --program-transfor \
361     | --program-transfo | --program-transf \
362     | --program-trans | --program-tran \
363     | --progr-tra | --program-tr | --program-t)
364     ac_prev=program_transform_name ;;
365     -program-transform-name=* | --program-transform-name=* \
366     | --program-transform-nam=* | --program-transform-na=* \
367     | --program-transform-n=* | --program-transform-=* \
368     | --program-transform=* | --program-transfor=* \
369     | --program-transfo=* | --program-transf=* \
370     | --program-trans=* | --program-tran=* \
371     | --progr-tra=* | --program-tr=* | --program-t=*)
372 root 1.4 program_transform_name=$ac_optarg ;;
373 root 1.1
374     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375     | -silent | --silent | --silen | --sile | --sil)
376     silent=yes ;;
377    
378     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379     ac_prev=sbindir ;;
380     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381     | --sbi=* | --sb=*)
382 root 1.4 sbindir=$ac_optarg ;;
383 root 1.1
384     -sharedstatedir | --sharedstatedir | --sharedstatedi \
385     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386     | --sharedst | --shareds | --shared | --share | --shar \
387     | --sha | --sh)
388     ac_prev=sharedstatedir ;;
389     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392     | --sha=* | --sh=*)
393 root 1.4 sharedstatedir=$ac_optarg ;;
394 root 1.1
395     -site | --site | --sit)
396     ac_prev=site ;;
397     -site=* | --site=* | --sit=*)
398 root 1.4 site=$ac_optarg ;;
399 root 1.1
400     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401     ac_prev=srcdir ;;
402     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 root 1.4 srcdir=$ac_optarg ;;
404 root 1.1
405     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406     | --syscon | --sysco | --sysc | --sys | --sy)
407     ac_prev=sysconfdir ;;
408     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 root 1.4 sysconfdir=$ac_optarg ;;
411 root 1.1
412     -target | --target | --targe | --targ | --tar | --ta | --t)
413 root 1.4 ac_prev=target_alias ;;
414 root 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 root 1.4 target_alias=$ac_optarg ;;
416 root 1.1
417     -v | -verbose | --verbose | --verbos | --verbo | --verb)
418     verbose=yes ;;
419    
420 root 1.4 -version | --version | --versio | --versi | --vers | -V)
421     ac_init_version=: ;;
422 root 1.1
423     -with-* | --with-*)
424 root 1.4 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 root 1.1 # Reject names that are not valid shell variable names.
426 root 1.4 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427     { echo "$as_me: error: invalid package name: $ac_package" >&2
428     { (exit 1); exit 1; }; }
429 root 1.1 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 root 1.4 case $ac_option in
431     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 root 1.1 *) ac_optarg=yes ;;
433     esac
434 root 1.4 eval "with_$ac_package='$ac_optarg'" ;;
435 root 1.1
436     -without-* | --without-*)
437 root 1.4 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 root 1.1 # Reject names that are not valid shell variable names.
439 root 1.4 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440     { echo "$as_me: error: invalid package name: $ac_package" >&2
441     { (exit 1); exit 1; }; }
442     ac_package=`echo $ac_package | sed 's/-/_/g'`
443     eval "with_$ac_package=no" ;;
444 root 1.1
445     --x)
446     # Obsolete; use --with-x.
447     with_x=yes ;;
448    
449     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450     | --x-incl | --x-inc | --x-in | --x-i)
451     ac_prev=x_includes ;;
452     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 root 1.4 x_includes=$ac_optarg ;;
455 root 1.1
456     -x-libraries | --x-libraries | --x-librarie | --x-librari \
457     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458     ac_prev=x_libraries ;;
459     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 root 1.4 x_libraries=$ac_optarg ;;
462 root 1.1
463 root 1.4 -*) { echo "$as_me: error: unrecognized option: $ac_option
464     Try \`$0 --help' for more information." >&2
465     { (exit 1); exit 1; }; }
466 root 1.1 ;;
467    
468 root 1.4 *=*)
469     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470     # Reject names that are not valid shell variable names.
471     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473     { (exit 1); exit 1; }; }
474     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475     eval "$ac_envvar='$ac_optarg'"
476     export $ac_envvar ;;
477    
478 root 1.1 *)
479 root 1.4 # FIXME: should be removed in autoconf 3.0.
480     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484 root 1.1 ;;
485    
486     esac
487     done
488    
489     if test -n "$ac_prev"; then
490 root 1.4 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491     { echo "$as_me: error: missing argument to $ac_option" >&2
492     { (exit 1); exit 1; }; }
493 root 1.1 fi
494    
495 root 1.4 # Be sure to have absolute paths.
496     for ac_var in exec_prefix prefix
497     do
498     eval ac_val=$`echo $ac_var`
499     case $ac_val in
500     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501     *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502     { (exit 1); exit 1; }; };;
503     esac
504     done
505 root 1.1
506 root 1.4 # Be sure to have absolute paths.
507     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508     localstatedir libdir includedir oldincludedir infodir mandir
509 root 1.1 do
510 root 1.4 eval ac_val=$`echo $ac_var`
511     case $ac_val in
512     [\\/$]* | ?:[\\/]* ) ;;
513     *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514     { (exit 1); exit 1; }; };;
515 root 1.1 esac
516     done
517    
518 root 1.4 # There might be people who depend on the old broken behavior: `$host'
519     # used to hold the argument of --host etc.
520     build=$build_alias
521     host=$host_alias
522     target=$target_alias
523    
524     # FIXME: should be removed in autoconf 3.0.
525     if test "x$host_alias" != x; then
526     if test "x$build_alias" = x; then
527     cross_compiling=maybe
528     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529     If a cross compiler is detected then cross compile mode will be used." >&2
530     elif test "x$build_alias" != "x$host_alias"; then
531     cross_compiling=yes
532     fi
533     fi
534 root 1.1
535 root 1.4 ac_tool_prefix=
536     test -n "$host_alias" && ac_tool_prefix=$host_alias-
537 root 1.1
538 root 1.4 test "$silent" = yes && exec 6>/dev/null
539 root 1.1
540     # Find the source files, if location was not specified.
541     if test -z "$srcdir"; then
542     ac_srcdir_defaulted=yes
543     # Try the directory containing this script, then its parent.
544     ac_prog=$0
545 root 1.4 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 root 1.1 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547     srcdir=$ac_confdir
548     if test ! -r $srcdir/$ac_unique_file; then
549     srcdir=..
550     fi
551     else
552     ac_srcdir_defaulted=no
553     fi
554     if test ! -r $srcdir/$ac_unique_file; then
555     if test "$ac_srcdir_defaulted" = yes; then
556 root 1.4 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557     { (exit 1); exit 1; }; }
558 root 1.1 else
559 root 1.4 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560     { (exit 1); exit 1; }; }
561 root 1.1 fi
562     fi
563 root 1.4 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564     ac_env_build_alias_set=${build_alias+set}
565     ac_env_build_alias_value=$build_alias
566     ac_cv_env_build_alias_set=${build_alias+set}
567     ac_cv_env_build_alias_value=$build_alias
568     ac_env_host_alias_set=${host_alias+set}
569     ac_env_host_alias_value=$host_alias
570     ac_cv_env_host_alias_set=${host_alias+set}
571     ac_cv_env_host_alias_value=$host_alias
572     ac_env_target_alias_set=${target_alias+set}
573     ac_env_target_alias_value=$target_alias
574     ac_cv_env_target_alias_set=${target_alias+set}
575     ac_cv_env_target_alias_value=$target_alias
576     ac_env_CC_set=${CC+set}
577     ac_env_CC_value=$CC
578     ac_cv_env_CC_set=${CC+set}
579     ac_cv_env_CC_value=$CC
580     ac_env_CFLAGS_set=${CFLAGS+set}
581     ac_env_CFLAGS_value=$CFLAGS
582     ac_cv_env_CFLAGS_set=${CFLAGS+set}
583     ac_cv_env_CFLAGS_value=$CFLAGS
584     ac_env_LDFLAGS_set=${LDFLAGS+set}
585     ac_env_LDFLAGS_value=$LDFLAGS
586     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587     ac_cv_env_LDFLAGS_value=$LDFLAGS
588     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589     ac_env_CPPFLAGS_value=$CPPFLAGS
590     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592     ac_env_CPP_set=${CPP+set}
593     ac_env_CPP_value=$CPP
594     ac_cv_env_CPP_set=${CPP+set}
595     ac_cv_env_CPP_value=$CPP
596    
597     #
598     # Report the --help message.
599     #
600     if test "$ac_init_help" = "long"; then
601     # Omit some internal or obsolete options to make the list less imposing.
602     # This message is too long to be a string in the A/UX 3.1 sh.
603     cat <<EOF
604     \`configure' configures this package to adapt to many kinds of systems.
605    
606     Usage: $0 [OPTION]... [VAR=VALUE]...
607    
608     To assign environment variables (e.g., CC, CFLAGS...), specify them as
609     VAR=VALUE. See below for descriptions of some of the useful variables.
610    
611     Defaults for the options are specified in brackets.
612    
613     Configuration:
614     -h, --help display this help and exit
615     --help=short display options specific to this package
616     --help=recursive display the short help of all the included packages
617     -V, --version display version information and exit
618     -q, --quiet, --silent do not print \`checking...' messages
619     --cache-file=FILE cache test results in FILE [disabled]
620     -C, --config-cache alias for \`--cache-file=config.cache'
621     -n, --no-create do not create output files
622     --srcdir=DIR find the sources in DIR [configure dir or \`..']
623    
624     EOF
625    
626     cat <<EOF
627     Installation directories:
628     --prefix=PREFIX install architecture-independent files in PREFIX
629     [$ac_default_prefix]
630     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631     [PREFIX]
632    
633     By default, \`make install' will install all the files in
634     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636     for instance \`--prefix=\$HOME'.
637    
638     For better control, use the options below.
639    
640     Fine tuning of the installation directories:
641     --bindir=DIR user executables [EPREFIX/bin]
642     --sbindir=DIR system admin executables [EPREFIX/sbin]
643     --libexecdir=DIR program executables [EPREFIX/libexec]
644     --datadir=DIR read-only architecture-independent data [PREFIX/share]
645     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648     --libdir=DIR object code libraries [EPREFIX/lib]
649     --includedir=DIR C header files [PREFIX/include]
650     --oldincludedir=DIR C header files for non-gcc [/usr/include]
651     --infodir=DIR info documentation [PREFIX/info]
652     --mandir=DIR man documentation [PREFIX/man]
653     EOF
654    
655     cat <<\EOF
656     EOF
657     fi
658    
659     if test -n "$ac_init_help"; then
660    
661     cat <<\EOF
662    
663     Optional Packages:
664     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
665     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
666    
667     Some influential environment variables:
668     CC C compiler command
669     CFLAGS C compiler flags
670     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
671     nonstandard directory <lib dir>
672     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
673     headers in a nonstandard directory <include dir>
674     CPP C preprocessor
675    
676     Use these variables to override the choices made by `configure' or to help
677     it to find libraries and programs with nonstandard names/locations.
678    
679     EOF
680     fi
681    
682     if test "$ac_init_help" = "recursive"; then
683     # If there are subdirs, report their specific --help.
684     ac_popdir=`pwd`
685     for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
686     cd $ac_subdir
687     # A "../" for each directory in /$ac_subdir.
688     ac_dots=`echo $ac_subdir |
689     sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690    
691     case $srcdir in
692     .) # No --srcdir option. We are building in place.
693     ac_sub_srcdir=$srcdir ;;
694     [\\/]* | ?:[\\/]* ) # Absolute path.
695     ac_sub_srcdir=$srcdir/$ac_subdir ;;
696     *) # Relative path.
697     ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698     esac
699    
700     # Check for guested configure; otherwise get Cygnus style configure.
701     if test -f $ac_sub_srcdir/configure.gnu; then
702     echo
703     $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
704     elif test -f $ac_sub_srcdir/configure; then
705     echo
706     $SHELL $ac_sub_srcdir/configure --help=recursive
707     elif test -f $ac_sub_srcdir/configure.ac ||
708     test -f $ac_sub_srcdir/configure.in; then
709     echo
710     $ac_configure --help
711     else
712     echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713     fi
714     cd $ac_popdir
715     done
716     fi
717    
718     test -n "$ac_init_help" && exit 0
719     if $ac_init_version; then
720     cat <<\EOF
721    
722     Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
723     Free Software Foundation, Inc.
724     This configure script is free software; the Free Software Foundation
725     gives unlimited permission to copy, distribute and modify it.
726     EOF
727     exit 0
728     fi
729     exec 5>config.log
730     cat >&5 <<EOF
731     This file contains any messages produced by compilers while
732     running configure, to aid debugging if configure makes a mistake.
733    
734     It was created by $as_me, which was
735     generated by GNU Autoconf 2.52. Invocation command line was
736    
737     $ $0 $@
738    
739     EOF
740     {
741     cat <<_ASUNAME
742     ## ---------- ##
743     ## Platform. ##
744     ## ---------- ##
745    
746     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
747     uname -m = `(uname -m) 2>/dev/null || echo unknown`
748     uname -r = `(uname -r) 2>/dev/null || echo unknown`
749     uname -s = `(uname -s) 2>/dev/null || echo unknown`
750     uname -v = `(uname -v) 2>/dev/null || echo unknown`
751    
752     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
753     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
754    
755     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
756     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
757     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
758     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
759     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
760     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
761     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
762    
763     PATH = $PATH
764    
765     _ASUNAME
766     } >&5
767 root 1.1
768 root 1.4 cat >&5 <<EOF
769     ## ------------ ##
770     ## Core tests. ##
771     ## ------------ ##
772    
773     EOF
774    
775     # Keep a trace of the command line.
776     # Strip out --no-create and --no-recursion so they do not pile up.
777     # Also quote any args containing shell meta-characters.
778     ac_configure_args=
779     ac_sep=
780     for ac_arg
781     do
782     case $ac_arg in
783     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
784     | --no-cr | --no-c) ;;
785     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
786     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
787     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
788     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
789     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
790     ac_sep=" " ;;
791     *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
792     ac_sep=" " ;;
793     esac
794     # Get rid of the leading space.
795     done
796    
797     # When interrupted or exit'd, cleanup temporary files, and complete
798     # config.log. We remove comments because anyway the quotes in there
799     # would cause problems or look ugly.
800     trap 'exit_status=$?
801     # Save into config.log some information that might help in debugging.
802     echo >&5
803     echo "## ----------------- ##" >&5
804     echo "## Cache variables. ##" >&5
805     echo "## ----------------- ##" >&5
806     echo >&5
807     # The following way of writing the cache mishandles newlines in values,
808     {
809     (set) 2>&1 |
810     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
811     *ac_space=\ *)
812     sed -n \
813     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
814     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
815     ;;
816     *)
817     sed -n \
818     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
819     ;;
820     esac;
821     } >&5
822     sed "/^$/d" confdefs.h >conftest.log
823     if test -s conftest.log; then
824     echo >&5
825     echo "## ------------ ##" >&5
826     echo "## confdefs.h. ##" >&5
827     echo "## ------------ ##" >&5
828     echo >&5
829     cat conftest.log >&5
830     fi
831     (echo; echo) >&5
832     test "$ac_signal" != 0 &&
833     echo "$as_me: caught signal $ac_signal" >&5
834     echo "$as_me: exit $exit_status" >&5
835     rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
836     exit $exit_status
837     ' 0
838     for ac_signal in 1 2 13 15; do
839     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
840     done
841     ac_signal=0
842    
843     # confdefs.h avoids OS command line length limits that DEFS can exceed.
844     rm -rf conftest* confdefs.h
845     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
846     echo >confdefs.h
847    
848     # Let the site file select an alternate cache file if it wants to.
849 root 1.1 # Prefer explicitly selected file to automatically selected ones.
850     if test -z "$CONFIG_SITE"; then
851     if test "x$prefix" != xNONE; then
852     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
853     else
854     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
855     fi
856     fi
857     for ac_site_file in $CONFIG_SITE; do
858     if test -r "$ac_site_file"; then
859 root 1.4 { echo "$as_me:859: loading site script $ac_site_file" >&5
860     echo "$as_me: loading site script $ac_site_file" >&6;}
861     cat "$ac_site_file" >&5
862 root 1.1 . "$ac_site_file"
863     fi
864     done
865    
866     if test -r "$cache_file"; then
867 root 1.4 # Some versions of bash will fail to source /dev/null (special
868     # files actually), so we avoid doing that.
869     if test -f "$cache_file"; then
870     { echo "$as_me:870: loading cache $cache_file" >&5
871     echo "$as_me: loading cache $cache_file" >&6;}
872     case $cache_file in
873     [\\/]* | ?:[\\/]* ) . $cache_file;;
874     *) . ./$cache_file;;
875     esac
876     fi
877 root 1.1 else
878 root 1.4 { echo "$as_me:878: creating cache $cache_file" >&5
879     echo "$as_me: creating cache $cache_file" >&6;}
880     >$cache_file
881     fi
882    
883     # Check that the precious variables saved in the cache have kept the same
884     # value.
885     ac_cache_corrupted=false
886     for ac_var in `(set) 2>&1 |
887     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
888     eval ac_old_set=\$ac_cv_env_${ac_var}_set
889     eval ac_new_set=\$ac_env_${ac_var}_set
890     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
891     eval ac_new_val="\$ac_env_${ac_var}_value"
892     case $ac_old_set,$ac_new_set in
893     set,)
894     { echo "$as_me:894: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
895     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
896     ac_cache_corrupted=: ;;
897     ,set)
898     { echo "$as_me:898: error: \`$ac_var' was not set in the previous run" >&5
899     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
900     ac_cache_corrupted=: ;;
901     ,);;
902     *)
903     if test "x$ac_old_val" != "x$ac_new_val"; then
904     { echo "$as_me:904: error: \`$ac_var' has changed since the previous run:" >&5
905     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
906     { echo "$as_me:906: former value: $ac_old_val" >&5
907     echo "$as_me: former value: $ac_old_val" >&2;}
908     { echo "$as_me:908: current value: $ac_new_val" >&5
909     echo "$as_me: current value: $ac_new_val" >&2;}
910     ac_cache_corrupted=:
911     fi;;
912     esac
913     # Pass precious variables to config.status. It doesn't matter if
914     # we pass some twice (in addition to the command line arguments).
915     if test "$ac_new_set" = set; then
916     case $ac_new_val in
917     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
918     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
919     ac_configure_args="$ac_configure_args '$ac_arg'"
920     ;;
921     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
922     ;;
923     esac
924     fi
925     done
926     if $ac_cache_corrupted; then
927     { echo "$as_me:927: error: changes in the environment can compromise the build" >&5
928     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
929     { { echo "$as_me:929: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
930     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
931     { (exit 1); exit 1; }; }
932 root 1.1 fi
933    
934     ac_ext=c
935     ac_cpp='$CPP $CPPFLAGS'
936 root 1.4 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
937     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
938     ac_compiler_gnu=$ac_cv_c_compiler_gnu
939    
940     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
941     *c*,-n*) ECHO_N= ECHO_C='
942     ' ECHO_T=' ' ;;
943     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
944     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
945     esac
946     echo "#! $SHELL" >conftest.sh
947     echo "exit 0" >>conftest.sh
948     chmod +x conftest.sh
949     if { (echo "$as_me:949: PATH=\".;.\"; conftest.sh") >&5
950     (PATH=".;."; conftest.sh) 2>&5
951     ac_status=$?
952     echo "$as_me:952: \$? = $ac_status" >&5
953     (exit $ac_status); }; then
954     ac_path_separator=';'
955 root 1.1 else
956 root 1.4 ac_path_separator=:
957 root 1.1 fi
958 root 1.4 PATH_SEPARATOR="$ac_path_separator"
959     rm -f conftest.sh
960 root 1.1
961 root 1.4 ac_config_headers="$ac_config_headers config.h"
962 root 1.1
963     #
964     # package revision
965     #
966     VERSION=0.5
967 root 1.5 PATCH=17
968 root 1.1
969     # Check whether --with-cc or --without-cc was given.
970     if test "${with_cc+set}" = set; then
971     withval="$with_cc"
972     CC=$with_cc
973 root 1.4 fi;
974 root 1.1
975     # Check whether --with-cflags or --without-cflags was given.
976     if test "${with_cflags+set}" = set; then
977     withval="$with_cflags"
978     CFLAGS=$with_cflags
979 root 1.4 fi;
980    
981     ac_ext=c
982     ac_cpp='$CPP $CPPFLAGS'
983     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
984     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
985     ac_compiler_gnu=$ac_cv_c_compiler_gnu
986     if test -n "$ac_tool_prefix"; then
987     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
988     set dummy ${ac_tool_prefix}gcc; ac_word=$2
989     echo "$as_me:989: checking for $ac_word" >&5
990     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
991     if test "${ac_cv_prog_CC+set}" = set; then
992     echo $ECHO_N "(cached) $ECHO_C" >&6
993     else
994     if test -n "$CC"; then
995     ac_cv_prog_CC="$CC" # Let the user override the test.
996     else
997     ac_save_IFS=$IFS; IFS=$ac_path_separator
998     ac_dummy="$PATH"
999     for ac_dir in $ac_dummy; do
1000     IFS=$ac_save_IFS
1001     test -z "$ac_dir" && ac_dir=.
1002     $as_executable_p "$ac_dir/$ac_word" || continue
1003     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1004     echo "$as_me:1004: found $ac_dir/$ac_word" >&5
1005     break
1006     done
1007    
1008     fi
1009     fi
1010     CC=$ac_cv_prog_CC
1011     if test -n "$CC"; then
1012     echo "$as_me:1012: result: $CC" >&5
1013     echo "${ECHO_T}$CC" >&6
1014     else
1015     echo "$as_me:1015: result: no" >&5
1016     echo "${ECHO_T}no" >&6
1017     fi
1018    
1019     fi
1020     if test -z "$ac_cv_prog_CC"; then
1021     ac_ct_CC=$CC
1022     # Extract the first word of "gcc", so it can be a program name with args.
1023     set dummy gcc; ac_word=$2
1024     echo "$as_me:1024: checking for $ac_word" >&5
1025     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1026     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1027     echo $ECHO_N "(cached) $ECHO_C" >&6
1028     else
1029     if test -n "$ac_ct_CC"; then
1030     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1031     else
1032     ac_save_IFS=$IFS; IFS=$ac_path_separator
1033     ac_dummy="$PATH"
1034     for ac_dir in $ac_dummy; do
1035     IFS=$ac_save_IFS
1036     test -z "$ac_dir" && ac_dir=.
1037     $as_executable_p "$ac_dir/$ac_word" || continue
1038     ac_cv_prog_ac_ct_CC="gcc"
1039     echo "$as_me:1039: found $ac_dir/$ac_word" >&5
1040     break
1041     done
1042    
1043     fi
1044     fi
1045     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1046     if test -n "$ac_ct_CC"; then
1047     echo "$as_me:1047: result: $ac_ct_CC" >&5
1048     echo "${ECHO_T}$ac_ct_CC" >&6
1049     else
1050     echo "$as_me:1050: result: no" >&5
1051     echo "${ECHO_T}no" >&6
1052 root 1.1 fi
1053    
1054 root 1.4 CC=$ac_ct_CC
1055     else
1056     CC="$ac_cv_prog_CC"
1057     fi
1058 root 1.1
1059 root 1.4 if test -z "$CC"; then
1060     if test -n "$ac_tool_prefix"; then
1061     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1062     set dummy ${ac_tool_prefix}cc; ac_word=$2
1063     echo "$as_me:1063: checking for $ac_word" >&5
1064     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1065     if test "${ac_cv_prog_CC+set}" = set; then
1066     echo $ECHO_N "(cached) $ECHO_C" >&6
1067 root 1.1 else
1068     if test -n "$CC"; then
1069     ac_cv_prog_CC="$CC" # Let the user override the test.
1070     else
1071 root 1.4 ac_save_IFS=$IFS; IFS=$ac_path_separator
1072     ac_dummy="$PATH"
1073     for ac_dir in $ac_dummy; do
1074     IFS=$ac_save_IFS
1075     test -z "$ac_dir" && ac_dir=.
1076     $as_executable_p "$ac_dir/$ac_word" || continue
1077     ac_cv_prog_CC="${ac_tool_prefix}cc"
1078     echo "$as_me:1078: found $ac_dir/$ac_word" >&5
1079     break
1080     done
1081    
1082 root 1.1 fi
1083     fi
1084 root 1.4 CC=$ac_cv_prog_CC
1085 root 1.1 if test -n "$CC"; then
1086 root 1.4 echo "$as_me:1086: result: $CC" >&5
1087     echo "${ECHO_T}$CC" >&6
1088     else
1089     echo "$as_me:1089: result: no" >&5
1090     echo "${ECHO_T}no" >&6
1091     fi
1092    
1093     fi
1094     if test -z "$ac_cv_prog_CC"; then
1095     ac_ct_CC=$CC
1096     # Extract the first word of "cc", so it can be a program name with args.
1097     set dummy cc; ac_word=$2
1098     echo "$as_me:1098: checking for $ac_word" >&5
1099     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1100     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1101     echo $ECHO_N "(cached) $ECHO_C" >&6
1102     else
1103     if test -n "$ac_ct_CC"; then
1104     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1105     else
1106     ac_save_IFS=$IFS; IFS=$ac_path_separator
1107     ac_dummy="$PATH"
1108     for ac_dir in $ac_dummy; do
1109     IFS=$ac_save_IFS
1110     test -z "$ac_dir" && ac_dir=.
1111     $as_executable_p "$ac_dir/$ac_word" || continue
1112     ac_cv_prog_ac_ct_CC="cc"
1113     echo "$as_me:1113: found $ac_dir/$ac_word" >&5
1114     break
1115     done
1116    
1117     fi
1118     fi
1119     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1120     if test -n "$ac_ct_CC"; then
1121     echo "$as_me:1121: result: $ac_ct_CC" >&5
1122     echo "${ECHO_T}$ac_ct_CC" >&6
1123     else
1124     echo "$as_me:1124: result: no" >&5
1125     echo "${ECHO_T}no" >&6
1126     fi
1127    
1128     CC=$ac_ct_CC
1129 root 1.1 else
1130 root 1.4 CC="$ac_cv_prog_CC"
1131 root 1.1 fi
1132    
1133 root 1.4 fi
1134 root 1.1 if test -z "$CC"; then
1135     # Extract the first word of "cc", so it can be a program name with args.
1136     set dummy cc; ac_word=$2
1137 root 1.4 echo "$as_me:1137: checking for $ac_word" >&5
1138     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1139     if test "${ac_cv_prog_CC+set}" = set; then
1140     echo $ECHO_N "(cached) $ECHO_C" >&6
1141 root 1.1 else
1142     if test -n "$CC"; then
1143     ac_cv_prog_CC="$CC" # Let the user override the test.
1144     else
1145     ac_prog_rejected=no
1146 root 1.4 ac_save_IFS=$IFS; IFS=$ac_path_separator
1147     ac_dummy="$PATH"
1148     for ac_dir in $ac_dummy; do
1149     IFS=$ac_save_IFS
1150     test -z "$ac_dir" && ac_dir=.
1151     $as_executable_p "$ac_dir/$ac_word" || continue
1152     if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1153     ac_prog_rejected=yes
1154     continue
1155     fi
1156     ac_cv_prog_CC="cc"
1157     echo "$as_me:1157: found $ac_dir/$ac_word" >&5
1158     break
1159     done
1160    
1161 root 1.1 if test $ac_prog_rejected = yes; then
1162     # We found a bogon in the path, so make sure we never use it.
1163     set dummy $ac_cv_prog_CC
1164     shift
1165 root 1.4 if test $# != 0; then
1166 root 1.1 # We chose a different compiler from the bogus one.
1167     # However, it has the same basename, so the bogon will be chosen
1168     # first if we set CC to just the basename; use the full file name.
1169     shift
1170 root 1.4 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1171 root 1.1 shift
1172     ac_cv_prog_CC="$@"
1173     fi
1174     fi
1175     fi
1176     fi
1177 root 1.4 CC=$ac_cv_prog_CC
1178 root 1.1 if test -n "$CC"; then
1179 root 1.4 echo "$as_me:1179: result: $CC" >&5
1180     echo "${ECHO_T}$CC" >&6
1181 root 1.1 else
1182 root 1.4 echo "$as_me:1182: result: no" >&5
1183     echo "${ECHO_T}no" >&6
1184 root 1.1 fi
1185    
1186 root 1.4 fi
1187     if test -z "$CC"; then
1188     if test -n "$ac_tool_prefix"; then
1189     for ac_prog in cl
1190     do
1191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1192     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1193     echo "$as_me:1193: checking for $ac_word" >&5
1194     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1195     if test "${ac_cv_prog_CC+set}" = set; then
1196     echo $ECHO_N "(cached) $ECHO_C" >&6
1197 root 1.1 else
1198     if test -n "$CC"; then
1199     ac_cv_prog_CC="$CC" # Let the user override the test.
1200     else
1201 root 1.4 ac_save_IFS=$IFS; IFS=$ac_path_separator
1202     ac_dummy="$PATH"
1203     for ac_dir in $ac_dummy; do
1204     IFS=$ac_save_IFS
1205     test -z "$ac_dir" && ac_dir=.
1206     $as_executable_p "$ac_dir/$ac_word" || continue
1207     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1208     echo "$as_me:1208: found $ac_dir/$ac_word" >&5
1209     break
1210     done
1211    
1212 root 1.1 fi
1213     fi
1214 root 1.4 CC=$ac_cv_prog_CC
1215 root 1.1 if test -n "$CC"; then
1216 root 1.4 echo "$as_me:1216: result: $CC" >&5
1217     echo "${ECHO_T}$CC" >&6
1218 root 1.1 else
1219 root 1.4 echo "$as_me:1219: result: no" >&5
1220     echo "${ECHO_T}no" >&6
1221     fi
1222    
1223     test -n "$CC" && break
1224     done
1225     fi
1226     if test -z "$CC"; then
1227     ac_ct_CC=$CC
1228     for ac_prog in cl
1229     do
1230     # Extract the first word of "$ac_prog", so it can be a program name with args.
1231     set dummy $ac_prog; ac_word=$2
1232     echo "$as_me:1232: checking for $ac_word" >&5
1233     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1234     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1235     echo $ECHO_N "(cached) $ECHO_C" >&6
1236     else
1237     if test -n "$ac_ct_CC"; then
1238     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1239     else
1240     ac_save_IFS=$IFS; IFS=$ac_path_separator
1241     ac_dummy="$PATH"
1242     for ac_dir in $ac_dummy; do
1243     IFS=$ac_save_IFS
1244     test -z "$ac_dir" && ac_dir=.
1245     $as_executable_p "$ac_dir/$ac_word" || continue
1246     ac_cv_prog_ac_ct_CC="$ac_prog"
1247     echo "$as_me:1247: found $ac_dir/$ac_word" >&5
1248     break
1249     done
1250    
1251 root 1.1 fi
1252 root 1.4 fi
1253     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1254     if test -n "$ac_ct_CC"; then
1255     echo "$as_me:1255: result: $ac_ct_CC" >&5
1256     echo "${ECHO_T}$ac_ct_CC" >&6
1257     else
1258     echo "$as_me:1258: result: no" >&5
1259     echo "${ECHO_T}no" >&6
1260 root 1.1 fi
1261    
1262 root 1.4 test -n "$ac_ct_CC" && break
1263     done
1264    
1265     CC=$ac_ct_CC
1266     fi
1267 root 1.1
1268 root 1.4 fi
1269 root 1.1
1270 root 1.4 test -z "$CC" && { { echo "$as_me:1270: error: no acceptable cc found in \$PATH" >&5
1271     echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1272     { (exit 1); exit 1; }; }
1273    
1274     # Provide some information about the compiler.
1275     echo "$as_me:1275:" \
1276     "checking for C compiler version" >&5
1277     ac_compiler=`set X $ac_compile; echo $2`
1278     { (eval echo "$as_me:1278: \"$ac_compiler --version </dev/null >&5\"") >&5
1279     (eval $ac_compiler --version </dev/null >&5) 2>&5
1280     ac_status=$?
1281     echo "$as_me:1281: \$? = $ac_status" >&5
1282     (exit $ac_status); }
1283     { (eval echo "$as_me:1283: \"$ac_compiler -v </dev/null >&5\"") >&5
1284     (eval $ac_compiler -v </dev/null >&5) 2>&5
1285     ac_status=$?
1286     echo "$as_me:1286: \$? = $ac_status" >&5
1287     (exit $ac_status); }
1288     { (eval echo "$as_me:1288: \"$ac_compiler -V </dev/null >&5\"") >&5
1289     (eval $ac_compiler -V </dev/null >&5) 2>&5
1290     ac_status=$?
1291     echo "$as_me:1291: \$? = $ac_status" >&5
1292     (exit $ac_status); }
1293 root 1.1
1294 root 1.4 cat >conftest.$ac_ext <<_ACEOF
1295     #line 1295 "configure"
1296 root 1.1 #include "confdefs.h"
1297    
1298 root 1.4 int
1299     main ()
1300     {
1301    
1302     ;
1303     return 0;
1304     }
1305     _ACEOF
1306     ac_clean_files_save=$ac_clean_files
1307     ac_clean_files="$ac_clean_files a.out a.exe"
1308     # Try to create an executable without -o first, disregard a.out.
1309     # It will help us diagnose broken compilers, and finding out an intuition
1310     # of exeext.
1311     echo "$as_me:1311: checking for C compiler default output" >&5
1312     echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1313     ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1314     if { (eval echo "$as_me:1314: \"$ac_link_default\"") >&5
1315     (eval $ac_link_default) 2>&5
1316     ac_status=$?
1317     echo "$as_me:1317: \$? = $ac_status" >&5
1318     (exit $ac_status); }; then
1319     # Find the output, starting from the most likely. This scheme is
1320     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1321     # resort.
1322     for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1323     ls a.out conftest 2>/dev/null;
1324     ls a.* conftest.* 2>/dev/null`; do
1325     case $ac_file in
1326     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1327     a.out ) # We found the default executable, but exeext='' is most
1328     # certainly right.
1329     break;;
1330     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1331     # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1332     export ac_cv_exeext
1333     break;;
1334     * ) break;;
1335     esac
1336     done
1337     else
1338     echo "$as_me: failed program was:" >&5
1339     cat conftest.$ac_ext >&5
1340     { { echo "$as_me:1340: error: C compiler cannot create executables" >&5
1341     echo "$as_me: error: C compiler cannot create executables" >&2;}
1342     { (exit 77); exit 77; }; }
1343     fi
1344    
1345     ac_exeext=$ac_cv_exeext
1346     echo "$as_me:1346: result: $ac_file" >&5
1347     echo "${ECHO_T}$ac_file" >&6
1348    
1349     # Check the compiler produces executables we can run. If not, either
1350     # the compiler is broken, or we cross compile.
1351     echo "$as_me:1351: checking whether the C compiler works" >&5
1352     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1353     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1354     # If not cross compiling, check that we can run a simple program.
1355     if test "$cross_compiling" != yes; then
1356     if { ac_try='./$ac_file'
1357     { (eval echo "$as_me:1357: \"$ac_try\"") >&5
1358     (eval $ac_try) 2>&5
1359     ac_status=$?
1360     echo "$as_me:1360: \$? = $ac_status" >&5
1361     (exit $ac_status); }; }; then
1362     cross_compiling=no
1363 root 1.1 else
1364 root 1.4 if test "$cross_compiling" = maybe; then
1365     cross_compiling=yes
1366     else
1367     { { echo "$as_me:1367: error: cannot run C compiled programs.
1368     If you meant to cross compile, use \`--host'." >&5
1369     echo "$as_me: error: cannot run C compiled programs.
1370     If you meant to cross compile, use \`--host'." >&2;}
1371     { (exit 1); exit 1; }; }
1372     fi
1373 root 1.1 fi
1374 root 1.4 fi
1375     echo "$as_me:1375: result: yes" >&5
1376     echo "${ECHO_T}yes" >&6
1377    
1378     rm -f a.out a.exe conftest$ac_cv_exeext
1379     ac_clean_files=$ac_clean_files_save
1380     # Check the compiler produces executables we can run. If not, either
1381     # the compiler is broken, or we cross compile.
1382     echo "$as_me:1382: checking whether we are cross compiling" >&5
1383     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1384     echo "$as_me:1384: result: $cross_compiling" >&5
1385     echo "${ECHO_T}$cross_compiling" >&6
1386    
1387     echo "$as_me:1387: checking for executable suffix" >&5
1388     echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1389     if { (eval echo "$as_me:1389: \"$ac_link\"") >&5
1390     (eval $ac_link) 2>&5
1391     ac_status=$?
1392     echo "$as_me:1392: \$? = $ac_status" >&5
1393     (exit $ac_status); }; then
1394     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1395     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1396     # work properly (i.e., refer to `conftest.exe'), while it won't with
1397     # `rm'.
1398     for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1399     case $ac_file in
1400     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1401     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1402     export ac_cv_exeext
1403     break;;
1404     * ) break;;
1405     esac
1406     done
1407 root 1.1 else
1408 root 1.4 { { echo "$as_me:1408: error: cannot compute EXEEXT: cannot compile and link" >&5
1409     echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1410     { (exit 1); exit 1; }; }
1411     fi
1412    
1413     rm -f conftest$ac_cv_exeext
1414     echo "$as_me:1414: result: $ac_cv_exeext" >&5
1415     echo "${ECHO_T}$ac_cv_exeext" >&6
1416    
1417     rm -f conftest.$ac_ext
1418     EXEEXT=$ac_cv_exeext
1419     ac_exeext=$EXEEXT
1420     echo "$as_me:1420: checking for object suffix" >&5
1421     echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1422     if test "${ac_cv_objext+set}" = set; then
1423     echo $ECHO_N "(cached) $ECHO_C" >&6
1424 root 1.1 else
1425 root 1.4 cat >conftest.$ac_ext <<_ACEOF
1426     #line 1426 "configure"
1427     #include "confdefs.h"
1428 root 1.1
1429 root 1.4 int
1430     main ()
1431     {
1432    
1433     ;
1434     return 0;
1435     }
1436     _ACEOF
1437     rm -f conftest.o conftest.obj
1438     if { (eval echo "$as_me:1438: \"$ac_compile\"") >&5
1439     (eval $ac_compile) 2>&5
1440     ac_status=$?
1441     echo "$as_me:1441: \$? = $ac_status" >&5
1442     (exit $ac_status); }; then
1443     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1444     case $ac_file in
1445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1446     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1447     break;;
1448     esac
1449     done
1450 root 1.1 else
1451 root 1.4 echo "$as_me: failed program was:" >&5
1452     cat conftest.$ac_ext >&5
1453     { { echo "$as_me:1453: error: cannot compute OBJEXT: cannot compile" >&5
1454     echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1455     { (exit 1); exit 1; }; }
1456     fi
1457    
1458     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1459     fi
1460     echo "$as_me:1460: result: $ac_cv_objext" >&5
1461     echo "${ECHO_T}$ac_cv_objext" >&6
1462     OBJEXT=$ac_cv_objext
1463     ac_objext=$OBJEXT
1464     echo "$as_me:1464: checking whether we are using the GNU C compiler" >&5
1465     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1466     if test "${ac_cv_c_compiler_gnu+set}" = set; then
1467     echo $ECHO_N "(cached) $ECHO_C" >&6
1468     else
1469     cat >conftest.$ac_ext <<_ACEOF
1470     #line 1470 "configure"
1471     #include "confdefs.h"
1472    
1473     int
1474     main ()
1475     {
1476     #ifndef __GNUC__
1477     choke me
1478     #endif
1479 root 1.1
1480 root 1.4 ;
1481     return 0;
1482     }
1483     _ACEOF
1484     rm -f conftest.$ac_objext
1485     if { (eval echo "$as_me:1485: \"$ac_compile\"") >&5
1486     (eval $ac_compile) 2>&5
1487     ac_status=$?
1488     echo "$as_me:1488: \$? = $ac_status" >&5
1489     (exit $ac_status); } &&
1490     { ac_try='test -s conftest.$ac_objext'
1491     { (eval echo "$as_me:1491: \"$ac_try\"") >&5
1492     (eval $ac_try) 2>&5
1493     ac_status=$?
1494     echo "$as_me:1494: \$? = $ac_status" >&5
1495     (exit $ac_status); }; }; then
1496     ac_compiler_gnu=yes
1497     else
1498     echo "$as_me: failed program was:" >&5
1499     cat conftest.$ac_ext >&5
1500     ac_compiler_gnu=no
1501     fi
1502     rm -f conftest.$ac_objext conftest.$ac_ext
1503     ac_cv_c_compiler_gnu=$ac_compiler_gnu
1504    
1505     fi
1506     echo "$as_me:1506: result: $ac_cv_c_compiler_gnu" >&5
1507     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1508     GCC=`test $ac_compiler_gnu = yes && echo yes`
1509     ac_test_CFLAGS=${CFLAGS+set}
1510     ac_save_CFLAGS=$CFLAGS
1511     CFLAGS="-g"
1512     echo "$as_me:1512: checking whether $CC accepts -g" >&5
1513     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1514     if test "${ac_cv_prog_cc_g+set}" = set; then
1515     echo $ECHO_N "(cached) $ECHO_C" >&6
1516 root 1.1 else
1517 root 1.4 cat >conftest.$ac_ext <<_ACEOF
1518     #line 1518 "configure"
1519     #include "confdefs.h"
1520    
1521     int
1522     main ()
1523     {
1524    
1525     ;
1526     return 0;
1527     }
1528     _ACEOF
1529     rm -f conftest.$ac_objext
1530     if { (eval echo "$as_me:1530: \"$ac_compile\"") >&5
1531     (eval $ac_compile) 2>&5
1532     ac_status=$?
1533     echo "$as_me:1533: \$? = $ac_status" >&5
1534     (exit $ac_status); } &&
1535     { ac_try='test -s conftest.$ac_objext'
1536     { (eval echo "$as_me:1536: \"$ac_try\"") >&5
1537     (eval $ac_try) 2>&5
1538     ac_status=$?
1539     echo "$as_me:1539: \$? = $ac_status" >&5
1540     (exit $ac_status); }; }; then
1541 root 1.1 ac_cv_prog_cc_g=yes
1542     else
1543 root 1.4 echo "$as_me: failed program was:" >&5
1544     cat conftest.$ac_ext >&5
1545     ac_cv_prog_cc_g=no
1546 root 1.1 fi
1547 root 1.4 rm -f conftest.$ac_objext conftest.$ac_ext
1548 root 1.1 fi
1549 root 1.4 echo "$as_me:1549: result: $ac_cv_prog_cc_g" >&5
1550     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1551 root 1.1 if test "$ac_test_CFLAGS" = set; then
1552 root 1.4 CFLAGS=$ac_save_CFLAGS
1553 root 1.1 elif test $ac_cv_prog_cc_g = yes; then
1554     if test "$GCC" = yes; then
1555     CFLAGS="-g -O2"
1556     else
1557     CFLAGS="-g"
1558     fi
1559     else
1560     if test "$GCC" = yes; then
1561     CFLAGS="-O2"
1562     else
1563     CFLAGS=
1564     fi
1565     fi
1566 root 1.4 # Some people use a C++ compiler to compile C. Since we use `exit',
1567     # in C++ we need to declare it. In case someone uses the same compiler
1568     # for both compiling C and C++ we need to have the C++ compiler decide
1569     # the declaration of exit, since it's the most demanding environment.
1570     cat >conftest.$ac_ext <<_ACEOF
1571     #ifndef __cplusplus
1572     choke me
1573     #endif
1574     _ACEOF
1575     rm -f conftest.$ac_objext
1576     if { (eval echo "$as_me:1576: \"$ac_compile\"") >&5
1577     (eval $ac_compile) 2>&5
1578     ac_status=$?
1579     echo "$as_me:1579: \$? = $ac_status" >&5
1580     (exit $ac_status); } &&
1581     { ac_try='test -s conftest.$ac_objext'
1582     { (eval echo "$as_me:1582: \"$ac_try\"") >&5
1583     (eval $ac_try) 2>&5
1584     ac_status=$?
1585     echo "$as_me:1585: \$? = $ac_status" >&5
1586     (exit $ac_status); }; }; then
1587     for ac_declaration in \
1588     ''\
1589     '#include <stdlib.h>' \
1590     'extern "C" void std::exit (int) throw (); using std::exit;' \
1591     'extern "C" void std::exit (int); using std::exit;' \
1592     'extern "C" void exit (int) throw ();' \
1593     'extern "C" void exit (int);' \
1594     'void exit (int);'
1595     do
1596     cat >conftest.$ac_ext <<_ACEOF
1597     #line 1597 "configure"
1598     #include "confdefs.h"
1599     #include <stdlib.h>
1600     $ac_declaration
1601     int
1602     main ()
1603     {
1604     exit (42);
1605     ;
1606     return 0;
1607     }
1608     _ACEOF
1609     rm -f conftest.$ac_objext
1610     if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5
1611     (eval $ac_compile) 2>&5
1612     ac_status=$?
1613     echo "$as_me:1613: \$? = $ac_status" >&5
1614     (exit $ac_status); } &&
1615     { ac_try='test -s conftest.$ac_objext'
1616     { (eval echo "$as_me:1616: \"$ac_try\"") >&5
1617     (eval $ac_try) 2>&5
1618     ac_status=$?
1619     echo "$as_me:1619: \$? = $ac_status" >&5
1620     (exit $ac_status); }; }; then
1621     :
1622     else
1623     echo "$as_me: failed program was:" >&5
1624     cat conftest.$ac_ext >&5
1625     continue
1626     fi
1627     rm -f conftest.$ac_objext conftest.$ac_ext
1628     cat >conftest.$ac_ext <<_ACEOF
1629     #line 1629 "configure"
1630     #include "confdefs.h"
1631     $ac_declaration
1632     int
1633     main ()
1634     {
1635     exit (42);
1636     ;
1637     return 0;
1638     }
1639     _ACEOF
1640     rm -f conftest.$ac_objext
1641     if { (eval echo "$as_me:1641: \"$ac_compile\"") >&5
1642     (eval $ac_compile) 2>&5
1643     ac_status=$?
1644     echo "$as_me:1644: \$? = $ac_status" >&5
1645     (exit $ac_status); } &&
1646     { ac_try='test -s conftest.$ac_objext'
1647     { (eval echo "$as_me:1647: \"$ac_try\"") >&5
1648     (eval $ac_try) 2>&5
1649     ac_status=$?
1650     echo "$as_me:1650: \$? = $ac_status" >&5
1651     (exit $ac_status); }; }; then
1652     break
1653     else
1654     echo "$as_me: failed program was:" >&5
1655     cat conftest.$ac_ext >&5
1656     fi
1657     rm -f conftest.$ac_objext conftest.$ac_ext
1658     done
1659     rm -f conftest*
1660     if test -n "$ac_declaration"; then
1661     echo '#ifdef __cplusplus' >>confdefs.h
1662     echo $ac_declaration >>confdefs.h
1663     echo '#endif' >>confdefs.h
1664     fi
1665 root 1.1
1666 root 1.4 else
1667     echo "$as_me: failed program was:" >&5
1668     cat conftest.$ac_ext >&5
1669     fi
1670     rm -f conftest.$ac_objext conftest.$ac_ext
1671     ac_ext=c
1672     ac_cpp='$CPP $CPPFLAGS'
1673     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1674     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1675     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1676    
1677     ac_ext=c
1678     ac_cpp='$CPP $CPPFLAGS'
1679     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1680     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1681     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1682     echo "$as_me:1682: checking how to run the C preprocessor" >&5
1683     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1684 root 1.1 # On Suns, sometimes $CPP names a directory.
1685     if test -n "$CPP" && test -d "$CPP"; then
1686     CPP=
1687     fi
1688     if test -z "$CPP"; then
1689 root 1.4 if test "${ac_cv_prog_CPP+set}" = set; then
1690     echo $ECHO_N "(cached) $ECHO_C" >&6
1691 root 1.1 else
1692 root 1.4 # Double quotes because CPP needs to be expanded
1693     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1694     do
1695     ac_preproc_ok=false
1696     for ac_c_preproc_warn_flag in '' yes
1697     do
1698     # Use a header file that comes with gcc, so configuring glibc
1699     # with a fresh cross-compiler works.
1700 root 1.1 # On the NeXT, cc -E runs the code through the compiler's parser,
1701 root 1.4 # not just through cpp. "Syntax error" is here to catch this case.
1702     cat >conftest.$ac_ext <<_ACEOF
1703     #line 1703 "configure"
1704 root 1.1 #include "confdefs.h"
1705     #include <assert.h>
1706 root 1.4 Syntax error
1707     _ACEOF
1708     if { (eval echo "$as_me:1708: \"$ac_cpp conftest.$ac_ext\"") >&5
1709     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1710     ac_status=$?
1711     egrep -v '^ *\+' conftest.er1 >conftest.err
1712     rm -f conftest.er1
1713     cat conftest.err >&5
1714     echo "$as_me:1714: \$? = $ac_status" >&5
1715     (exit $ac_status); } >/dev/null; then
1716     if test -s conftest.err; then
1717     ac_cpp_err=$ac_c_preproc_warn_flag
1718     else
1719     ac_cpp_err=
1720     fi
1721     else
1722     ac_cpp_err=yes
1723     fi
1724     if test -z "$ac_cpp_err"; then
1725 root 1.1 :
1726     else
1727 root 1.4 echo "$as_me: failed program was:" >&5
1728 root 1.1 cat conftest.$ac_ext >&5
1729 root 1.4 # Broken: fails on valid input.
1730     continue
1731     fi
1732     rm -f conftest.err conftest.$ac_ext
1733    
1734     # OK, works on sane cases. Now check whether non-existent headers
1735     # can be detected and how.
1736     cat >conftest.$ac_ext <<_ACEOF
1737     #line 1737 "configure"
1738 root 1.1 #include "confdefs.h"
1739 root 1.4 #include <ac_nonexistent.h>
1740     _ACEOF
1741     if { (eval echo "$as_me:1741: \"$ac_cpp conftest.$ac_ext\"") >&5
1742     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1743     ac_status=$?
1744     egrep -v '^ *\+' conftest.er1 >conftest.err
1745     rm -f conftest.er1
1746     cat conftest.err >&5
1747     echo "$as_me:1747: \$? = $ac_status" >&5
1748     (exit $ac_status); } >/dev/null; then
1749     if test -s conftest.err; then
1750     ac_cpp_err=$ac_c_preproc_warn_flag
1751     else
1752     ac_cpp_err=
1753     fi
1754     else
1755     ac_cpp_err=yes
1756     fi
1757     if test -z "$ac_cpp_err"; then
1758     # Broken: success on invalid input.
1759     continue
1760 root 1.1 else
1761 root 1.4 echo "$as_me: failed program was:" >&5
1762 root 1.1 cat conftest.$ac_ext >&5
1763 root 1.4 # Passes both tests.
1764     ac_preproc_ok=:
1765     break
1766     fi
1767     rm -f conftest.err conftest.$ac_ext
1768    
1769     done
1770     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1771     rm -f conftest.err conftest.$ac_ext
1772     if $ac_preproc_ok; then
1773     break
1774     fi
1775    
1776     done
1777     ac_cv_prog_CPP=$CPP
1778    
1779     fi
1780     CPP=$ac_cv_prog_CPP
1781     else
1782     ac_cv_prog_CPP=$CPP
1783     fi
1784     echo "$as_me:1784: result: $CPP" >&5
1785     echo "${ECHO_T}$CPP" >&6
1786     ac_preproc_ok=false
1787     for ac_c_preproc_warn_flag in '' yes
1788     do
1789     # Use a header file that comes with gcc, so configuring glibc
1790     # with a fresh cross-compiler works.
1791     # On the NeXT, cc -E runs the code through the compiler's parser,
1792     # not just through cpp. "Syntax error" is here to catch this case.
1793     cat >conftest.$ac_ext <<_ACEOF
1794     #line 1794 "configure"
1795 root 1.1 #include "confdefs.h"
1796     #include <assert.h>
1797 root 1.4 Syntax error
1798     _ACEOF
1799     if { (eval echo "$as_me:1799: \"$ac_cpp conftest.$ac_ext\"") >&5
1800     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1801     ac_status=$?
1802     egrep -v '^ *\+' conftest.er1 >conftest.err
1803     rm -f conftest.er1
1804     cat conftest.err >&5
1805     echo "$as_me:1805: \$? = $ac_status" >&5
1806     (exit $ac_status); } >/dev/null; then
1807     if test -s conftest.err; then
1808     ac_cpp_err=$ac_c_preproc_warn_flag
1809     else
1810     ac_cpp_err=
1811     fi
1812     else
1813     ac_cpp_err=yes
1814     fi
1815     if test -z "$ac_cpp_err"; then
1816 root 1.1 :
1817     else
1818 root 1.4 echo "$as_me: failed program was:" >&5
1819 root 1.1 cat conftest.$ac_ext >&5
1820 root 1.4 # Broken: fails on valid input.
1821     continue
1822 root 1.1 fi
1823 root 1.4 rm -f conftest.err conftest.$ac_ext
1824    
1825     # OK, works on sane cases. Now check whether non-existent headers
1826     # can be detected and how.
1827     cat >conftest.$ac_ext <<_ACEOF
1828     #line 1828 "configure"
1829     #include "confdefs.h"
1830     #include <ac_nonexistent.h>
1831     _ACEOF
1832     if { (eval echo "$as_me:1832: \"$ac_cpp conftest.$ac_ext\"") >&5
1833     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1834     ac_status=$?
1835     egrep -v '^ *\+' conftest.er1 >conftest.err
1836     rm -f conftest.er1
1837     cat conftest.err >&5
1838     echo "$as_me:1838: \$? = $ac_status" >&5
1839     (exit $ac_status); } >/dev/null; then
1840     if test -s conftest.err; then
1841     ac_cpp_err=$ac_c_preproc_warn_flag
1842     else
1843     ac_cpp_err=
1844     fi
1845     else
1846     ac_cpp_err=yes
1847 root 1.1 fi
1848 root 1.4 if test -z "$ac_cpp_err"; then
1849     # Broken: success on invalid input.
1850     continue
1851     else
1852     echo "$as_me: failed program was:" >&5
1853     cat conftest.$ac_ext >&5
1854     # Passes both tests.
1855     ac_preproc_ok=:
1856     break
1857 root 1.1 fi
1858 root 1.4 rm -f conftest.err conftest.$ac_ext
1859    
1860     done
1861     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1862     rm -f conftest.err conftest.$ac_ext
1863     if $ac_preproc_ok; then
1864     :
1865 root 1.1 else
1866 root 1.4 { { echo "$as_me:1866: error: C preprocessor \"$CPP\" fails sanity check" >&5
1867     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1868     { (exit 1); exit 1; }; }
1869 root 1.1 fi
1870    
1871 root 1.4 ac_ext=c
1872     ac_cpp='$CPP $CPPFLAGS'
1873     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 root 1.1
1877 root 1.4 echo "$as_me:1877: checking if HP-UX ansi C compiler flags are needed" >&5
1878     echo $ECHO_N "checking if HP-UX ansi C compiler flags are needed... $ECHO_C" >&6
1879 root 1.1
1880     os=`uname -s | tr 'A-Z' 'a-z'`
1881     ac_cv_hpux_flags=no
1882     if test "$os" = hp-ux ; then
1883 root 1.4 if test "$ac_cv_c_compiler_gnu" = yes ; then
1884 root 1.1 if test "$CFLAGS" != "" ; then
1885     # Shouldn't be in there.
1886     CFLAGS=`echo "$CFLAGS" | sed 's/-Aa//g'`
1887     fi
1888     else
1889     # If you're not using gcc, then you better have a cc/c89
1890     # that is usable. If you have the barebones compiler, it
1891     # won't work. The good compiler uses -Aa for the ANSI
1892     # compatible stuff.
1893     x=`echo $CFLAGS | grep 'Aa' 2>/dev/null`
1894     if test "$x" = "" ; then
1895     CFLAGS="$CFLAGS -Aa"
1896     fi
1897     ac_cv_hpux_flags=yes
1898     fi
1899     # Also add _HPUX_SOURCE to get the extended namespace.
1900     x=`echo $CFLAGS | grep '_HPUX_SOURCE' 2>/dev/null`
1901     if test "$x" = "" ; then
1902     CFLAGS="$CFLAGS -D_HPUX_SOURCE"
1903     fi
1904     fi
1905 root 1.4 echo "$as_me:1905: result: $ac_cv_hpux_flags" >&5
1906     echo "${ECHO_T}$ac_cv_hpux_flags" >&6
1907 root 1.1
1908     if test "$CFLAGS" = "" ; then
1909     CFLAGS="-O"
1910 root 1.4 elif test "$ac_cv_c_compiler_gnu" = "yes" ; then
1911 root 1.1 case "$CFLAGS" in
1912     *"-g -O"*)
1913     #echo "using -g as default gcc CFLAGS" 1>&6
1914     CFLAGS=`echo $CFLAGS | sed 's/-g\ -O/-O/'`
1915     ;;
1916     *"-O -g"*)
1917     # Leave the -g, but remove all -O options.
1918     #echo "using -g as default gcc CFLAGS" 1>&6
1919     CFLAGS=`echo $CFLAGS | sed 's/-O\ -g/-O/'`
1920     ;;
1921     esac
1922     fi
1923    
1924 root 1.4 echo "$as_me:1924: checking if the compiler supports function prototypes" >&5
1925     echo $ECHO_N "checking if the compiler supports function prototypes... $ECHO_C" >&6
1926     cat >conftest.$ac_ext <<_ACEOF
1927     #line 1927 "configure"
1928 root 1.1 #include "confdefs.h"
1929    
1930 root 1.4 int
1931     main ()
1932     {
1933 root 1.1 extern void exit(int status);
1934 root 1.4 ;
1935     return 0;
1936     }
1937     _ACEOF
1938     rm -f conftest.$ac_objext
1939     if { (eval echo "$as_me:1939: \"$ac_compile\"") >&5
1940     (eval $ac_compile) 2>&5
1941     ac_status=$?
1942     echo "$as_me:1942: \$? = $ac_status" >&5
1943     (exit $ac_status); } &&
1944     { ac_try='test -s conftest.$ac_objext'
1945     { (eval echo "$as_me:1945: \"$ac_try\"") >&5
1946     (eval $ac_try) 2>&5
1947     ac_status=$?
1948     echo "$as_me:1948: \$? = $ac_status" >&5
1949     (exit $ac_status); }; }; then
1950 root 1.1 wi_cv_prototypes=yes
1951 root 1.4 cat >>confdefs.h <<\EOF
1952 root 1.1 #define PROTOTYPES 1
1953     EOF
1954    
1955     else
1956 root 1.4 echo "$as_me: failed program was:" >&5
1957     cat conftest.$ac_ext >&5
1958     wi_cv_prototypes=no
1959     fi
1960     rm -f conftest.$ac_objext conftest.$ac_ext
1961     echo "$as_me:1961: result: $wi_cv_prototypes" >&5
1962     echo "${ECHO_T}$wi_cv_prototypes" >&6
1963    
1964     echo "$as_me:1964: checking whether ${MAKE-make} sets \${MAKE}" >&5
1965     echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1966     set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1967     if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1968     echo $ECHO_N "(cached) $ECHO_C" >&6
1969 root 1.1 else
1970 root 1.4 cat >conftest.make <<\EOF
1971 root 1.1 all:
1972     @echo 'ac_maketemp="${MAKE}"'
1973     EOF
1974     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1975 root 1.4 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1976 root 1.1 if test -n "$ac_maketemp"; then
1977     eval ac_cv_prog_make_${ac_make}_set=yes
1978     else
1979     eval ac_cv_prog_make_${ac_make}_set=no
1980     fi
1981 root 1.4 rm -f conftest.make
1982 root 1.1 fi
1983     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1984 root 1.4 echo "$as_me:1984: result: yes" >&5
1985     echo "${ECHO_T}yes" >&6
1986 root 1.1 SET_MAKE=
1987     else
1988 root 1.4 echo "$as_me:1988: result: no" >&5
1989     echo "${ECHO_T}no" >&6
1990 root 1.1 SET_MAKE="MAKE=${MAKE-make}"
1991     fi
1992    
1993 root 1.4 if test -n "$ac_tool_prefix"; then
1994     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1995     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1996     echo "$as_me:1996: checking for $ac_word" >&5
1997     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998     if test "${ac_cv_prog_RANLIB+set}" = set; then
1999     echo $ECHO_N "(cached) $ECHO_C" >&6
2000 root 1.1 else
2001     if test -n "$RANLIB"; then
2002     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2003     else
2004 root 1.4 ac_save_IFS=$IFS; IFS=$ac_path_separator
2005     ac_dummy="$PATH"
2006     for ac_dir in $ac_dummy; do
2007     IFS=$ac_save_IFS
2008     test -z "$ac_dir" && ac_dir=.
2009     $as_executable_p "$ac_dir/$ac_word" || continue
2010     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2011     echo "$as_me:2011: found $ac_dir/$ac_word" >&5
2012     break
2013     done
2014    
2015 root 1.1 fi
2016     fi
2017 root 1.4 RANLIB=$ac_cv_prog_RANLIB
2018 root 1.1 if test -n "$RANLIB"; then
2019 root 1.4 echo "$as_me:2019: result: $RANLIB" >&5
2020     echo "${ECHO_T}$RANLIB" >&6
2021     else
2022     echo "$as_me:2022: result: no" >&5
2023     echo "${ECHO_T}no" >&6
2024     fi
2025    
2026     fi
2027     if test -z "$ac_cv_prog_RANLIB"; then
2028     ac_ct_RANLIB=$RANLIB
2029     # Extract the first word of "ranlib", so it can be a program name with args.
2030     set dummy ranlib; ac_word=$2
2031     echo "$as_me:2031: checking for $ac_word" >&5
2032     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2034     echo $ECHO_N "(cached) $ECHO_C" >&6
2035     else
2036     if test -n "$ac_ct_RANLIB"; then
2037     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2038     else
2039     ac_save_IFS=$IFS; IFS=$ac_path_separator
2040     ac_dummy="$PATH"
2041     for ac_dir in $ac_dummy; do
2042     IFS=$ac_save_IFS
2043     test -z "$ac_dir" && ac_dir=.
2044     $as_executable_p "$ac_dir/$ac_word" || continue
2045     ac_cv_prog_ac_ct_RANLIB="ranlib"
2046     echo "$as_me:2046: found $ac_dir/$ac_word" >&5
2047     break
2048     done
2049    
2050     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2051     fi
2052     fi
2053     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2054     if test -n "$ac_ct_RANLIB"; then
2055     echo "$as_me:2055: result: $ac_ct_RANLIB" >&5
2056     echo "${ECHO_T}$ac_ct_RANLIB" >&6
2057 root 1.1 else
2058 root 1.4 echo "$as_me:2058: result: no" >&5
2059     echo "${ECHO_T}no" >&6
2060 root 1.1 fi
2061    
2062 root 1.4 RANLIB=$ac_ct_RANLIB
2063     else
2064     RANLIB="$ac_cv_prog_RANLIB"
2065     fi
2066 root 1.1
2067     if test "$wi_cv_prototypes" = no ; then
2068 root 1.4 { echo "$as_me:2068: WARNING: Your compiler does not support function prototyping and" >&5
2069     echo "$as_me: WARNING: Your compiler does not support function prototyping and" >&2;}
2070     { echo "$as_me:2070: WARNING: is not able to properly compile this package. What a pity." >&5
2071     echo "$as_me: WARNING: is not able to properly compile this package. What a pity." >&2;}
2072     { echo "$as_me:2072: WARNING: Get gcc, or any compiler that supports function prototypes." >&5
2073     echo "$as_me: WARNING: Get gcc, or any compiler that supports function prototypes." >&2;}
2074 root 1.1 exit 1
2075     fi
2076    
2077     #
2078     # Checks for header files and library functions
2079     #
2080    
2081 root 1.4 echo "$as_me:2081: checking for ANSI C header files" >&5
2082     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2083     if test "${ac_cv_header_stdc+set}" = set; then
2084     echo $ECHO_N "(cached) $ECHO_C" >&6
2085 root 1.1 else
2086 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2087     #line 2087 "configure"
2088 root 1.1 #include "confdefs.h"
2089     #include <stdlib.h>
2090     #include <stdarg.h>
2091     #include <string.h>
2092     #include <float.h>
2093 root 1.4
2094     _ACEOF
2095     if { (eval echo "$as_me:2095: \"$ac_cpp conftest.$ac_ext\"") >&5
2096     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2097     ac_status=$?
2098     egrep -v '^ *\+' conftest.er1 >conftest.err
2099     rm -f conftest.er1
2100     cat conftest.err >&5
2101     echo "$as_me:2101: \$? = $ac_status" >&5
2102     (exit $ac_status); } >/dev/null; then
2103     if test -s conftest.err; then
2104     ac_cpp_err=$ac_c_preproc_warn_flag
2105     else
2106     ac_cpp_err=
2107     fi
2108     else
2109     ac_cpp_err=yes
2110     fi
2111     if test -z "$ac_cpp_err"; then
2112 root 1.1 ac_cv_header_stdc=yes
2113     else
2114 root 1.4 echo "$as_me: failed program was:" >&5
2115 root 1.1 cat conftest.$ac_ext >&5
2116     ac_cv_header_stdc=no
2117     fi
2118 root 1.4 rm -f conftest.err conftest.$ac_ext
2119 root 1.1
2120     if test $ac_cv_header_stdc = yes; then
2121     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2122 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2123     #line 2123 "configure"
2124 root 1.1 #include "confdefs.h"
2125     #include <string.h>
2126 root 1.4
2127     _ACEOF
2128 root 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2129     egrep "memchr" >/dev/null 2>&1; then
2130     :
2131     else
2132     ac_cv_header_stdc=no
2133     fi
2134     rm -f conftest*
2135    
2136     fi
2137    
2138     if test $ac_cv_header_stdc = yes; then
2139     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2140 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2141     #line 2141 "configure"
2142 root 1.1 #include "confdefs.h"
2143     #include <stdlib.h>
2144 root 1.4
2145     _ACEOF
2146 root 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2147     egrep "free" >/dev/null 2>&1; then
2148     :
2149     else
2150     ac_cv_header_stdc=no
2151     fi
2152     rm -f conftest*
2153    
2154     fi
2155    
2156     if test $ac_cv_header_stdc = yes; then
2157     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2158 root 1.4 if test "$cross_compiling" = yes; then
2159 root 1.1 :
2160     else
2161 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2162     #line 2162 "configure"
2163 root 1.1 #include "confdefs.h"
2164     #include <ctype.h>
2165 root 1.4 #if ((' ' & 0x0FF) == 0x020)
2166     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2167     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2168     #else
2169     # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2170     || ('j' <= (c) && (c) <= 'r') \
2171     || ('s' <= (c) && (c) <= 'z'))
2172     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2173     #endif
2174    
2175 root 1.1 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2176 root 1.4 int
2177     main ()
2178     {
2179     int i;
2180     for (i = 0; i < 256; i++)
2181     if (XOR (islower (i), ISLOWER (i))
2182     || toupper (i) != TOUPPER (i))
2183     exit(2);
2184     exit (0);
2185     }
2186     _ACEOF
2187     rm -f conftest$ac_exeext
2188     if { (eval echo "$as_me:2188: \"$ac_link\"") >&5
2189     (eval $ac_link) 2>&5
2190     ac_status=$?
2191     echo "$as_me:2191: \$? = $ac_status" >&5
2192     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2193     { (eval echo "$as_me:2193: \"$ac_try\"") >&5
2194     (eval $ac_try) 2>&5
2195     ac_status=$?
2196     echo "$as_me:2196: \$? = $ac_status" >&5
2197     (exit $ac_status); }; }; then
2198 root 1.1 :
2199     else
2200 root 1.4 echo "$as_me: program exited with status $ac_status" >&5
2201     echo "$as_me: failed program was:" >&5
2202     cat conftest.$ac_ext >&5
2203     ac_cv_header_stdc=no
2204 root 1.1 fi
2205 root 1.4 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2206 root 1.1 fi
2207     fi
2208     fi
2209 root 1.4 echo "$as_me:2209: result: $ac_cv_header_stdc" >&5
2210     echo "${ECHO_T}$ac_cv_header_stdc" >&6
2211     if test $ac_cv_header_stdc = yes; then
2212 root 1.1
2213 root 1.4 cat >>confdefs.h <<\EOF
2214 root 1.1 #define STDC_HEADERS 1
2215     EOF
2216    
2217     fi
2218    
2219 root 1.4 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2220    
2221     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2222     inttypes.h stdint.h unistd.h
2223     do
2224     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2225     echo "$as_me:2225: checking for $ac_header" >&5
2226     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2227     if eval "test \"\${$as_ac_Header+set}\" = set"; then
2228     echo $ECHO_N "(cached) $ECHO_C" >&6
2229 root 1.1 else
2230 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2231     #line 2231 "configure"
2232 root 1.1 #include "confdefs.h"
2233 root 1.4 $ac_includes_default
2234     #include <$ac_header>
2235     _ACEOF
2236     rm -f conftest.$ac_objext
2237     if { (eval echo "$as_me:2237: \"$ac_compile\"") >&5
2238     (eval $ac_compile) 2>&5
2239     ac_status=$?
2240     echo "$as_me:2240: \$? = $ac_status" >&5
2241     (exit $ac_status); } &&
2242     { ac_try='test -s conftest.$ac_objext'
2243     { (eval echo "$as_me:2243: \"$ac_try\"") >&5
2244     (eval $ac_try) 2>&5
2245     ac_status=$?
2246     echo "$as_me:2246: \$? = $ac_status" >&5
2247     (exit $ac_status); }; }; then
2248     eval "$as_ac_Header=yes"
2249     else
2250     echo "$as_me: failed program was:" >&5
2251     cat conftest.$ac_ext >&5
2252     eval "$as_ac_Header=no"
2253     fi
2254     rm -f conftest.$ac_objext conftest.$ac_ext
2255     fi
2256     echo "$as_me:2256: result: `eval echo '${'$as_ac_Header'}'`" >&5
2257     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2258     if test `eval echo '${'$as_ac_Header'}'` = yes; then
2259     cat >>confdefs.h <<EOF
2260     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2261 root 1.1 EOF
2262 root 1.4
2263     fi
2264     done
2265    
2266     echo "$as_me:2266: checking for size_t" >&5
2267     echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2268     if test "${ac_cv_type_size_t+set}" = set; then
2269     echo $ECHO_N "(cached) $ECHO_C" >&6
2270     else
2271     cat >conftest.$ac_ext <<_ACEOF
2272     #line 2272 "configure"
2273     #include "confdefs.h"
2274     $ac_includes_default
2275     int
2276     main ()
2277     {
2278     if ((size_t *) 0)
2279     return 0;
2280     if (sizeof (size_t))
2281     return 0;
2282     ;
2283     return 0;
2284     }
2285     _ACEOF
2286     rm -f conftest.$ac_objext
2287     if { (eval echo "$as_me:2287: \"$ac_compile\"") >&5
2288     (eval $ac_compile) 2>&5
2289     ac_status=$?
2290     echo "$as_me:2290: \$? = $ac_status" >&5
2291     (exit $ac_status); } &&
2292     { ac_try='test -s conftest.$ac_objext'
2293     { (eval echo "$as_me:2293: \"$ac_try\"") >&5
2294     (eval $ac_try) 2>&5
2295     ac_status=$?
2296     echo "$as_me:2296: \$? = $ac_status" >&5
2297     (exit $ac_status); }; }; then
2298 root 1.1 ac_cv_type_size_t=yes
2299     else
2300 root 1.4 echo "$as_me: failed program was:" >&5
2301     cat conftest.$ac_ext >&5
2302     ac_cv_type_size_t=no
2303     fi
2304     rm -f conftest.$ac_objext conftest.$ac_ext
2305     fi
2306     echo "$as_me:2306: result: $ac_cv_type_size_t" >&5
2307     echo "${ECHO_T}$ac_cv_type_size_t" >&6
2308     if test $ac_cv_type_size_t = yes; then
2309     :
2310     else
2311 root 1.1
2312 root 1.4 cat >>confdefs.h <<EOF
2313 root 1.1 #define size_t unsigned
2314     EOF
2315    
2316     fi
2317    
2318 root 1.4 echo "$as_me:2318: checking whether time.h and sys/time.h may both be included" >&5
2319     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2320     if test "${ac_cv_header_time+set}" = set; then
2321     echo $ECHO_N "(cached) $ECHO_C" >&6
2322 root 1.1 else
2323 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2324     #line 2324 "configure"
2325 root 1.1 #include "confdefs.h"
2326     #include <sys/types.h>
2327     #include <sys/time.h>
2328     #include <time.h>
2329 root 1.4
2330     int
2331     main ()
2332     {
2333     if ((struct tm *) 0)
2334     return 0;
2335     ;
2336     return 0;
2337     }
2338     _ACEOF
2339     rm -f conftest.$ac_objext
2340     if { (eval echo "$as_me:2340: \"$ac_compile\"") >&5
2341     (eval $ac_compile) 2>&5
2342     ac_status=$?
2343     echo "$as_me:2343: \$? = $ac_status" >&5
2344     (exit $ac_status); } &&
2345     { ac_try='test -s conftest.$ac_objext'
2346     { (eval echo "$as_me:2346: \"$ac_try\"") >&5
2347     (eval $ac_try) 2>&5
2348     ac_status=$?
2349     echo "$as_me:2349: \$? = $ac_status" >&5
2350     (exit $ac_status); }; }; then
2351 root 1.1 ac_cv_header_time=yes
2352     else
2353 root 1.4 echo "$as_me: failed program was:" >&5
2354     cat conftest.$ac_ext >&5
2355     ac_cv_header_time=no
2356 root 1.1 fi
2357 root 1.4 rm -f conftest.$ac_objext conftest.$ac_ext
2358 root 1.1 fi
2359 root 1.4 echo "$as_me:2359: result: $ac_cv_header_time" >&5
2360     echo "${ECHO_T}$ac_cv_header_time" >&6
2361     if test $ac_cv_header_time = yes; then
2362 root 1.1
2363 root 1.4 cat >>confdefs.h <<\EOF
2364 root 1.1 #define TIME_WITH_SYS_TIME 1
2365     EOF
2366    
2367     fi
2368    
2369 root 1.4 for ac_header in fcntl.h unistd.h memory.h malloc.h errno.h
2370 root 1.1 do
2371 root 1.4 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2372     echo "$as_me:2372: checking for $ac_header" >&5
2373     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2374     if eval "test \"\${$as_ac_Header+set}\" = set"; then
2375     echo $ECHO_N "(cached) $ECHO_C" >&6
2376     else
2377     cat >conftest.$ac_ext <<_ACEOF
2378     #line 2378 "configure"
2379     #include "confdefs.h"
2380     #include <$ac_header>
2381     _ACEOF
2382     if { (eval echo "$as_me:2382: \"$ac_cpp conftest.$ac_ext\"") >&5
2383     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2384     ac_status=$?
2385     egrep -v '^ *\+' conftest.er1 >conftest.err
2386     rm -f conftest.er1
2387     cat conftest.err >&5
2388     echo "$as_me:2388: \$? = $ac_status" >&5
2389     (exit $ac_status); } >/dev/null; then
2390     if test -s conftest.err; then
2391     ac_cpp_err=$ac_c_preproc_warn_flag
2392     else
2393     ac_cpp_err=
2394     fi
2395     else
2396     ac_cpp_err=yes
2397     fi
2398     if test -z "$ac_cpp_err"; then
2399     eval "$as_ac_Header=yes"
2400 root 1.1 else
2401 root 1.4 echo "$as_me: failed program was:" >&5
2402 root 1.1 cat conftest.$ac_ext >&5
2403 root 1.4 eval "$as_ac_Header=no"
2404 root 1.1 fi
2405 root 1.4 rm -f conftest.err conftest.$ac_ext
2406 root 1.1 fi
2407 root 1.4 echo "$as_me:2407: result: `eval echo '${'$as_ac_Header'}'`" >&5
2408     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2409     if test `eval echo '${'$as_ac_Header'}'` = yes; then
2410     cat >>confdefs.h <<EOF
2411     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2412 root 1.1 EOF
2413 root 1.4
2414 root 1.1 fi
2415     done
2416    
2417 root 1.4 for ac_header in io.h sys/time.h
2418 root 1.1 do
2419 root 1.4 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2420     echo "$as_me:2420: checking for $ac_header" >&5
2421     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2422     if eval "test \"\${$as_ac_Header+set}\" = set"; then
2423     echo $ECHO_N "(cached) $ECHO_C" >&6
2424 root 1.1 else
2425 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2426     #line 2426 "configure"
2427     #include "confdefs.h"
2428     #include <$ac_header>
2429     _ACEOF
2430     if { (eval echo "$as_me:2430: \"$ac_cpp conftest.$ac_ext\"") >&5
2431     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2432     ac_status=$?
2433     egrep -v '^ *\+' conftest.er1 >conftest.err
2434     rm -f conftest.er1
2435     cat conftest.err >&5
2436     echo "$as_me:2436: \$? = $ac_status" >&5
2437     (exit $ac_status); } >/dev/null; then
2438     if test -s conftest.err; then
2439     ac_cpp_err=$ac_c_preproc_warn_flag
2440     else
2441     ac_cpp_err=
2442     fi
2443     else
2444     ac_cpp_err=yes
2445     fi
2446     if test -z "$ac_cpp_err"; then
2447     eval "$as_ac_Header=yes"
2448     else
2449     echo "$as_me: failed program was:" >&5
2450 root 1.1 cat conftest.$ac_ext >&5
2451 root 1.4 eval "$as_ac_Header=no"
2452 root 1.1 fi
2453 root 1.4 rm -f conftest.err conftest.$ac_ext
2454 root 1.1 fi
2455 root 1.4 echo "$as_me:2455: result: `eval echo '${'$as_ac_Header'}'`" >&5
2456     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2457     if test `eval echo '${'$as_ac_Header'}'` = yes; then
2458     cat >>confdefs.h <<EOF
2459     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2460 root 1.1 EOF
2461 root 1.4
2462 root 1.1 fi
2463     done
2464    
2465     for ac_func in gettimeofday
2466     do
2467 root 1.4 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2468     echo "$as_me:2468: checking for $ac_func" >&5
2469     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2470     if eval "test \"\${$as_ac_var+set}\" = set"; then
2471     echo $ECHO_N "(cached) $ECHO_C" >&6
2472 root 1.1 else
2473 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2474     #line 2474 "configure"
2475 root 1.1 #include "confdefs.h"
2476     /* System header to define __stub macros and hopefully few prototypes,
2477 root 1.4 which can conflict with char $ac_func (); below. */
2478 root 1.1 #include <assert.h>
2479     /* Override any gcc2 internal prototype to avoid an error. */
2480 root 1.4 #ifdef __cplusplus
2481     extern "C"
2482     #endif
2483 root 1.1 /* We use char because int might match the return type of a gcc2
2484 root 1.4 builtin and then its argument prototype would still apply. */
2485     char $ac_func ();
2486     char (*f) ();
2487    
2488     int
2489     main ()
2490     {
2491 root 1.1 /* The GNU C library defines this for functions which it implements
2492     to always fail with ENOSYS. Some functions are actually named
2493     something starting with __ and the normal name is an alias. */
2494     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2495     choke me
2496     #else
2497 root 1.4 f = $ac_func;
2498 root 1.1 #endif
2499    
2500 root 1.4 ;
2501     return 0;
2502     }
2503     _ACEOF
2504     rm -f conftest.$ac_objext conftest$ac_exeext
2505     if { (eval echo "$as_me:2505: \"$ac_link\"") >&5
2506     (eval $ac_link) 2>&5
2507     ac_status=$?
2508     echo "$as_me:2508: \$? = $ac_status" >&5
2509     (exit $ac_status); } &&
2510     { ac_try='test -s conftest$ac_exeext'
2511     { (eval echo "$as_me:2511: \"$ac_try\"") >&5
2512     (eval $ac_try) 2>&5
2513     ac_status=$?
2514     echo "$as_me:2514: \$? = $ac_status" >&5
2515     (exit $ac_status); }; }; then
2516     eval "$as_ac_var=yes"
2517     else
2518     echo "$as_me: failed program was:" >&5
2519     cat conftest.$ac_ext >&5
2520     eval "$as_ac_var=no"
2521     fi
2522     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2523     fi
2524     echo "$as_me:2524: result: `eval echo '${'$as_ac_var'}'`" >&5
2525     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2526     if test `eval echo '${'$as_ac_var'}'` = yes; then
2527     cat >>confdefs.h <<EOF
2528     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2529 root 1.1 EOF
2530    
2531     fi
2532     done
2533    
2534 root 1.4 echo "$as_me:2534: checking for tempnam" >&5
2535     echo $ECHO_N "checking for tempnam... $ECHO_C" >&6
2536     if test "${ac_cv_func_tempnam+set}" = set; then
2537     echo $ECHO_N "(cached) $ECHO_C" >&6
2538 root 1.1 else
2539 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2540     #line 2540 "configure"
2541 root 1.1 #include "confdefs.h"
2542     /* System header to define __stub macros and hopefully few prototypes,
2543 root 1.4 which can conflict with char tempnam (); below. */
2544 root 1.1 #include <assert.h>
2545     /* Override any gcc2 internal prototype to avoid an error. */
2546 root 1.4 #ifdef __cplusplus
2547     extern "C"
2548     #endif
2549 root 1.1 /* We use char because int might match the return type of a gcc2
2550 root 1.4 builtin and then its argument prototype would still apply. */
2551     char tempnam ();
2552     char (*f) ();
2553    
2554     int
2555     main ()
2556     {
2557 root 1.1 /* The GNU C library defines this for functions which it implements
2558     to always fail with ENOSYS. Some functions are actually named
2559     something starting with __ and the normal name is an alias. */
2560     #if defined (__stub_tempnam) || defined (__stub___tempnam)
2561     choke me
2562     #else
2563 root 1.4 f = tempnam;
2564 root 1.1 #endif
2565    
2566 root 1.4 ;
2567     return 0;
2568     }
2569     _ACEOF
2570     rm -f conftest.$ac_objext conftest$ac_exeext
2571     if { (eval echo "$as_me:2571: \"$ac_link\"") >&5
2572     (eval $ac_link) 2>&5
2573     ac_status=$?
2574     echo "$as_me:2574: \$? = $ac_status" >&5
2575     (exit $ac_status); } &&
2576     { ac_try='test -s conftest$ac_exeext'
2577     { (eval echo "$as_me:2577: \"$ac_try\"") >&5
2578     (eval $ac_try) 2>&5
2579     ac_status=$?
2580     echo "$as_me:2580: \$? = $ac_status" >&5
2581     (exit $ac_status); }; }; then
2582     ac_cv_func_tempnam=yes
2583     else
2584     echo "$as_me: failed program was:" >&5
2585     cat conftest.$ac_ext >&5
2586     ac_cv_func_tempnam=no
2587     fi
2588     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2589     fi
2590     echo "$as_me:2590: result: $ac_cv_func_tempnam" >&5
2591     echo "${ECHO_T}$ac_cv_func_tempnam" >&6
2592     if test $ac_cv_func_tempnam = yes; then
2593 root 1.1 :
2594     else
2595 root 1.4 cat >>confdefs.h <<\EOF
2596 root 1.1 #define tempnam FP_tempnam
2597     EOF
2598    
2599     fi
2600    
2601 root 1.4 echo "$as_me:2601: checking for chmod" >&5
2602     echo $ECHO_N "checking for chmod... $ECHO_C" >&6
2603     if test "${ac_cv_func_chmod+set}" = set; then
2604     echo $ECHO_N "(cached) $ECHO_C" >&6
2605 root 1.3 else
2606 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2607     #line 2607 "configure"
2608 root 1.3 #include "confdefs.h"
2609     /* System header to define __stub macros and hopefully few prototypes,
2610 root 1.4 which can conflict with char chmod (); below. */
2611 root 1.3 #include <assert.h>
2612     /* Override any gcc2 internal prototype to avoid an error. */
2613 root 1.4 #ifdef __cplusplus
2614     extern "C"
2615     #endif
2616 root 1.3 /* We use char because int might match the return type of a gcc2
2617 root 1.4 builtin and then its argument prototype would still apply. */
2618     char chmod ();
2619     char (*f) ();
2620    
2621     int
2622     main ()
2623     {
2624 root 1.3 /* The GNU C library defines this for functions which it implements
2625     to always fail with ENOSYS. Some functions are actually named
2626     something starting with __ and the normal name is an alias. */
2627     #if defined (__stub_chmod) || defined (__stub___chmod)
2628     choke me
2629     #else
2630 root 1.4 f = chmod;
2631 root 1.3 #endif
2632    
2633 root 1.4 ;
2634     return 0;
2635     }
2636     _ACEOF
2637     rm -f conftest.$ac_objext conftest$ac_exeext
2638     if { (eval echo "$as_me:2638: \"$ac_link\"") >&5
2639     (eval $ac_link) 2>&5
2640     ac_status=$?
2641     echo "$as_me:2641: \$? = $ac_status" >&5
2642     (exit $ac_status); } &&
2643     { ac_try='test -s conftest$ac_exeext'
2644     { (eval echo "$as_me:2644: \"$ac_try\"") >&5
2645     (eval $ac_try) 2>&5
2646     ac_status=$?
2647     echo "$as_me:2647: \$? = $ac_status" >&5
2648     (exit $ac_status); }; }; then
2649     ac_cv_func_chmod=yes
2650     else
2651     echo "$as_me: failed program was:" >&5
2652     cat conftest.$ac_ext >&5
2653     ac_cv_func_chmod=no
2654     fi
2655     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2656     fi
2657     echo "$as_me:2657: result: $ac_cv_func_chmod" >&5
2658     echo "${ECHO_T}$ac_cv_func_chmod" >&6
2659     if test $ac_cv_func_chmod = yes; then
2660     cat >>confdefs.h <<\EOF
2661 root 1.3 #define HAVE_CHMOD 1
2662     EOF
2663    
2664     fi
2665    
2666 root 1.4 echo "$as_me:2666: checking for umask" >&5
2667     echo $ECHO_N "checking for umask... $ECHO_C" >&6
2668     if test "${ac_cv_func_umask+set}" = set; then
2669     echo $ECHO_N "(cached) $ECHO_C" >&6
2670 root 1.3 else
2671 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2672     #line 2672 "configure"
2673 root 1.3 #include "confdefs.h"
2674     /* System header to define __stub macros and hopefully few prototypes,
2675 root 1.4 which can conflict with char umask (); below. */
2676 root 1.3 #include <assert.h>
2677     /* Override any gcc2 internal prototype to avoid an error. */
2678 root 1.4 #ifdef __cplusplus
2679     extern "C"
2680     #endif
2681 root 1.3 /* We use char because int might match the return type of a gcc2
2682 root 1.4 builtin and then its argument prototype would still apply. */
2683     char umask ();
2684     char (*f) ();
2685    
2686     int
2687     main ()
2688     {
2689 root 1.3 /* The GNU C library defines this for functions which it implements
2690     to always fail with ENOSYS. Some functions are actually named
2691     something starting with __ and the normal name is an alias. */
2692     #if defined (__stub_umask) || defined (__stub___umask)
2693     choke me
2694     #else
2695 root 1.4 f = umask;
2696 root 1.3 #endif
2697    
2698 root 1.4 ;
2699     return 0;
2700     }
2701     _ACEOF
2702     rm -f conftest.$ac_objext conftest$ac_exeext
2703     if { (eval echo "$as_me:2703: \"$ac_link\"") >&5
2704     (eval $ac_link) 2>&5
2705     ac_status=$?
2706     echo "$as_me:2706: \$? = $ac_status" >&5
2707     (exit $ac_status); } &&
2708     { ac_try='test -s conftest$ac_exeext'
2709     { (eval echo "$as_me:2709: \"$ac_try\"") >&5
2710     (eval $ac_try) 2>&5
2711     ac_status=$?
2712     echo "$as_me:2712: \$? = $ac_status" >&5
2713     (exit $ac_status); }; }; then
2714     ac_cv_func_umask=yes
2715     else
2716     echo "$as_me: failed program was:" >&5
2717     cat conftest.$ac_ext >&5
2718     ac_cv_func_umask=no
2719     fi
2720     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2721     fi
2722     echo "$as_me:2722: result: $ac_cv_func_umask" >&5
2723     echo "${ECHO_T}$ac_cv_func_umask" >&6
2724     if test $ac_cv_func_umask = yes; then
2725     cat >>confdefs.h <<\EOF
2726     #define HAVE_UMASK 1
2727 root 1.3 EOF
2728 root 1.4
2729     fi
2730    
2731     echo "$as_me:2731: checking for mkstemp" >&5
2732     echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
2733     if test "${ac_cv_func_mkstemp+set}" = set; then
2734     echo $ECHO_N "(cached) $ECHO_C" >&6
2735 root 1.3 else
2736 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2737     #line 2737 "configure"
2738     #include "confdefs.h"
2739     /* System header to define __stub macros and hopefully few prototypes,
2740     which can conflict with char mkstemp (); below. */
2741     #include <assert.h>
2742     /* Override any gcc2 internal prototype to avoid an error. */
2743     #ifdef __cplusplus
2744     extern "C"
2745     #endif
2746     /* We use char because int might match the return type of a gcc2
2747     builtin and then its argument prototype would still apply. */
2748     char mkstemp ();
2749     char (*f) ();
2750    
2751     int
2752     main ()
2753     {
2754     /* The GNU C library defines this for functions which it implements
2755     to always fail with ENOSYS. Some functions are actually named
2756     something starting with __ and the normal name is an alias. */
2757     #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
2758     choke me
2759     #else
2760     f = mkstemp;
2761     #endif
2762 root 1.3
2763 root 1.4 ;
2764     return 0;
2765     }
2766     _ACEOF
2767     rm -f conftest.$ac_objext conftest$ac_exeext
2768     if { (eval echo "$as_me:2768: \"$ac_link\"") >&5
2769     (eval $ac_link) 2>&5
2770     ac_status=$?
2771     echo "$as_me:2771: \$? = $ac_status" >&5
2772     (exit $ac_status); } &&
2773     { ac_try='test -s conftest$ac_exeext'
2774     { (eval echo "$as_me:2774: \"$ac_try\"") >&5
2775     (eval $ac_try) 2>&5
2776     ac_status=$?
2777     echo "$as_me:2777: \$? = $ac_status" >&5
2778     (exit $ac_status); }; }; then
2779     ac_cv_func_mkstemp=yes
2780     else
2781     echo "$as_me: failed program was:" >&5
2782     cat conftest.$ac_ext >&5
2783     ac_cv_func_mkstemp=no
2784     fi
2785     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2786     fi
2787     echo "$as_me:2787: result: $ac_cv_func_mkstemp" >&5
2788     echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
2789     if test $ac_cv_func_mkstemp = yes; then
2790     cat >>confdefs.h <<\EOF
2791     #define HAVE_MKSTEMP 1
2792 root 1.3 EOF
2793    
2794     fi
2795    
2796 root 1.1 #
2797     # strerror might be internally defined. this would cause a
2798     # CHECK_FUNCS(strerror) to fail because it'd be called with
2799     # zero arguments. So use our own code.
2800     #
2801 root 1.4 echo "$as_me:2801: checking for strerror" >&5
2802     echo $ECHO_N "checking for strerror... $ECHO_C" >&6
2803     cat >conftest.$ac_ext <<_ACEOF
2804     #line 2804 "configure"
2805 root 1.1 #include "confdefs.h"
2806    
2807     char *blubb() { return (char *) strerror (42); }
2808    
2809 root 1.4 int
2810     main ()
2811     {
2812 root 1.1
2813     (void) blubb();
2814    
2815 root 1.4 ;
2816     return 0;
2817     }
2818     _ACEOF
2819     rm -f conftest.$ac_objext conftest$ac_exeext
2820     if { (eval echo "$as_me:2820: \"$ac_link\"") >&5
2821     (eval $ac_link) 2>&5
2822     ac_status=$?
2823     echo "$as_me:2823: \$? = $ac_status" >&5
2824     (exit $ac_status); } &&
2825     { ac_try='test -s conftest$ac_exeext'
2826     { (eval echo "$as_me:2826: \"$ac_try\"") >&5
2827     (eval $ac_try) 2>&5
2828     ac_status=$?
2829     echo "$as_me:2829: \$? = $ac_status" >&5
2830     (exit $ac_status); }; }; then
2831 root 1.1 have_strerror=yes
2832     else
2833 root 1.4 echo "$as_me: failed program was:" >&5
2834     cat conftest.$ac_ext >&5
2835     cat >>confdefs.h <<\EOF
2836 root 1.1 #define strerror FP_strerror
2837     EOF
2838    
2839     have_strerror=no
2840     fi
2841 root 1.4 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2842     echo "$as_me:2842: result: $have_strerror" >&5
2843     echo "${ECHO_T}$have_strerror" >&6
2844    
2845     echo "$as_me:2845: checking for stdin" >&5
2846     echo $ECHO_N "checking for stdin... $ECHO_C" >&6
2847     cat >conftest.$ac_ext <<_ACEOF
2848     #line 2848 "configure"
2849 root 1.1 #include "confdefs.h"
2850    
2851     #include <stdio.h>
2852     char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; }
2853    
2854 root 1.4 int
2855     main ()
2856     {
2857 root 1.1
2858     (void) blubb();
2859    
2860 root 1.4 ;
2861     return 0;
2862     }
2863     _ACEOF
2864     rm -f conftest.$ac_objext conftest$ac_exeext
2865     if { (eval echo "$as_me:2865: \"$ac_link\"") >&5
2866     (eval $ac_link) 2>&5
2867     ac_status=$?
2868     echo "$as_me:2868: \$? = $ac_status" >&5
2869     (exit $ac_status); } &&
2870     { ac_try='test -s conftest$ac_exeext'
2871     { (eval echo "$as_me:2871: \"$ac_try\"") >&5
2872     (eval $ac_try) 2>&5
2873     ac_status=$?
2874     echo "$as_me:2874: \$? = $ac_status" >&5
2875     (exit $ac_status); }; }; then
2876 root 1.1 have_stdio=yes
2877     else
2878 root 1.4 echo "$as_me: failed program was:" >&5
2879     cat conftest.$ac_ext >&5
2880     cat >>confdefs.h <<\EOF
2881 root 1.1 #define HAVE_STDIO 1
2882     EOF
2883    
2884     have_stdio=no
2885     fi
2886 root 1.4 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2887     echo "$as_me:2887: result: $have_stdio" >&5
2888     echo "${ECHO_T}$have_stdio" >&6
2889 root 1.1
2890     if test "$ac_cv_header_stdc" = "no" ; then
2891 root 1.4
2892     for ac_header in stdarg.h varargs.h
2893 root 1.1 do
2894 root 1.4 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2895     echo "$as_me:2895: checking for $ac_header" >&5
2896     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2897     if eval "test \"\${$as_ac_Header+set}\" = set"; then
2898     echo $ECHO_N "(cached) $ECHO_C" >&6
2899 root 1.1 else
2900 root 1.4 cat >conftest.$ac_ext <<_ACEOF
2901     #line 2901 "configure"
2902     #include "confdefs.h"
2903     #include <$ac_header>
2904     _ACEOF
2905     if { (eval echo "$as_me:2905: \"$ac_cpp conftest.$ac_ext\"") >&5
2906     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2907     ac_status=$?
2908     egrep -v '^ *\+' conftest.er1 >conftest.err
2909     rm -f conftest.er1
2910     cat conftest.err >&5
2911     echo "$as_me:2911: \$? = $ac_status" >&5
2912     (exit $ac_status); } >/dev/null; then
2913     if test -s conftest.err; then
2914     ac_cpp_err=$ac_c_preproc_warn_flag
2915     else
2916     ac_cpp_err=
2917     fi
2918     else
2919     ac_cpp_err=yes
2920     fi
2921     if test -z "$ac_cpp_err"; then
2922     eval "$as_ac_Header=yes"
2923     else
2924     echo "$as_me: failed program was:" >&5
2925 root 1.1 cat conftest.$ac_ext >&5
2926 root 1.4 eval "$as_ac_Header=no"
2927 root 1.1 fi
2928 root 1.4 rm -f conftest.err conftest.$ac_ext
2929 root 1.1 fi
2930 root 1.4 echo "$as_me:2930: result: `eval echo '${'$as_ac_Header'}'`" >&5
2931     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2932     if test `eval echo '${'$as_ac_Header'}'` = yes; then
2933     cat >>confdefs.h <<EOF
2934     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2935 root 1.1 EOF
2936 root 1.4
2937 root 1.1 fi
2938     done
2939    
2940     if test "$ac_cv_header_stdarg_h" = "no" ; then
2941     if test "$ac_cv_header_varargs_h" = "no" ; then
2942 root 1.4 { { echo "$as_me:2942: error: neither stdarg.h nor varargs.h present" >&5
2943     echo "$as_me: error: neither stdarg.h nor varargs.h present" >&2;}
2944     { (exit 1); exit 1; }; }
2945 root 1.1 fi
2946     fi
2947     fi
2948    
2949     #
2950     # Check whether this is a DOS-Based system. Another bogus test.
2951     # Don't even bother to print a message. This code is needed so
2952     # that autoheader includes the #undef into the final config.h
2953     # and we can change the definition by hand on a really DOS
2954     # system (where ./configure doesn't work anyway ...)
2955     #
2956    
2957     if false ; then
2958 root 1.4 cat >>confdefs.h <<\EOF
2959 root 1.1 #define SYSTEM_DOS 1
2960     EOF
2961    
2962 root 1.4 cat >>confdefs.h <<\EOF
2963 root 1.1 #define SYSTEM_QUICKWIN 1
2964     EOF
2965    
2966 root 1.4 cat >>confdefs.h <<\EOF
2967 root 1.1 #define SYSTEM_WINDLL 1
2968     EOF
2969    
2970 root 1.4 cat >>confdefs.h <<\EOF
2971 root 1.1 #define SYSTEM_OS2 1
2972     EOF
2973    
2974     fi
2975    
2976     #
2977     # On some systems (so far, OS2 and WINDOWS), functions that are exported
2978     # from a DLL must be declared specifically.
2979     #
2980    
2981 root 1.4 cat >>confdefs.h <<EOF
2982     #define UUEXPORT
2983 root 1.1 EOF
2984    
2985 root 1.4 cat >>confdefs.h <<EOF
2986     #define TOOLEXPORT
2987 root 1.1 EOF
2988    
2989     #
2990     # set version number
2991     #
2992 root 1.4 echo "$as_me:2992: checking version number" >&5
2993     echo $ECHO_N "checking version number... $ECHO_C" >&6
2994 root 1.1 version_number="$VERSION"pl"$PATCH"
2995 root 1.4 echo "$as_me:2995: result: $version_number" >&5
2996     echo "${ECHO_T}$version_number" >&6
2997 root 1.1
2998     #
2999     # done
3000     #
3001    
3002 root 1.4 ac_config_files="$ac_config_files Makefile"
3003     cat >confcache <<\_ACEOF
3004 root 1.1 # This file is a shell script that caches the results of configure
3005     # tests run on this system so they can be shared between configure
3006 root 1.4 # scripts and configure runs, see configure's option --config-cache.
3007     # It is not useful on other systems. If it contains results you don't
3008     # want to keep, you may remove or edit it.
3009 root 1.1 #
3010 root 1.4 # config.status only pays attention to the cache file if you give it
3011     # the --recheck option to rerun configure.
3012 root 1.1 #
3013 root 1.4 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3014     # loading this file, other *unset* `ac_cv_foo' will be assigned the
3015     # following values.
3016    
3017     _ACEOF
3018    
3019 root 1.1 # The following way of writing the cache mishandles newlines in values,
3020     # but we know of no workaround that is simple, portable, and efficient.
3021     # So, don't put newlines in cache variables' values.
3022     # Ultrix sh set writes to stderr and can't be redirected directly,
3023     # and sets the high bit in the cache file unless we assign to the vars.
3024 root 1.4 {
3025     (set) 2>&1 |
3026     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3027     *ac_space=\ *)
3028     # `set' does not quote correctly, so add quotes (double-quote
3029     # substitution turns \\\\ into \\, and sed turns \\ into \).
3030     sed -n \
3031     "s/'/'\\\\''/g;
3032     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3033     ;;
3034     *)
3035     # `set' quotes correctly as required by POSIX, so do not add quotes.
3036     sed -n \
3037     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3038     ;;
3039     esac;
3040     } |
3041     sed '
3042     t clear
3043     : clear
3044     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3045     t end
3046     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3047     : end' >>confcache
3048     if cmp -s $cache_file confcache; then :; else
3049 root 1.1 if test -w $cache_file; then
3050 root 1.4 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3051     cat confcache >$cache_file
3052 root 1.1 else
3053     echo "not updating unwritable cache $cache_file"
3054     fi
3055     fi
3056     rm -f confcache
3057    
3058     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3059     # Let make expand exec_prefix.
3060     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3061    
3062 root 1.4 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3063     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3064     # trailing colons and then remove the whole line if VPATH becomes empty
3065     # (actually we leave an empty line to preserve line numbers).
3066 root 1.1 if test "x$srcdir" = x.; then
3067 root 1.4 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3068     s/:*\$(srcdir):*/:/;
3069     s/:*\${srcdir}:*/:/;
3070     s/:*@srcdir@:*/:/;
3071     s/^\([^=]*=[ ]*\):*/\1/;
3072     s/:*$//;
3073     s/^[^=]*=[ ]*$//;
3074     }'
3075 root 1.1 fi
3076    
3077     DEFS=-DHAVE_CONFIG_H
3078    
3079     : ${CONFIG_STATUS=./config.status}
3080 root 1.4 ac_clean_files_save=$ac_clean_files
3081     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3082     { echo "$as_me:3082: creating $CONFIG_STATUS" >&5
3083     echo "$as_me: creating $CONFIG_STATUS" >&6;}
3084     cat >$CONFIG_STATUS <<_ACEOF
3085     #! $SHELL
3086 root 1.1 # Generated automatically by configure.
3087     # Run this file to recreate the current configuration.
3088     # Compiler output produced by configure, useful for debugging
3089 root 1.4 # configure, is in config.log if it exists.
3090    
3091     debug=false
3092     SHELL=\${CONFIG_SHELL-$SHELL}
3093     ac_cs_invocation="\$0 \$@"
3094    
3095     _ACEOF
3096    
3097     cat >>$CONFIG_STATUS <<\_ACEOF
3098     # Be Bourne compatible
3099     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3100     emulate sh
3101     NULLCMD=:
3102     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3103     set -o posix
3104     fi
3105    
3106     # Name of the executable.
3107     as_me=`echo "$0" |sed 's,.*[\\/],,'`
3108    
3109     if expr a : '\(a\)' >/dev/null 2>&1; then
3110     as_expr=expr
3111     else
3112     as_expr=false
3113     fi
3114    
3115     rm -f conf$$ conf$$.exe conf$$.file
3116     echo >conf$$.file
3117     if ln -s conf$$.file conf$$ 2>/dev/null; then
3118     # We could just check for DJGPP; but this test a) works b) is more generic
3119     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3120     if test -f conf$$.exe; then
3121     # Don't use ln at all; we don't have any links
3122     as_ln_s='cp -p'
3123     else
3124     as_ln_s='ln -s'
3125     fi
3126     elif ln conf$$.file conf$$ 2>/dev/null; then
3127     as_ln_s=ln
3128     else
3129     as_ln_s='cp -p'
3130     fi
3131     rm -f conf$$ conf$$.exe conf$$.file
3132    
3133     as_executable_p="test -f"
3134    
3135     # Support unset when possible.
3136     if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3137     as_unset=unset
3138     else
3139     as_unset=false
3140     fi
3141    
3142     # NLS nuisances.
3143     $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3144     $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3145     $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3146     $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3147     $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3148     $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3149     $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3150     $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3151    
3152     # IFS
3153     # We need space, tab and new line, in precisely that order.
3154     as_nl='
3155     '
3156     IFS=" $as_nl"
3157    
3158     # CDPATH.
3159     $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3160    
3161     exec 6>&1
3162    
3163     _ACEOF
3164    
3165     # Files that config.status was made for.
3166     if test -n "$ac_config_files"; then
3167     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3168     fi
3169    
3170     if test -n "$ac_config_headers"; then
3171     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3172     fi
3173    
3174     if test -n "$ac_config_links"; then
3175     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3176     fi
3177    
3178     if test -n "$ac_config_commands"; then
3179     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3180     fi
3181    
3182     cat >>$CONFIG_STATUS <<\EOF
3183    
3184     ac_cs_usage="\
3185     \`$as_me' instantiates files from templates according to the
3186     current configuration.
3187    
3188     Usage: $0 [OPTIONS] [FILE]...
3189    
3190     -h, --help print this help, then exit
3191     -V, --version print version number, then exit
3192     -d, --debug don't remove temporary files
3193     --recheck update $as_me by reconfiguring in the same conditions
3194     --file=FILE[:TEMPLATE]
3195     instantiate the configuration file FILE
3196     --header=FILE[:TEMPLATE]
3197     instantiate the configuration header FILE
3198    
3199     Configuration files:
3200     $config_files
3201    
3202     Configuration headers:
3203     $config_headers
3204    
3205     Report bugs to <bug-autoconf@gnu.org>."
3206     EOF
3207    
3208     cat >>$CONFIG_STATUS <<EOF
3209     ac_cs_version="\\
3210     config.status
3211     configured by $0, generated by GNU Autoconf 2.52,
3212     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3213    
3214     Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3215     Free Software Foundation, Inc.
3216     This config.status script is free software; the Free Software Foundation
3217     gives unlimited permission to copy, distribute and modify it."
3218     srcdir=$srcdir
3219     EOF
3220 root 1.1
3221 root 1.4 cat >>$CONFIG_STATUS <<\EOF
3222     # If no file are specified by the user, then we need to provide default
3223     # value. By we need to know if files were specified by the user.
3224     ac_need_defaults=:
3225     while test $# != 0
3226 root 1.1 do
3227 root 1.4 case $1 in
3228     --*=*)
3229     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3230     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3231     shift
3232     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3233     shift
3234     ;;
3235     -*);;
3236     *) # This is not an option, so the user has probably given explicit
3237     # arguments.
3238     ac_need_defaults=false;;
3239     esac
3240    
3241     case $1 in
3242     # Handling of the options.
3243     EOF
3244     cat >>$CONFIG_STATUS <<EOF
3245 root 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3246 root 1.4 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3247     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3248     EOF
3249     cat >>$CONFIG_STATUS <<\EOF
3250     --version | --vers* | -V )
3251     echo "$ac_cs_version"; exit 0 ;;
3252     --he | --h)
3253     # Conflict between --help and --header
3254     { { echo "$as_me:3254: error: ambiguous option: $1
3255     Try \`$0 --help' for more information." >&5
3256     echo "$as_me: error: ambiguous option: $1
3257     Try \`$0 --help' for more information." >&2;}
3258     { (exit 1); exit 1; }; };;
3259     --help | --hel | -h )
3260     echo "$ac_cs_usage"; exit 0 ;;
3261     --debug | --d* | -d )
3262     debug=: ;;
3263     --file | --fil | --fi | --f )
3264     shift
3265     CONFIG_FILES="$CONFIG_FILES $1"
3266     ac_need_defaults=false;;
3267     --header | --heade | --head | --hea )
3268     shift
3269     CONFIG_HEADERS="$CONFIG_HEADERS $1"
3270     ac_need_defaults=false;;
3271    
3272     # This is an error.
3273     -*) { { echo "$as_me:3273: error: unrecognized option: $1
3274     Try \`$0 --help' for more information." >&5
3275     echo "$as_me: error: unrecognized option: $1
3276     Try \`$0 --help' for more information." >&2;}
3277     { (exit 1); exit 1; }; } ;;
3278    
3279     *) ac_config_targets="$ac_config_targets $1" ;;
3280    
3281 root 1.1 esac
3282 root 1.4 shift
3283 root 1.1 done
3284    
3285 root 1.4 exec 5>>config.log
3286     cat >&5 << _ACEOF
3287 root 1.1
3288 root 1.4 ## ----------------------- ##
3289     ## Running config.status. ##
3290     ## ----------------------- ##
3291    
3292     This file was extended by $as_me 2.52, executed with
3293     CONFIG_FILES = $CONFIG_FILES
3294     CONFIG_HEADERS = $CONFIG_HEADERS
3295     CONFIG_LINKS = $CONFIG_LINKS
3296     CONFIG_COMMANDS = $CONFIG_COMMANDS
3297     > $ac_cs_invocation
3298     on `(hostname || uname -n) 2>/dev/null | sed 1q`
3299    
3300     _ACEOF
3301 root 1.1 EOF
3302    
3303 root 1.4 cat >>$CONFIG_STATUS <<\EOF
3304     for ac_config_target in $ac_config_targets
3305     do
3306     case "$ac_config_target" in
3307     # Handling of arguments.
3308     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3309     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3310     *) { { echo "$as_me:3310: error: invalid argument: $ac_config_target" >&5
3311     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3312     { (exit 1); exit 1; }; };;
3313     esac
3314     done
3315    
3316     # If the user did not use the arguments to specify the items to instantiate,
3317     # then the envvar interface is used. Set only those that are not.
3318     # We use the long form for the default assignment because of an extremely
3319     # bizarre bug on SunOS 4.1.3.
3320     if $ac_need_defaults; then
3321     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3322     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3323     fi
3324    
3325     # Create a temporary directory, and hook for its removal unless debugging.
3326     $debug ||
3327     {
3328     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3329     trap '{ (exit 1); exit 1; }' 1 2 13 15
3330     }
3331    
3332     # Create a (secure) tmp directory for tmp files.
3333     : ${TMPDIR=/tmp}
3334     {
3335     tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3336     test -n "$tmp" && test -d "$tmp"
3337     } ||
3338     {
3339     tmp=$TMPDIR/cs$$-$RANDOM
3340     (umask 077 && mkdir $tmp)
3341     } ||
3342     {
3343     echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3344     { (exit 1); exit 1; }
3345     }
3346    
3347     EOF
3348    
3349     cat >>$CONFIG_STATUS <<EOF
3350    
3351     #
3352     # CONFIG_FILES section.
3353     #
3354 root 1.1
3355 root 1.4 # No need to generate the scripts if there are no CONFIG_FILES.
3356     # This happens for instance when ./config.status config.h
3357     if test -n "\$CONFIG_FILES"; then
3358     # Protect against being on the right side of a sed subst in config.status.
3359     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3360     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3361     s,@SHELL@,$SHELL,;t t
3362     s,@exec_prefix@,$exec_prefix,;t t
3363     s,@prefix@,$prefix,;t t
3364     s,@program_transform_name@,$program_transform_name,;t t
3365     s,@bindir@,$bindir,;t t
3366     s,@sbindir@,$sbindir,;t t
3367     s,@libexecdir@,$libexecdir,;t t
3368     s,@datadir@,$datadir,;t t
3369     s,@sysconfdir@,$sysconfdir,;t t
3370     s,@sharedstatedir@,$sharedstatedir,;t t
3371     s,@localstatedir@,$localstatedir,;t t
3372     s,@libdir@,$libdir,;t t
3373     s,@includedir@,$includedir,;t t
3374     s,@oldincludedir@,$oldincludedir,;t t
3375     s,@infodir@,$infodir,;t t
3376     s,@mandir@,$mandir,;t t
3377     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3378     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3379     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3380     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3381     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3382     s,@build_alias@,$build_alias,;t t
3383     s,@host_alias@,$host_alias,;t t
3384     s,@target_alias@,$target_alias,;t t
3385     s,@ECHO_C@,$ECHO_C,;t t
3386     s,@ECHO_N@,$ECHO_N,;t t
3387     s,@ECHO_T@,$ECHO_T,;t t
3388     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3389     s,@DEFS@,$DEFS,;t t
3390     s,@LIBS@,$LIBS,;t t
3391     s,@CC@,$CC,;t t
3392     s,@CFLAGS@,$CFLAGS,;t t
3393     s,@LDFLAGS@,$LDFLAGS,;t t
3394     s,@CPPFLAGS@,$CPPFLAGS,;t t
3395     s,@ac_ct_CC@,$ac_ct_CC,;t t
3396     s,@EXEEXT@,$EXEEXT,;t t
3397     s,@OBJEXT@,$OBJEXT,;t t
3398     s,@CPP@,$CPP,;t t
3399     s,@SET_MAKE@,$SET_MAKE,;t t
3400     s,@RANLIB@,$RANLIB,;t t
3401     s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
3402     s,@VERSION@,$VERSION,;t t
3403     s,@PATCH@,$PATCH,;t t
3404 root 1.1 CEOF
3405 root 1.4
3406 root 1.1 EOF
3407    
3408 root 1.4 cat >>$CONFIG_STATUS <<\EOF
3409     # Split the substitutions into bite-sized pieces for seds with
3410     # small command number limits, like on Digital OSF/1 and HP-UX.
3411     ac_max_sed_lines=48
3412     ac_sed_frag=1 # Number of current file.
3413     ac_beg=1 # First line for current file.
3414     ac_end=$ac_max_sed_lines # Line after last line for current file.
3415     ac_more_lines=:
3416     ac_sed_cmds=
3417     while $ac_more_lines; do
3418     if test $ac_beg -gt 1; then
3419     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3420     else
3421     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3422     fi
3423     if test ! -s $tmp/subs.frag; then
3424     ac_more_lines=false
3425 root 1.1 else
3426 root 1.4 # The purpose of the label and of the branching condition is to
3427     # speed up the sed processing (if there are no `@' at all, there
3428     # is no need to browse any of the substitutions).
3429     # These are the two extra sed commands mentioned above.
3430     (echo ':t
3431     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3432     if test -z "$ac_sed_cmds"; then
3433     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3434     else
3435     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3436     fi
3437     ac_sed_frag=`expr $ac_sed_frag + 1`
3438     ac_beg=$ac_end
3439     ac_end=`expr $ac_end + $ac_max_sed_lines`
3440 root 1.1 fi
3441 root 1.4 done
3442     if test -z "$ac_sed_cmds"; then
3443     ac_sed_cmds=cat
3444 root 1.1 fi
3445 root 1.4 fi # test -n "$CONFIG_FILES"
3446 root 1.1
3447     EOF
3448 root 1.4 cat >>$CONFIG_STATUS <<\EOF
3449     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3450 root 1.1 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3451 root 1.4 case $ac_file in
3452     - | *:- | *:-:* ) # input from stdin
3453     cat >$tmp/stdin
3454     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3455     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3456     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3457     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3458     * ) ac_file_in=$ac_file.in ;;
3459 root 1.1 esac
3460    
3461 root 1.4 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3462     ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3463     X"$ac_file" : 'X\(//\)[^/]' \| \
3464     X"$ac_file" : 'X\(//\)$' \| \
3465     X"$ac_file" : 'X\(/\)' \| \
3466     . : '\(.\)' 2>/dev/null ||
3467     echo X"$ac_file" |
3468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3469     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3470     /^X\(\/\/\)$/{ s//\1/; q; }
3471     /^X\(\/\).*/{ s//\1/; q; }
3472     s/.*/./; q'`
3473     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3474     { case "$ac_dir" in
3475     [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3476     *) as_incr_dir=.;;
3477     esac
3478     as_dummy="$ac_dir"
3479     for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3480     case $as_mkdir_dir in
3481     # Skip DOS drivespec
3482     ?:) as_incr_dir=$as_mkdir_dir ;;
3483     *)
3484     as_incr_dir=$as_incr_dir/$as_mkdir_dir
3485     test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3486     ;;
3487     esac
3488     done; }
3489 root 1.1
3490 root 1.4 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3491 root 1.1 # A "../" for each directory in $ac_dir_suffix.
3492 root 1.4 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3493 root 1.1 else
3494     ac_dir_suffix= ac_dots=
3495     fi
3496    
3497 root 1.4 case $srcdir in
3498     .) ac_srcdir=.
3499     if test -z "$ac_dots"; then
3500     ac_top_srcdir=.
3501     else
3502     ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3503     fi ;;
3504     [\\/]* | ?:[\\/]* )
3505     ac_srcdir=$srcdir$ac_dir_suffix;
3506     ac_top_srcdir=$srcdir ;;
3507 root 1.1 *) # Relative path.
3508 root 1.4 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3509     ac_top_srcdir=$ac_dots$srcdir ;;
3510 root 1.1 esac
3511    
3512 root 1.4 if test x"$ac_file" != x-; then
3513     { echo "$as_me:3513: creating $ac_file" >&5
3514     echo "$as_me: creating $ac_file" >&6;}
3515     rm -f "$ac_file"
3516     fi
3517     # Let's still pretend it is `configure' which instantiates (i.e., don't
3518     # use $as_me), people would be surprised to read:
3519     # /* config.h. Generated automatically by config.status. */
3520     configure_input="Generated automatically from `echo $ac_file_in |
3521     sed 's,.*/,,'` by configure."
3522    
3523     # First look for the input files in the build tree, otherwise in the
3524     # src tree.
3525     ac_file_inputs=`IFS=:
3526     for f in $ac_file_in; do
3527     case $f in
3528     -) echo $tmp/stdin ;;
3529     [\\/$]*)
3530     # Absolute (can't be DOS-style, as IFS=:)
3531     test -f "$f" || { { echo "$as_me:3531: error: cannot find input file: $f" >&5
3532     echo "$as_me: error: cannot find input file: $f" >&2;}
3533     { (exit 1); exit 1; }; }
3534     echo $f;;
3535     *) # Relative
3536     if test -f "$f"; then
3537     # Build tree
3538     echo $f
3539     elif test -f "$srcdir/$f"; then
3540     # Source tree
3541     echo $srcdir/$f
3542     else
3543     # /dev/null tree
3544     { { echo "$as_me:3544: error: cannot find input file: $f" >&5
3545     echo "$as_me: error: cannot find input file: $f" >&2;}
3546     { (exit 1); exit 1; }; }
3547     fi;;
3548     esac
3549     done` || { (exit 1); exit 1; }
3550     EOF
3551     cat >>$CONFIG_STATUS <<EOF
3552     sed "$ac_vpsub
3553     $extrasub
3554     EOF
3555     cat >>$CONFIG_STATUS <<\EOF
3556     :t
3557     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3558     s,@configure_input@,$configure_input,;t t
3559     s,@srcdir@,$ac_srcdir,;t t
3560     s,@top_srcdir@,$ac_top_srcdir,;t t
3561     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3562     rm -f $tmp/stdin
3563     if test x"$ac_file" != x-; then
3564     mv $tmp/out $ac_file
3565     else
3566     cat $tmp/out
3567     rm -f $tmp/out
3568     fi
3569 root 1.1
3570 root 1.4 done
3571     EOF
3572     cat >>$CONFIG_STATUS <<\EOF
3573 root 1.1
3574 root 1.4 #
3575     # CONFIG_HEADER section.
3576     #
3577 root 1.1
3578     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3579     # NAME is the cpp macro being defined and VALUE is the value it is being given.
3580     #
3581     # ac_d sets the value in "#define NAME VALUE" lines.
3582 root 1.4 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3583     ac_dB='[ ].*$,\1#\2'
3584     ac_dC=' '
3585     ac_dD=',;t'
3586     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3587     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3588     ac_uB='$,\1#\2define\3'
3589 root 1.1 ac_uC=' '
3590 root 1.4 ac_uD=',;t'
3591 root 1.1
3592 root 1.4 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3593 root 1.1 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3594 root 1.4 case $ac_file in
3595     - | *:- | *:-:* ) # input from stdin
3596     cat >$tmp/stdin
3597     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3598     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3599     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3600     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3601     * ) ac_file_in=$ac_file.in ;;
3602 root 1.1 esac
3603    
3604 root 1.4 test x"$ac_file" != x- && { echo "$as_me:3604: creating $ac_file" >&5
3605     echo "$as_me: creating $ac_file" >&6;}
3606 root 1.1
3607 root 1.4 # First look for the input files in the build tree, otherwise in the
3608     # src tree.
3609     ac_file_inputs=`IFS=:
3610     for f in $ac_file_in; do
3611     case $f in
3612     -) echo $tmp/stdin ;;
3613     [\\/$]*)
3614     # Absolute (can't be DOS-style, as IFS=:)
3615     test -f "$f" || { { echo "$as_me:3615: error: cannot find input file: $f" >&5
3616     echo "$as_me: error: cannot find input file: $f" >&2;}
3617     { (exit 1); exit 1; }; }
3618     echo $f;;
3619     *) # Relative
3620     if test -f "$f"; then
3621     # Build tree
3622     echo $f
3623     elif test -f "$srcdir/$f"; then
3624     # Source tree
3625     echo $srcdir/$f
3626     else
3627     # /dev/null tree
3628     { { echo "$as_me:3628: error: cannot find input file: $f" >&5
3629     echo "$as_me: error: cannot find input file: $f" >&2;}
3630     { (exit 1); exit 1; }; }
3631     fi;;
3632     esac
3633     done` || { (exit 1); exit 1; }
3634     # Remove the trailing spaces.
3635     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3636 root 1.1
3637     EOF
3638    
3639 root 1.4 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3640     # `conftest.undefs', that substitutes the proper values into
3641     # config.h.in to produce config.h. The first handles `#define'
3642     # templates, and the second `#undef' templates.
3643     # And first: Protect against being on the right side of a sed subst in
3644     # config.status. Protect against being in an unquoted here document
3645     # in config.status.
3646     rm -f conftest.defines conftest.undefs
3647     # Using a here document instead of a string reduces the quoting nightmare.
3648     # Putting comments in sed scripts is not portable.
3649     #
3650     # `end' is used to avoid that the second main sed command (meant for
3651     # 0-ary CPP macros) applies to n-ary macro definitions.
3652     # See the Autoconf documentation for `clear'.
3653     cat >confdef2sed.sed <<\EOF
3654     s/[\\&,]/\\&/g
3655     s,[\\$`],\\&,g
3656     t clear
3657     : clear
3658     s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3659     t end
3660     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3661     : end
3662     EOF
3663     # If some macros were called several times there might be several times
3664     # the same #defines, which is useless. Nevertheless, we may not want to
3665     # sort them, since we want the *last* AC-DEFINE to be honored.
3666     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3667     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3668     rm -f confdef2sed.sed
3669 root 1.1
3670     # This sed command replaces #undef with comments. This is necessary, for
3671     # example, in the case of _POSIX_SOURCE, which is predefined and required
3672     # on some systems where configure will not decide to define it.
3673 root 1.4 cat >>conftest.undefs <<\EOF
3674     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3675 root 1.1 EOF
3676    
3677 root 1.4 # Break up conftest.defines because some shells have a limit on the size
3678     # of here documents, and old seds have small limits too (100 cmds).
3679     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3680     echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3681     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3682     echo ' :' >>$CONFIG_STATUS
3683     rm -f conftest.tail
3684     while grep . conftest.defines >/dev/null
3685     do
3686     # Write a limited-size here document to $tmp/defines.sed.
3687     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3688     # Speed up: don't consider the non `#define' lines.
3689     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3690     # Work around the forget-to-reset-the-flag bug.
3691     echo 't clr' >>$CONFIG_STATUS
3692     echo ': clr' >>$CONFIG_STATUS
3693     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3694     echo 'CEOF
3695     sed -f $tmp/defines.sed $tmp/in >$tmp/out
3696     rm -f $tmp/in
3697     mv $tmp/out $tmp/in
3698     ' >>$CONFIG_STATUS
3699     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3700     rm -f conftest.defines
3701     mv conftest.tail conftest.defines
3702     done
3703     rm -f conftest.defines
3704     echo ' fi # egrep' >>$CONFIG_STATUS
3705     echo >>$CONFIG_STATUS
3706    
3707     # Break up conftest.undefs because some shells have a limit on the size
3708     # of here documents, and old seds have small limits too (100 cmds).
3709     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3710 root 1.1 rm -f conftest.tail
3711 root 1.4 while grep . conftest.undefs >/dev/null
3712 root 1.1 do
3713 root 1.4 # Write a limited-size here document to $tmp/undefs.sed.
3714     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3715     # Speed up: don't consider the non `#undef'
3716     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3717     # Work around the forget-to-reset-the-flag bug.
3718     echo 't clr' >>$CONFIG_STATUS
3719     echo ': clr' >>$CONFIG_STATUS
3720     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3721 root 1.1 echo 'CEOF
3722 root 1.4 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3723     rm -f $tmp/in
3724     mv $tmp/out $tmp/in
3725     ' >>$CONFIG_STATUS
3726     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3727     rm -f conftest.undefs
3728     mv conftest.tail conftest.undefs
3729     done
3730     rm -f conftest.undefs
3731    
3732     cat >>$CONFIG_STATUS <<\EOF
3733     # Let's still pretend it is `configure' which instantiates (i.e., don't
3734     # use $as_me), people would be surprised to read:
3735     # /* config.h. Generated automatically by config.status. */
3736     if test x"$ac_file" = x-; then
3737     echo "/* Generated automatically by configure. */" >$tmp/config.h
3738 root 1.1 else
3739 root 1.4 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
3740     fi
3741     cat $tmp/in >>$tmp/config.h
3742     rm -f $tmp/in
3743     if test x"$ac_file" != x-; then
3744     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
3745     { echo "$as_me:3745: $ac_file is unchanged" >&5
3746     echo "$as_me: $ac_file is unchanged" >&6;}
3747     else
3748     ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3749     X"$ac_file" : 'X\(//\)[^/]' \| \
3750     X"$ac_file" : 'X\(//\)$' \| \
3751     X"$ac_file" : 'X\(/\)' \| \
3752     . : '\(.\)' 2>/dev/null ||
3753     echo X"$ac_file" |
3754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3755     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3756     /^X\(\/\/\)$/{ s//\1/; q; }
3757     /^X\(\/\).*/{ s//\1/; q; }
3758     s/.*/./; q'`
3759 root 1.1 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3760 root 1.4 { case "$ac_dir" in
3761     [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3762     *) as_incr_dir=.;;
3763     esac
3764     as_dummy="$ac_dir"
3765     for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3766     case $as_mkdir_dir in
3767     # Skip DOS drivespec
3768     ?:) as_incr_dir=$as_mkdir_dir ;;
3769     *)
3770     as_incr_dir=$as_incr_dir/$as_mkdir_dir
3771     test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3772     ;;
3773     esac
3774     done; }
3775    
3776     fi
3777     rm -f $ac_file
3778     mv $tmp/config.h $ac_file
3779 root 1.1 fi
3780 root 1.4 else
3781     cat $tmp/config.h
3782     rm -f $tmp/config.h
3783 root 1.1 fi
3784 root 1.4 done
3785 root 1.1 EOF
3786    
3787 root 1.4 cat >>$CONFIG_STATUS <<\EOF
3788 root 1.1
3789 root 1.4 { (exit 0); exit 0; }
3790 root 1.1 EOF
3791     chmod +x $CONFIG_STATUS
3792 root 1.4 ac_clean_files=$ac_clean_files_save
3793 root 1.1
3794 root 1.4 # configure is writing to config.log, and then calls config.status.
3795     # config.status does its own redirection, appending to config.log.
3796     # Unfortunately, on DOS this fails, as config.log is still kept open
3797     # by configure, so config.status won't be able to write to it; its
3798     # output is simply discarded. So we exec the FD to /dev/null,
3799     # effectively closing config.log, so it can be properly (re)opened and
3800     # appended to by config.status. When coming back to configure, we
3801     # need to make the FD available again.
3802     if test "$no_create" != yes; then
3803     ac_cs_success=:
3804     exec 5>/dev/null
3805     $SHELL $CONFIG_STATUS || ac_cs_success=false
3806     exec 5>>config.log
3807     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3808     # would make configure fail if this is the last instruction.
3809     $ac_cs_success || { (exit 1); exit 1; }
3810     fi
3811 root 1.1