]> cygwin.com Git - cygwin-apps/cygutils.git/blob - configure
Add col; regenerate autofiles
[cygwin-apps/cygutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53a for cygutils 1.0.0.
4 #
5 # Report bugs to <cwilson@ece.gatech.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25
26 # NLS nuisances.
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
35 { $as_unset LANG || test "${LANG+set}" != set; } ||
36 { LANG=C; export LANG; }
37 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
38 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
39 { LC_ALL=C; export LC_ALL; }
40 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
41 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
42 { LC_TIME=C; export LC_TIME; }
43 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
44 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
45 { LC_CTYPE=C; export LC_CTYPE; }
46 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
47 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
48 { LANGUAGE=C; export LANGUAGE; }
49 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
50 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
51 { LC_COLLATE=C; export LC_COLLATE; }
52 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
53 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
54 { LC_NUMERIC=C; export LC_NUMERIC; }
55 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
56 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
57 { LC_MESSAGES=C; export LC_MESSAGES; }
58
59
60 # Required to use basename.
61 if expr a : '\(a\)' >/dev/null 2>&1; then
62 as_expr=expr
63 else
64 as_expr=false
65 fi
66
67 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 as_basename=basename
69 else
70 as_basename=false
71 fi
72
73
74 # Name of the executable.
75 as_me=`$as_basename "$0" ||
76 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77 X"$0" : 'X\(//\)$' \| \
78 X"$0" : 'X\(/\)$' \| \
79 . : '\(.\)' 2>/dev/null ||
80 echo X/"$0" |
81 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82 /^X\/\(\/\/\)$/{ s//\1/; q; }
83 /^X\/\(\/\).*/{ s//\1/; q; }
84 s/.*/./; q'`
85
86
87 # PATH needs CR, and LINENO needs CR and PATH.
88 # Avoid depending upon Character Ranges.
89 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92 as_cr_digits='0123456789'
93 as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95 # The user is always right.
96 if test "${PATH_SEPARATOR+set}" != set; then
97 echo "#! /bin/sh" >conftest.sh
98 echo "exit 0" >>conftest.sh
99 chmod +x conftest.sh
100 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
101 PATH_SEPARATOR=';'
102 else
103 PATH_SEPARATOR=:
104 fi
105 rm -f conftest.sh
106 fi
107
108
109 as_lineno_1=$LINENO
110 as_lineno_2=$LINENO
111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112 test "x$as_lineno_1" != "x$as_lineno_2" &&
113 test "x$as_lineno_3" = "x$as_lineno_2" || {
114 # Find who we are. Look in the path if we contain no path at all
115 # relative or not.
116 case $0 in
117 *[\\/]* ) as_myself=$0 ;;
118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119 for as_dir in $PATH
120 do
121 IFS=$as_save_IFS
122 test -z "$as_dir" && as_dir=.
123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124 done
125
126 ;;
127 esac
128 # We did not find ourselves, most probably we were run as `sh COMMAND'
129 # in which case we are not to be found in the path.
130 if test "x$as_myself" = x; then
131 as_myself=$0
132 fi
133 if test ! -f "$as_myself"; then
134 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135 { (exit 1); exit 1; }; }
136 fi
137 case $CONFIG_SHELL in
138 '')
139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141 do
142 IFS=$as_save_IFS
143 test -z "$as_dir" && as_dir=.
144 for as_base in sh bash ksh sh5; do
145 case $as_dir in
146 /*)
147 if ("$as_dir/$as_base" -c '
148 as_lineno_1=$LINENO
149 as_lineno_2=$LINENO
150 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151 test "x$as_lineno_1" != "x$as_lineno_2" &&
152 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
153 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155 CONFIG_SHELL=$as_dir/$as_base
156 export CONFIG_SHELL
157 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 fi;;
159 esac
160 done
161 done
162 ;;
163 esac
164
165 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166 # uniformly replaced by the line number. The first 'sed' inserts a
167 # line-number line before each line; the second 'sed' does the real
168 # work. The second script uses 'N' to pair each line-number line
169 # with the numbered line, and appends trailing '-' during
170 # substitution so that $LINENO is not a special case at line end.
171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
173 sed '=' <$as_myself |
174 sed '
175 N
176 s,$,-,
177 : loop
178 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179 t loop
180 s,-$,,
181 s,^['$as_cr_digits']*\n,,
182 ' >$as_me.lineno &&
183 chmod +x $as_me.lineno ||
184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185 { (exit 1); exit 1; }; }
186
187 # Don't try to exec as it changes $[0], causing all sort of problems
188 # (the dirname of $[0] is not the place where we might find the
189 # original and so on. Autoconf is especially sensible to this).
190 . ./$as_me.lineno
191 # Exit status is that of the last command.
192 exit
193 }
194
195
196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197 *c*,-n*) ECHO_N= ECHO_C='
198 ' ECHO_T=' ' ;;
199 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
201 esac
202
203 if expr a : '\(a\)' >/dev/null 2>&1; then
204 as_expr=expr
205 else
206 as_expr=false
207 fi
208
209 rm -f conf$$ conf$$.exe conf$$.file
210 echo >conf$$.file
211 if ln -s conf$$.file conf$$ 2>/dev/null; then
212 # We could just check for DJGPP; but this test a) works b) is more generic
213 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214 if test -f conf$$.exe; then
215 # Don't use ln at all; we don't have any links
216 as_ln_s='cp -p'
217 else
218 as_ln_s='ln -s'
219 fi
220 elif ln conf$$.file conf$$ 2>/dev/null; then
221 as_ln_s=ln
222 else
223 as_ln_s='cp -p'
224 fi
225 rm -f conf$$ conf$$.exe conf$$.file
226
227 if mkdir -p . 2>/dev/null; then
228 as_mkdir_p=:
229 else
230 as_mkdir_p=false
231 fi
232
233 as_executable_p="test -f"
234
235 # Sed expression to map a string onto a valid CPP name.
236 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
237
238 # Sed expression to map a string onto a valid variable name.
239 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
240
241
242 # IFS
243 # We need space, tab and new line, in precisely that order.
244 as_nl='
245 '
246 IFS=" $as_nl"
247
248 # CDPATH.
249 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
250
251
252 # Name of the host.
253 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
254 # so uname gets run too.
255 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
257 exec 6>&1
258
259 #
260 # Initializations.
261 #
262 ac_default_prefix=/usr/local
263 cross_compiling=no
264 subdirs=
265 MFLAGS=
266 MAKEFLAGS=
267 SHELL=${CONFIG_SHELL-/bin/sh}
268
269 # Maximum number of lines to put in a shell here document.
270 # This variable seems obsolete. It should probably be removed, and
271 # only ac_max_sed_lines should be used.
272 : ${ac_max_here_lines=38}
273
274 # Identity of this package.
275 PACKAGE_NAME='cygutils'
276 PACKAGE_TARNAME='cygutils'
277 PACKAGE_VERSION='1.0.0'
278 PACKAGE_STRING='cygutils 1.0.0'
279 PACKAGE_BUGREPORT='cwilson@ece.gatech.edu'
280
281 ac_unique_file="config.h.in"
282 # Factoring default headers for most tests.
283 ac_includes_default="\
284 #include <stdio.h>
285 #if HAVE_SYS_TYPES_H
286 # include <sys/types.h>
287 #endif
288 #if HAVE_SYS_STAT_H
289 # include <sys/stat.h>
290 #endif
291 #if STDC_HEADERS
292 # include <stdlib.h>
293 # include <stddef.h>
294 #else
295 # if HAVE_STDLIB_H
296 # include <stdlib.h>
297 # endif
298 #endif
299 #if HAVE_STRING_H
300 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <memory.h>
302 # endif
303 # include <string.h>
304 #endif
305 #if HAVE_STRINGS_H
306 # include <strings.h>
307 #endif
308 #if HAVE_INTTYPES_H
309 # include <inttypes.h>
310 #else
311 # if HAVE_STDINT_H
312 # include <stdint.h>
313 # endif
314 #endif
315 #if HAVE_UNISTD_H
316 # include <unistd.h>
317 #endif"
318
319
320 # Initialize some variables set by options.
321 ac_init_help=
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
325 cache_file=/dev/null
326 exec_prefix=NONE
327 no_create=
328 no_recursion=
329 prefix=NONE
330 program_prefix=NONE
331 program_suffix=NONE
332 program_transform_name=s,x,x,
333 silent=
334 site=
335 srcdir=
336 verbose=
337 x_includes=NONE
338 x_libraries=NONE
339
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
357
358 ac_prev=
359 for ac_option
360 do
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
366 fi
367
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
372 case $ac_option in
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 bindir=$ac_optarg ;;
378
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
393
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
398 datadir=$ac_optarg ;;
399
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
408
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 *) ac_optarg=yes ;;
419 esac
420 eval "enable_$ac_feature='$ac_optarg'" ;;
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir=$ac_optarg ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir=$ac_optarg ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix=$ac_optarg ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir=$ac_optarg ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir=$ac_optarg ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site=$ac_optarg ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir=$ac_optarg ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
590
591 -with-* | --with-*)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 *) ac_optarg=yes ;;
601 esac
602 eval "with_$ac_package='$ac_optarg'" ;;
603
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
630
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
634 ;;
635
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
645
646 *)
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 ;;
653
654 esac
655 done
656
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
661 fi
662
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
665 do
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672 done
673
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
677 do
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
683 esac
684 done
685
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
689 build=$build_alias
690 host=$host_alias
691 target=$target_alias
692
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702 fi
703
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707 test "$silent" = yes && exec 6>/dev/null
708
709
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720 echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730 else
731 ac_srcdir_defaulted=no
732 fi
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
737 else
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
740 fi
741 fi
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures cygutils 1.0.0 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
833
834 cat <<\_ACEOF
835
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of cygutils 1.0.0:";;
846 esac
847 cat <<\_ACEOF
848
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-maintainer-mode enable make rules and dependencies not useful
853 (and sometimes confusing) to the casual installer
854 --disable-dependency-tracking Speeds up one-time builds
855 --enable-dependency-tracking Do not reject slow dependency extractors
856
857 Some influential environment variables:
858 CC C compiler command
859 CFLAGS C compiler flags
860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
861 nonstandard directory <lib dir>
862 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
863 headers in a nonstandard directory <include dir>
864 CPP C preprocessor
865
866 Use these variables to override the choices made by `configure' or to help
867 it to find libraries and programs with nonstandard names/locations.
868
869 Report bugs to <cwilson@ece.gatech.edu>.
870 _ACEOF
871 fi
872
873 if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
875 ac_popdir=`pwd`
876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
878 ac_builddir=.
879
880 if test "$ac_dir" != .; then
881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 else
885 ac_dir_suffix= ac_top_builddir=
886 fi
887
888 case $srcdir in
889 .) # No --srcdir option. We are building in place.
890 ac_srcdir=.
891 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=.
893 else
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 fi ;;
896 [\\/]* | ?:[\\/]* ) # Absolute path.
897 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
899 *) # Relative path.
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 esac
903 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904 # absolute.
905 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909
910 cd $ac_dir
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f $ac_srcdir/configure.gnu; then
913 echo
914 $SHELL $ac_srcdir/configure.gnu --help=recursive
915 elif test -f $ac_srcdir/configure; then
916 echo
917 $SHELL $ac_srcdir/configure --help=recursive
918 elif test -f $ac_srcdir/configure.ac ||
919 test -f $ac_srcdir/configure.in; then
920 echo
921 $ac_configure --help
922 else
923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924 fi
925 cd $ac_popdir
926 done
927 fi
928
929 test -n "$ac_init_help" && exit 0
930 if $ac_init_version; then
931 cat <<\_ACEOF
932 cygutils configure 1.0.0
933 generated by GNU Autoconf 2.53a
934
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940 exit 0
941 fi
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
946
947 It was created by cygutils $as_me 1.0.0, which was
948 generated by GNU Autoconf 2.53a. Invocation command line was
949
950 $ $0 $@
951
952 _ACEOF
953 {
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
958
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975
976 _ASUNAME
977
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
980 do
981 IFS=$as_save_IFS
982 test -z "$as_dir" && as_dir=.
983 echo "PATH: $as_dir"
984 done
985
986 } >&5
987
988 cat >&5 <<_ACEOF
989
990
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
994
995 _ACEOF
996
997
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Also quote any args containing shell meta-characters.
1001 ac_configure_args=
1002 ac_sep=
1003 for ac_arg
1004 do
1005 case $ac_arg in
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n ) continue ;;
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 continue ;;
1011 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1012 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1013 esac
1014 case " $ac_configure_args " in
1015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1016 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1017 ac_sep=" " ;;
1018 esac
1019 # Get rid of the leading space.
1020 done
1021
1022 # When interrupted or exit'd, cleanup temporary files, and complete
1023 # config.log. We remove comments because anyway the quotes in there
1024 # would cause problems or look ugly.
1025 # WARNING: Be sure not to use single quotes in there, as some shells,
1026 # such as our DU 5.0 friend, will then `close' the trap.
1027 trap 'exit_status=$?
1028 # Save into config.log some information that might help in debugging.
1029 {
1030 echo
1031 cat <<\_ASBOX
1032 ## ---------------- ##
1033 ## Cache variables. ##
1034 ## ---------------- ##
1035 _ASBOX
1036 echo
1037 # The following way of writing the cache mishandles newlines in values,
1038 {
1039 (set) 2>&1 |
1040 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1041 *ac_space=\ *)
1042 sed -n \
1043 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1045 ;;
1046 *)
1047 sed -n \
1048 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1049 ;;
1050 esac;
1051 }
1052 echo
1053 if test -s confdefs.h; then
1054 cat <<\_ASBOX
1055 ## ----------- ##
1056 ## confdefs.h. ##
1057 ## ----------- ##
1058 _ASBOX
1059 echo
1060 sed "/^$/d" confdefs.h
1061 echo
1062 fi
1063 test "$ac_signal" != 0 &&
1064 echo "$as_me: caught signal $ac_signal"
1065 echo "$as_me: exit $exit_status"
1066 } >&5
1067 rm -f core core.* *.core &&
1068 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1069 exit $exit_status
1070 ' 0
1071 for ac_signal in 1 2 13 15; do
1072 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1073 done
1074 ac_signal=0
1075
1076 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1077 rm -rf conftest* confdefs.h
1078 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1079 echo >confdefs.h
1080
1081 # Predefined preprocessor variables.
1082
1083 cat >>confdefs.h <<_ACEOF
1084 #define PACKAGE_NAME "$PACKAGE_NAME"
1085 _ACEOF
1086
1087
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1090 _ACEOF
1091
1092
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1095 _ACEOF
1096
1097
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_STRING "$PACKAGE_STRING"
1100 _ACEOF
1101
1102
1103 cat >>confdefs.h <<_ACEOF
1104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1105 _ACEOF
1106
1107
1108 # Let the site file select an alternate cache file if it wants to.
1109 # Prefer explicitly selected file to automatically selected ones.
1110 if test -z "$CONFIG_SITE"; then
1111 if test "x$prefix" != xNONE; then
1112 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1113 else
1114 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1115 fi
1116 fi
1117 for ac_site_file in $CONFIG_SITE; do
1118 if test -r "$ac_site_file"; then
1119 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1120 echo "$as_me: loading site script $ac_site_file" >&6;}
1121 sed 's/^/| /' "$ac_site_file" >&5
1122 . "$ac_site_file"
1123 fi
1124 done
1125
1126 if test -r "$cache_file"; then
1127 # Some versions of bash will fail to source /dev/null (special
1128 # files actually), so we avoid doing that.
1129 if test -f "$cache_file"; then
1130 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1131 echo "$as_me: loading cache $cache_file" >&6;}
1132 case $cache_file in
1133 [\\/]* | ?:[\\/]* ) . $cache_file;;
1134 *) . ./$cache_file;;
1135 esac
1136 fi
1137 else
1138 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1139 echo "$as_me: creating cache $cache_file" >&6;}
1140 >$cache_file
1141 fi
1142
1143 # Check that the precious variables saved in the cache have kept the same
1144 # value.
1145 ac_cache_corrupted=false
1146 for ac_var in `(set) 2>&1 |
1147 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1149 eval ac_new_set=\$ac_env_${ac_var}_set
1150 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1151 eval ac_new_val="\$ac_env_${ac_var}_value"
1152 case $ac_old_set,$ac_new_set in
1153 set,)
1154 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1155 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1156 ac_cache_corrupted=: ;;
1157 ,set)
1158 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1159 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1160 ac_cache_corrupted=: ;;
1161 ,);;
1162 *)
1163 if test "x$ac_old_val" != "x$ac_new_val"; then
1164 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1165 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1166 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1167 echo "$as_me: former value: $ac_old_val" >&2;}
1168 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1169 echo "$as_me: current value: $ac_new_val" >&2;}
1170 ac_cache_corrupted=:
1171 fi;;
1172 esac
1173 # Pass precious variables to config.status.
1174 if test "$ac_new_set" = set; then
1175 case $ac_new_val in
1176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1177 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1178 *) ac_arg=$ac_var=$ac_new_val ;;
1179 esac
1180 case " $ac_configure_args " in
1181 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1182 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1183 esac
1184 fi
1185 done
1186 if $ac_cache_corrupted; then
1187 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1188 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1189 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1190 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1191 { (exit 1); exit 1; }; }
1192 fi
1193
1194 ac_ext=c
1195 ac_cpp='$CPP $CPPFLAGS'
1196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227 # Add the stamp file to the list of files AC keeps track of,
1228 # along with our hook.
1229 ac_config_headers="$ac_config_headers config.h"
1230
1231
1232
1233 am__api_version="1.6"
1234 ac_aux_dir=
1235 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1236 if test -f $ac_dir/install-sh; then
1237 ac_aux_dir=$ac_dir
1238 ac_install_sh="$ac_aux_dir/install-sh -c"
1239 break
1240 elif test -f $ac_dir/install.sh; then
1241 ac_aux_dir=$ac_dir
1242 ac_install_sh="$ac_aux_dir/install.sh -c"
1243 break
1244 elif test -f $ac_dir/shtool; then
1245 ac_aux_dir=$ac_dir
1246 ac_install_sh="$ac_aux_dir/shtool install -c"
1247 break
1248 fi
1249 done
1250 if test -z "$ac_aux_dir"; then
1251 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1252 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1253 { (exit 1); exit 1; }; }
1254 fi
1255 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1256 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1257 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1258
1259 # Find a good install program. We prefer a C program (faster),
1260 # so one script is as good as another. But avoid the broken or
1261 # incompatible versions:
1262 # SysV /etc/install, /usr/sbin/install
1263 # SunOS /usr/etc/install
1264 # IRIX /sbin/install
1265 # AIX /bin/install
1266 # AmigaOS /C/install, which installs bootblocks on floppy discs
1267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1270 # ./install, which can be erroneously created by make from ./install.sh.
1271 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1272 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1273 if test -z "$INSTALL"; then
1274 if test "${ac_cv_path_install+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1276 else
1277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1278 for as_dir in $PATH
1279 do
1280 IFS=$as_save_IFS
1281 test -z "$as_dir" && as_dir=.
1282 # Account for people who put trailing slashes in PATH elements.
1283 case $as_dir/ in
1284 ./ | .// | /cC/* | \
1285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1286 /usr/ucb/* ) ;;
1287 *)
1288 # OSF1 and SCO ODT 3.0 have their own names for install.
1289 # Don't use installbsd from OSF since it installs stuff as root
1290 # by default.
1291 for ac_prog in ginstall scoinst install; do
1292 for ac_exec_ext in '' $ac_executable_extensions; do
1293 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1294 if test $ac_prog = install &&
1295 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention.
1297 :
1298 elif test $ac_prog = install &&
1299 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1300 # program-specific install script used by HP pwplus--don't use.
1301 :
1302 else
1303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1304 break 3
1305 fi
1306 fi
1307 done
1308 done
1309 ;;
1310 esac
1311 done
1312
1313
1314 fi
1315 if test "${ac_cv_path_install+set}" = set; then
1316 INSTALL=$ac_cv_path_install
1317 else
1318 # As a last resort, use the slow shell script. We don't cache a
1319 # path for INSTALL within a source directory, because that will
1320 # break other packages using the cache if that directory is
1321 # removed, or if the path is relative.
1322 INSTALL=$ac_install_sh
1323 fi
1324 fi
1325 echo "$as_me:$LINENO: result: $INSTALL" >&5
1326 echo "${ECHO_T}$INSTALL" >&6
1327
1328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1329 # It thinks the first close brace ends the variable substitution.
1330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1331
1332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1333
1334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1335
1336 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1337 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1338 # Just in case
1339 sleep 1
1340 echo timestamp > conftest.file
1341 # Do `set' in a subshell so we don't clobber the current shell's
1342 # arguments. Must try -L first in case configure is actually a
1343 # symlink; some systems play weird games with the mod time of symlinks
1344 # (eg FreeBSD returns the mod time of the symlink's containing
1345 # directory).
1346 if (
1347 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1348 if test "$*" = "X"; then
1349 # -L didn't work.
1350 set X `ls -t $srcdir/configure conftest.file`
1351 fi
1352 rm -f conftest.file
1353 if test "$*" != "X $srcdir/configure conftest.file" \
1354 && test "$*" != "X conftest.file $srcdir/configure"; then
1355
1356 # If neither matched, then we have a broken ls. This can happen
1357 # if, for instance, CONFIG_SHELL is bash and it inherits a
1358 # broken ls alias from the environment. This has actually
1359 # happened. Such a system could not be considered "sane".
1360 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1361 alias in your environment" >&5
1362 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1363 alias in your environment" >&2;}
1364 { (exit 1); exit 1; }; }
1365 fi
1366
1367 test "$2" = conftest.file
1368 )
1369 then
1370 # Ok.
1371 :
1372 else
1373 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1374 Check your system clock" >&5
1375 echo "$as_me: error: newly created file is older than distributed files!
1376 Check your system clock" >&2;}
1377 { (exit 1); exit 1; }; }
1378 fi
1379 echo "$as_me:$LINENO: result: yes" >&5
1380 echo "${ECHO_T}yes" >&6
1381 test "$program_prefix" != NONE &&
1382 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1383 # Use a double $ so make ignores it.
1384 test "$program_suffix" != NONE &&
1385 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1386 # Double any \ or $. echo might interpret backslashes.
1387 # By default was `s,x,x', remove it if useless.
1388 cat <<\_ACEOF >conftest.sed
1389 s/[\\$]/&&/g;s/;s,x,x,$//
1390 _ACEOF
1391 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1392 rm conftest.sed
1393
1394
1395 # expand $ac_aux_dir to an absolute path
1396 am_aux_dir=`cd $ac_aux_dir && pwd`
1397
1398 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1399 # Use eval to expand $SHELL
1400 if eval "$MISSING --run true"; then
1401 am_missing_run="$MISSING --run "
1402 else
1403 am_missing_run=
1404 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1405 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1406 fi
1407
1408 for ac_prog in gawk mawk nawk awk
1409 do
1410 # Extract the first word of "$ac_prog", so it can be a program name with args.
1411 set dummy $ac_prog; ac_word=$2
1412 echo "$as_me:$LINENO: checking for $ac_word" >&5
1413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414 if test "${ac_cv_prog_AWK+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417 if test -n "$AWK"; then
1418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1419 else
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 for as_dir in $PATH
1422 do
1423 IFS=$as_save_IFS
1424 test -z "$as_dir" && as_dir=.
1425 for ac_exec_ext in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1427 ac_cv_prog_AWK="$ac_prog"
1428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1429 break 2
1430 fi
1431 done
1432 done
1433
1434 fi
1435 fi
1436 AWK=$ac_cv_prog_AWK
1437 if test -n "$AWK"; then
1438 echo "$as_me:$LINENO: result: $AWK" >&5
1439 echo "${ECHO_T}$AWK" >&6
1440 else
1441 echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1443 fi
1444
1445 test -n "$AWK" && break
1446 done
1447
1448 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1449 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1450 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1451 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 cat >conftest.make <<\_ACEOF
1455 all:
1456 @echo 'ac_maketemp="${MAKE}"'
1457 _ACEOF
1458 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1459 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1460 if test -n "$ac_maketemp"; then
1461 eval ac_cv_prog_make_${ac_make}_set=yes
1462 else
1463 eval ac_cv_prog_make_${ac_make}_set=no
1464 fi
1465 rm -f conftest.make
1466 fi
1467 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1468 echo "$as_me:$LINENO: result: yes" >&5
1469 echo "${ECHO_T}yes" >&6
1470 SET_MAKE=
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1474 SET_MAKE="MAKE=${MAKE-make}"
1475 fi
1476
1477 # test to see if srcdir already configured
1478 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1479 test -f $srcdir/config.status; then
1480 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1481 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1482 { (exit 1); exit 1; }; }
1483 fi
1484
1485 # Define the identity of the package.
1486 PACKAGE=cygutils
1487 VERSION=1.0.0
1488
1489
1490 cat >>confdefs.h <<_ACEOF
1491 #define PACKAGE "$PACKAGE"
1492 _ACEOF
1493
1494
1495 cat >>confdefs.h <<_ACEOF
1496 #define VERSION "$VERSION"
1497 _ACEOF
1498
1499 # Some tools Automake needs.
1500
1501 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1502
1503
1504 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1505
1506
1507 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1508
1509
1510 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1511
1512
1513 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1514
1515
1516 AMTAR=${AMTAR-"${am_missing_run}tar"}
1517
1518 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1519
1520 # Installed binaries are usually stripped using `strip' when the user
1521 # run `make install-strip'. However `strip' might not be the right
1522 # tool to use in cross-compilation environments, therefore Automake
1523 # will honor the `STRIP' environment variable to overrule this program.
1524 if test "$cross_compiling" != no; then
1525 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}strip; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_STRIP+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533 if test -n "$STRIP"; then
1534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 break 2
1546 fi
1547 done
1548 done
1549
1550 fi
1551 fi
1552 STRIP=$ac_cv_prog_STRIP
1553 if test -n "$STRIP"; then
1554 echo "$as_me:$LINENO: result: $STRIP" >&5
1555 echo "${ECHO_T}$STRIP" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 fi
1560
1561 fi
1562 if test -z "$ac_cv_prog_STRIP"; then
1563 ac_ct_STRIP=$STRIP
1564 # Extract the first word of "strip", so it can be a program name with args.
1565 set dummy strip; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571 if test -n "$ac_ct_STRIP"; then
1572 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_ac_ct_STRIP="strip"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583 break 2
1584 fi
1585 done
1586 done
1587
1588 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1589 fi
1590 fi
1591 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1592 if test -n "$ac_ct_STRIP"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1594 echo "${ECHO_T}$ac_ct_STRIP" >&6
1595 else
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1598 fi
1599
1600 STRIP=$ac_ct_STRIP
1601 else
1602 STRIP="$ac_cv_prog_STRIP"
1603 fi
1604
1605 fi
1606 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1607
1608 # We need awk for the "check" target. The system "awk" is bad on
1609 # some platforms.
1610
1611
1612
1613 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1614 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1615 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1616 if test "${enable_maintainer_mode+set}" = set; then
1617 enableval="$enable_maintainer_mode"
1618 USE_MAINTAINER_MODE=$enableval
1619 else
1620 USE_MAINTAINER_MODE=no
1621 fi;
1622 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1623 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1624
1625
1626 if test $USE_MAINTAINER_MODE = yes; then
1627 MAINTAINER_MODE_TRUE=
1628 MAINTAINER_MODE_FALSE='#'
1629 else
1630 MAINTAINER_MODE_TRUE='#'
1631 MAINTAINER_MODE_FALSE=
1632 fi
1633
1634 MAINT=$MAINTAINER_MODE_TRUE
1635
1636
1637
1638 # Checks for programs.
1639 ac_ext=c
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1644 if test -n "$ac_tool_prefix"; then
1645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1646 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652 if test -n "$CC"; then
1653 ac_cv_prog_CC="$CC" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 CC=$ac_cv_prog_CC
1672 if test -n "$CC"; then
1673 echo "$as_me:$LINENO: result: $CC" >&5
1674 echo "${ECHO_T}$CC" >&6
1675 else
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680 fi
1681 if test -z "$ac_cv_prog_CC"; then
1682 ac_ct_CC=$CC
1683 # Extract the first word of "gcc", so it can be a program name with args.
1684 set dummy gcc; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 if test -n "$ac_ct_CC"; then
1691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_ac_ct_CC="gcc"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704 done
1705 done
1706
1707 fi
1708 fi
1709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1710 if test -n "$ac_ct_CC"; then
1711 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1712 echo "${ECHO_T}$ac_ct_CC" >&6
1713 else
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 fi
1717
1718 CC=$ac_ct_CC
1719 else
1720 CC="$ac_cv_prog_CC"
1721 fi
1722
1723 if test -z "$CC"; then
1724 if test -n "$ac_tool_prefix"; then
1725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1726 set dummy ${ac_tool_prefix}cc; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732 if test -n "$CC"; then
1733 ac_cv_prog_CC="$CC" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_CC="${ac_tool_prefix}cc"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746 done
1747 done
1748
1749 fi
1750 fi
1751 CC=$ac_cv_prog_CC
1752 if test -n "$CC"; then
1753 echo "$as_me:$LINENO: result: $CC" >&5
1754 echo "${ECHO_T}$CC" >&6
1755 else
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760 fi
1761 if test -z "$ac_cv_prog_CC"; then
1762 ac_ct_CC=$CC
1763 # Extract the first word of "cc", so it can be a program name with args.
1764 set dummy cc; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770 if test -n "$ac_ct_CC"; then
1771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_ac_ct_CC="cc"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1783 fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1790 if test -n "$ac_ct_CC"; then
1791 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1792 echo "${ECHO_T}$ac_ct_CC" >&6
1793 else
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798 CC=$ac_ct_CC
1799 else
1800 CC="$ac_cv_prog_CC"
1801 fi
1802
1803 fi
1804 if test -z "$CC"; then
1805 # Extract the first word of "cc", so it can be a program name with args.
1806 set dummy cc; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814 else
1815 ac_prog_rejected=no
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1824 ac_prog_rejected=yes
1825 continue
1826 fi
1827 ac_cv_prog_CC="cc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1830 fi
1831 done
1832 done
1833
1834 if test $ac_prog_rejected = yes; then
1835 # We found a bogon in the path, so make sure we never use it.
1836 set dummy $ac_cv_prog_CC
1837 shift
1838 if test $# != 0; then
1839 # We chose a different compiler from the bogus one.
1840 # However, it has the same basename, so the bogon will be chosen
1841 # first if we set CC to just the basename; use the full file name.
1842 shift
1843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1844 fi
1845 fi
1846 fi
1847 fi
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1852 else
1853 echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 fi
1856
1857 fi
1858 if test -z "$CC"; then
1859 if test -n "$ac_tool_prefix"; then
1860 for ac_prog in cl
1861 do
1862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890 echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897 test -n "$CC" && break
1898 done
1899 fi
1900 if test -z "$CC"; then
1901 ac_ct_CC=$CC
1902 for ac_prog in cl
1903 do
1904 # Extract the first word of "$ac_prog", so it can be a program name with args.
1905 set dummy $ac_prog; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911 if test -n "$ac_ct_CC"; then
1912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_ac_ct_CC="$ac_prog"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 break 2
1924 fi
1925 done
1926 done
1927
1928 fi
1929 fi
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 echo "${ECHO_T}$ac_ct_CC" >&6
1934 else
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 fi
1938
1939 test -n "$ac_ct_CC" && break
1940 done
1941
1942 CC=$ac_ct_CC
1943 fi
1944
1945 fi
1946
1947
1948 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1949 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1950 { (exit 1); exit 1; }; }
1951
1952 # Provide some information about the compiler.
1953 echo "$as_me:$LINENO:" \
1954 "checking for C compiler version" >&5
1955 ac_compiler=`set X $ac_compile; echo $2`
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1957 (eval $ac_compiler --version </dev/null >&5) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1962 (eval $ac_compiler -v </dev/null >&5) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1967 (eval $ac_compiler -V </dev/null >&5) 2>&5
1968 ac_status=$?
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }
1971
1972 cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1975
1976 #ifdef F77_DUMMY_MAIN
1977 # ifdef __cplusplus
1978 extern "C"
1979 # endif
1980 int F77_DUMMY_MAIN() { return 1; }
1981 #endif
1982 int
1983 main ()
1984 {
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1994 # of exeext.
1995 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1996 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999 (eval $ac_link_default) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; then
2003 # Find the output, starting from the most likely. This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005 # resort.
2006
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2009 ac_cv_exeext=
2010 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2011 ls a.out conftest 2>/dev/null;
2012 ls a.* conftest.* 2>/dev/null`; do
2013 case $ac_file in
2014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2015 a.out ) # We found the default executable, but exeext='' is most
2016 # certainly right.
2017 break;;
2018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2020 export ac_cv_exeext
2021 break;;
2022 * ) break;;
2023 esac
2024 done
2025 else
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2029 echo "$as_me: error: C compiler cannot create executables" >&2;}
2030 { (exit 77); exit 77; }; }
2031 fi
2032
2033 ac_exeext=$ac_cv_exeext
2034 echo "$as_me:$LINENO: result: $ac_file" >&5
2035 echo "${ECHO_T}$ac_file" >&6
2036
2037 # Check the compiler produces executables we can run. If not, either
2038 # the compiler is broken, or we cross compile.
2039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2042 # If not cross compiling, check that we can run a simple program.
2043 if test "$cross_compiling" != yes; then
2044 if { ac_try='./$ac_file'
2045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 (eval $ac_try) 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2050 cross_compiling=no
2051 else
2052 if test "$cross_compiling" = maybe; then
2053 cross_compiling=yes
2054 else
2055 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&5
2057 echo "$as_me: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'." >&2;}
2059 { (exit 1); exit 1; }; }
2060 fi
2061 fi
2062 fi
2063 echo "$as_me:$LINENO: result: yes" >&5
2064 echo "${ECHO_T}yes" >&6
2065
2066 rm -f a.out a.exe conftest$ac_cv_exeext
2067 ac_clean_files=$ac_clean_files_save
2068 # Check the compiler produces executables we can run. If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2073 echo "${ECHO_T}$cross_compiling" >&6
2074
2075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2078 (eval $ac_link) 2>&5
2079 ac_status=$?
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; then
2082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2084 # work properly (i.e., refer to `conftest.exe'), while it won't with
2085 # `rm'.
2086 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2087 case $ac_file in
2088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2090 export ac_cv_exeext
2091 break;;
2092 * ) break;;
2093 esac
2094 done
2095 else
2096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2098 { (exit 1); exit 1; }; }
2099 fi
2100
2101 rm -f conftest$ac_cv_exeext
2102 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2103 echo "${ECHO_T}$ac_cv_exeext" >&6
2104
2105 rm -f conftest.$ac_ext
2106 EXEEXT=$ac_cv_exeext
2107 ac_exeext=$EXEEXT
2108 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2110 if test "${ac_cv_objext+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2116
2117 #ifdef F77_DUMMY_MAIN
2118 # ifdef __cplusplus
2119 extern "C"
2120 # endif
2121 int F77_DUMMY_MAIN() { return 1; }
2122 #endif
2123 int
2124 main ()
2125 {
2126
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 rm -f conftest.o conftest.obj
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; then
2137 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2138 case $ac_file in
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2141 break;;
2142 esac
2143 done
2144 else
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2149 { (exit 1); exit 1; }; }
2150 fi
2151
2152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2153 fi
2154 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2155 echo "${ECHO_T}$ac_cv_objext" >&6
2156 OBJEXT=$ac_cv_objext
2157 ac_objext=$OBJEXT
2158 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2166
2167 #ifdef F77_DUMMY_MAIN
2168 # ifdef __cplusplus
2169 extern "C"
2170 # endif
2171 int F77_DUMMY_MAIN() { return 1; }
2172 #endif
2173 int
2174 main ()
2175 {
2176 #ifndef __GNUC__
2177 choke me
2178 #endif
2179
2180 ;
2181 return 0;
2182 }
2183 _ACEOF
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 ac_compiler_gnu=yes
2197 else
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 ac_compiler_gnu=no
2201 fi
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2204
2205 fi
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2211 CFLAGS="-g"
2212 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2213 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cc_g+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2220
2221 #ifdef F77_DUMMY_MAIN
2222 # ifdef __cplusplus
2223 extern "C"
2224 # endif
2225 int F77_DUMMY_MAIN() { return 1; }
2226 #endif
2227 int
2228 main ()
2229 {
2230
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 ac_cv_prog_cc_g=yes
2248 else
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 ac_cv_prog_cc_g=no
2252 fi
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2254 fi
2255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257 if test "$ac_test_CFLAGS" = set; then
2258 CFLAGS=$ac_save_CFLAGS
2259 elif test $ac_cv_prog_cc_g = yes; then
2260 if test "$GCC" = yes; then
2261 CFLAGS="-g -O2"
2262 else
2263 CFLAGS="-g"
2264 fi
2265 else
2266 if test "$GCC" = yes; then
2267 CFLAGS="-O2"
2268 else
2269 CFLAGS=
2270 fi
2271 fi
2272 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2273 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2274 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 ac_cv_prog_cc_stdc=no
2278 ac_save_CC=$CC
2279 cat >conftest.$ac_ext <<_ACEOF
2280 #line $LINENO "configure"
2281 #include "confdefs.h"
2282 #include <stdarg.h>
2283 #include <stdio.h>
2284 #include <sys/types.h>
2285 #include <sys/stat.h>
2286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2287 struct buf { int x; };
2288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2289 static char *e (p, i)
2290 char **p;
2291 int i;
2292 {
2293 return p[i];
2294 }
2295 static char *f (char * (*g) (char **, int), char **p, ...)
2296 {
2297 char *s;
2298 va_list v;
2299 va_start (v,p);
2300 s = g (p, va_arg (v,int));
2301 va_end (v);
2302 return s;
2303 }
2304 int test (int i, double x);
2305 struct s1 {int (*f) (int a);};
2306 struct s2 {int (*f) (double a);};
2307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2308 int argc;
2309 char **argv;
2310 #ifdef F77_DUMMY_MAIN
2311 # ifdef __cplusplus
2312 extern "C"
2313 # endif
2314 int F77_DUMMY_MAIN() { return 1; }
2315 #endif
2316 int
2317 main ()
2318 {
2319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2320 ;
2321 return 0;
2322 }
2323 _ACEOF
2324 # Don't try gcc -ansi; that turns off useful extensions and
2325 # breaks some systems' header files.
2326 # AIX -qlanglvl=ansi
2327 # Ultrix and OSF/1 -std1
2328 # HP-UX 10.20 and later -Ae
2329 # HP-UX older versions -Aa -D_HPUX_SOURCE
2330 # SVR4 -Xc -D__EXTENSIONS__
2331 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2332 do
2333 CC="$ac_save_CC $ac_arg"
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 ac_cv_prog_cc_stdc=$ac_arg
2347 break
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 fi
2352 rm -f conftest.$ac_objext
2353 done
2354 rm -f conftest.$ac_ext conftest.$ac_objext
2355 CC=$ac_save_CC
2356
2357 fi
2358
2359 case "x$ac_cv_prog_cc_stdc" in
2360 x|xno)
2361 echo "$as_me:$LINENO: result: none needed" >&5
2362 echo "${ECHO_T}none needed" >&6 ;;
2363 *)
2364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2365 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2366 CC="$CC $ac_cv_prog_cc_stdc" ;;
2367 esac
2368
2369 # Some people use a C++ compiler to compile C. Since we use `exit',
2370 # in C++ we need to declare it. In case someone uses the same compiler
2371 # for both compiling C and C++ we need to have the C++ compiler decide
2372 # the declaration of exit, since it's the most demanding environment.
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #ifndef __cplusplus
2375 choke me
2376 #endif
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 for ac_declaration in \
2391 ''\
2392 '#include <stdlib.h>' \
2393 'extern "C" void std::exit (int) throw (); using std::exit;' \
2394 'extern "C" void std::exit (int); using std::exit;' \
2395 'extern "C" void exit (int) throw ();' \
2396 'extern "C" void exit (int);' \
2397 'void exit (int);'
2398 do
2399 cat >conftest.$ac_ext <<_ACEOF
2400 #line $LINENO "configure"
2401 #include "confdefs.h"
2402 #include <stdlib.h>
2403 $ac_declaration
2404 #ifdef F77_DUMMY_MAIN
2405 # ifdef __cplusplus
2406 extern "C"
2407 # endif
2408 int F77_DUMMY_MAIN() { return 1; }
2409 #endif
2410 int
2411 main ()
2412 {
2413 exit (42);
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 :
2431 else
2432 echo "$as_me: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2434 continue
2435 fi
2436 rm -f conftest.$ac_objext conftest.$ac_ext
2437 cat >conftest.$ac_ext <<_ACEOF
2438 #line $LINENO "configure"
2439 #include "confdefs.h"
2440 $ac_declaration
2441 #ifdef F77_DUMMY_MAIN
2442 # ifdef __cplusplus
2443 extern "C"
2444 # endif
2445 int F77_DUMMY_MAIN() { return 1; }
2446 #endif
2447 int
2448 main ()
2449 {
2450 exit (42);
2451 ;
2452 return 0;
2453 }
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 break
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2471 fi
2472 rm -f conftest.$ac_objext conftest.$ac_ext
2473 done
2474 rm -f conftest*
2475 if test -n "$ac_declaration"; then
2476 echo '#ifdef __cplusplus' >>confdefs.h
2477 echo $ac_declaration >>confdefs.h
2478 echo '#endif' >>confdefs.h
2479 fi
2480
2481 else
2482 echo "$as_me: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2484 fi
2485 rm -f conftest.$ac_objext conftest.$ac_ext
2486 ac_ext=c
2487 ac_cpp='$CPP $CPPFLAGS'
2488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491 rm -f .deps 2>/dev/null
2492 mkdir .deps 2>/dev/null
2493 if test -d .deps; then
2494 DEPDIR=.deps
2495 else
2496 # MS-DOS does not allow filenames that begin with a dot.
2497 DEPDIR=_deps
2498 fi
2499 rmdir .deps 2>/dev/null
2500
2501
2502 ac_config_commands="$ac_config_commands depfiles"
2503
2504
2505 am_make=${MAKE-make}
2506 cat > confinc << 'END'
2507 doit:
2508 @echo done
2509 END
2510 # If we don't find an include directive, just comment out the code.
2511 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2512 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2513 am__include="#"
2514 am__quote=
2515 _am_result=none
2516 # First try GNU make style include.
2517 echo "include confinc" > confmf
2518 # We grep out `Entering directory' and `Leaving directory'
2519 # messages which can occur if `w' ends up in MAKEFLAGS.
2520 # In particular we don't look at `^make:' because GNU make might
2521 # be invoked under some other name (usually "gmake"), in which
2522 # case it prints its new name instead of `make'.
2523 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2524 am__include=include
2525 am__quote=
2526 _am_result=GNU
2527 fi
2528 # Now try BSD make style include.
2529 if test "$am__include" = "#"; then
2530 echo '.include "confinc"' > confmf
2531 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2532 am__include=.include
2533 am__quote="\""
2534 _am_result=BSD
2535 fi
2536 fi
2537
2538
2539 echo "$as_me:$LINENO: result: $_am_result" >&5
2540 echo "${ECHO_T}$_am_result" >&6
2541 rm -f confinc confmf
2542
2543 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2544 if test "${enable_dependency_tracking+set}" = set; then
2545 enableval="$enable_dependency_tracking"
2546
2547 fi;
2548 if test "x$enable_dependency_tracking" != xno; then
2549 am_depcomp="$ac_aux_dir/depcomp"
2550 AMDEPBACKSLASH='\'
2551 fi
2552
2553
2554 if test "x$enable_dependency_tracking" != xno; then
2555 AMDEP_TRUE=
2556 AMDEP_FALSE='#'
2557 else
2558 AMDEP_TRUE='#'
2559 AMDEP_FALSE=
2560 fi
2561
2562
2563
2564
2565 depcc="$CC" am_compiler_list=
2566
2567 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2569 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2573 # We make a subdir and do the tests there. Otherwise we can end up
2574 # making bogus files that we don't know about and never remove. For
2575 # instance it was reported that on HP-UX the gcc test will end up
2576 # making a dummy file named `D' -- because `-MD' means `put the output
2577 # in D'.
2578 mkdir conftest.dir
2579 # Copy depcomp to subdir because otherwise we won't find it if we're
2580 # using a relative directory.
2581 cp "$am_depcomp" conftest.dir
2582 cd conftest.dir
2583
2584 am_cv_CC_dependencies_compiler_type=none
2585 if test "$am_compiler_list" = ""; then
2586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2587 fi
2588 for depmode in $am_compiler_list; do
2589 # We need to recreate these files for each test, as the compiler may
2590 # overwrite some of them when testing with obscure command lines.
2591 # This happens at least with the AIX C compiler.
2592 echo '#include "conftest.h"' > conftest.c
2593 echo 'int i;' > conftest.h
2594 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2595
2596 case $depmode in
2597 nosideeffect)
2598 # after this tag, mechanisms are not by side-effect, so they'll
2599 # only be used when explicitly requested
2600 if test "x$enable_dependency_tracking" = xyes; then
2601 continue
2602 else
2603 break
2604 fi
2605 ;;
2606 none) break ;;
2607 esac
2608 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2609 # mode. It turns out that the SunPro C++ compiler does not properly
2610 # handle `-M -o', and we need to detect this.
2611 if depmode=$depmode \
2612 source=conftest.c object=conftest.o \
2613 depfile=conftest.Po tmpdepfile=conftest.TPo \
2614 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2615 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2617 am_cv_CC_dependencies_compiler_type=$depmode
2618 break
2619 fi
2620 done
2621
2622 cd ..
2623 rm -rf conftest.dir
2624 else
2625 am_cv_CC_dependencies_compiler_type=none
2626 fi
2627
2628 fi
2629 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2630 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2631 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2632
2633
2634 # Find a good install program. We prefer a C program (faster),
2635 # so one script is as good as another. But avoid the broken or
2636 # incompatible versions:
2637 # SysV /etc/install, /usr/sbin/install
2638 # SunOS /usr/etc/install
2639 # IRIX /sbin/install
2640 # AIX /bin/install
2641 # AmigaOS /C/install, which installs bootblocks on floppy discs
2642 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2643 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2644 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2645 # ./install, which can be erroneously created by make from ./install.sh.
2646 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2647 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2648 if test -z "$INSTALL"; then
2649 if test "${ac_cv_path_install+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 # Account for people who put trailing slashes in PATH elements.
2658 case $as_dir/ in
2659 ./ | .// | /cC/* | \
2660 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2661 /usr/ucb/* ) ;;
2662 *)
2663 # OSF1 and SCO ODT 3.0 have their own names for install.
2664 # Don't use installbsd from OSF since it installs stuff as root
2665 # by default.
2666 for ac_prog in ginstall scoinst install; do
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2669 if test $ac_prog = install &&
2670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2671 # AIX install. It has an incompatible calling convention.
2672 :
2673 elif test $ac_prog = install &&
2674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2675 # program-specific install script used by HP pwplus--don't use.
2676 :
2677 else
2678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2679 break 3
2680 fi
2681 fi
2682 done
2683 done
2684 ;;
2685 esac
2686 done
2687
2688
2689 fi
2690 if test "${ac_cv_path_install+set}" = set; then
2691 INSTALL=$ac_cv_path_install
2692 else
2693 # As a last resort, use the slow shell script. We don't cache a
2694 # path for INSTALL within a source directory, because that will
2695 # break other packages using the cache if that directory is
2696 # removed, or if the path is relative.
2697 INSTALL=$ac_install_sh
2698 fi
2699 fi
2700 echo "$as_me:$LINENO: result: $INSTALL" >&5
2701 echo "${ECHO_T}$INSTALL" >&6
2702
2703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2704 # It thinks the first close brace ends the variable substitution.
2705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2706
2707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2708
2709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2710
2711
2712 # Checks for libraries.
2713
2714
2715 echo "$as_me:$LINENO: checking for poptPrintHelp in -lpopt" >&5
2716 echo $ECHO_N "checking for poptPrintHelp in -lpopt... $ECHO_C" >&6
2717 if test "${ac_cv_lib_popt_poptPrintHelp+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 ac_check_lib_save_LIBS=$LIBS
2721 LIBS="-lpopt $LIBS"
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2724 #include "confdefs.h"
2725
2726 /* Override any gcc2 internal prototype to avoid an error. */
2727 #ifdef __cplusplus
2728 extern "C"
2729 #endif
2730 /* We use char because int might match the return type of a gcc2
2731 builtin and then its argument prototype would still apply. */
2732 char poptPrintHelp ();
2733 #ifdef F77_DUMMY_MAIN
2734 # ifdef __cplusplus
2735 extern "C"
2736 # endif
2737 int F77_DUMMY_MAIN() { return 1; }
2738 #endif
2739 int
2740 main ()
2741 {
2742 poptPrintHelp ();
2743 ;
2744 return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.$ac_objext conftest$ac_exeext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2749 (eval $ac_link) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -s conftest$ac_exeext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_cv_lib_popt_poptPrintHelp=yes
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 cat conftest.$ac_ext >&5
2763 ac_cv_lib_popt_poptPrintHelp=no
2764 fi
2765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2766 LIBS=$ac_check_lib_save_LIBS
2767 fi
2768 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptPrintHelp" >&5
2769 echo "${ECHO_T}$ac_cv_lib_popt_poptPrintHelp" >&6
2770 if test $ac_cv_lib_popt_poptPrintHelp = yes; then
2771 cat >>confdefs.h <<_ACEOF
2772 #define HAVE_LIBPOPT 1
2773 _ACEOF
2774
2775 LIBS="-lpopt $LIBS"
2776
2777 fi
2778
2779
2780 echo "$as_me:$LINENO: checking for semget in -lcygipc" >&5
2781 echo $ECHO_N "checking for semget in -lcygipc... $ECHO_C" >&6
2782 if test "${ac_cv_lib_cygipc_semget+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 ac_check_lib_save_LIBS=$LIBS
2786 LIBS="-lcygipc $LIBS"
2787 cat >conftest.$ac_ext <<_ACEOF
2788 #line $LINENO "configure"
2789 #include "confdefs.h"
2790
2791 /* Override any gcc2 internal prototype to avoid an error. */
2792 #ifdef __cplusplus
2793 extern "C"
2794 #endif
2795 /* We use char because int might match the return type of a gcc2
2796 builtin and then its argument prototype would still apply. */
2797 char semget ();
2798 #ifdef F77_DUMMY_MAIN
2799 # ifdef __cplusplus
2800 extern "C"
2801 # endif
2802 int F77_DUMMY_MAIN() { return 1; }
2803 #endif
2804 int
2805 main ()
2806 {
2807 semget ();
2808 ;
2809 return 0;
2810 }
2811 _ACEOF
2812 rm -f conftest.$ac_objext conftest$ac_exeext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2814 (eval $ac_link) 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -s conftest$ac_exeext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2824 ac_cv_lib_cygipc_semget=yes
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2828 ac_cv_lib_cygipc_semget=no
2829 fi
2830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2831 LIBS=$ac_check_lib_save_LIBS
2832 fi
2833 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_semget" >&5
2834 echo "${ECHO_T}$ac_cv_lib_cygipc_semget" >&6
2835 if test $ac_cv_lib_cygipc_semget = yes; then
2836 cat >>confdefs.h <<_ACEOF
2837 #define HAVE_LIBCYGIPC 1
2838 _ACEOF
2839
2840 LIBS="-lcygipc $LIBS"
2841
2842 fi
2843
2844
2845 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
2846 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
2847 if test "${ac_cv_lib_intl_gettext+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 ac_check_lib_save_LIBS=$LIBS
2851 LIBS="-lintl $LIBS"
2852 cat >conftest.$ac_ext <<_ACEOF
2853 #line $LINENO "configure"
2854 #include "confdefs.h"
2855
2856 /* Override any gcc2 internal prototype to avoid an error. */
2857 #ifdef __cplusplus
2858 extern "C"
2859 #endif
2860 /* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2862 char gettext ();
2863 #ifdef F77_DUMMY_MAIN
2864 # ifdef __cplusplus
2865 extern "C"
2866 # endif
2867 int F77_DUMMY_MAIN() { return 1; }
2868 #endif
2869 int
2870 main ()
2871 {
2872 gettext ();
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext conftest$ac_exeext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879 (eval $ac_link) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -s conftest$ac_exeext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 ac_cv_lib_intl_gettext=yes
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2893 ac_cv_lib_intl_gettext=no
2894 fi
2895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2896 LIBS=$ac_check_lib_save_LIBS
2897 fi
2898 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
2899 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
2900 if test $ac_cv_lib_intl_gettext = yes; then
2901 cat >>confdefs.h <<_ACEOF
2902 #define HAVE_LIBINTL 1
2903 _ACEOF
2904
2905 LIBS="-lintl $LIBS"
2906
2907 fi
2908
2909
2910 # Checks for header files.
2911 ac_ext=c
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2917 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2918 # On Suns, sometimes $CPP names a directory.
2919 if test -n "$CPP" && test -d "$CPP"; then
2920 CPP=
2921 fi
2922 if test -z "$CPP"; then
2923 if test "${ac_cv_prog_CPP+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 # Double quotes because CPP needs to be expanded
2927 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2928 do
2929 ac_preproc_ok=false
2930 for ac_c_preproc_warn_flag in '' yes
2931 do
2932 # Use a header file that comes with gcc, so configuring glibc
2933 # with a fresh cross-compiler works.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 #line $LINENO "configure"
2938 #include "confdefs.h"
2939 #include <assert.h>
2940 Syntax error
2941 _ACEOF
2942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2944 ac_status=$?
2945 egrep -v '^ *\+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } >/dev/null; then
2950 if test -s conftest.err; then
2951 ac_cpp_err=$ac_c_preproc_warn_flag
2952 else
2953 ac_cpp_err=
2954 fi
2955 else
2956 ac_cpp_err=yes
2957 fi
2958 if test -z "$ac_cpp_err"; then
2959 :
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2963 # Broken: fails on valid input.
2964 continue
2965 fi
2966 rm -f conftest.err conftest.$ac_ext
2967
2968 # OK, works on sane cases. Now check whether non-existent headers
2969 # can be detected and how.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 #include "confdefs.h"
2973 #include <ac_nonexistent.h>
2974 _ACEOF
2975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977 ac_status=$?
2978 egrep -v '^ *\+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } >/dev/null; then
2983 if test -s conftest.err; then
2984 ac_cpp_err=$ac_c_preproc_warn_flag
2985 else
2986 ac_cpp_err=
2987 fi
2988 else
2989 ac_cpp_err=yes
2990 fi
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993 continue
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2997 # Passes both tests.
2998 ac_preproc_ok=:
2999 break
3000 fi
3001 rm -f conftest.err conftest.$ac_ext
3002
3003 done
3004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3005 rm -f conftest.err conftest.$ac_ext
3006 if $ac_preproc_ok; then
3007 break
3008 fi
3009
3010 done
3011 ac_cv_prog_CPP=$CPP
3012
3013 fi
3014 CPP=$ac_cv_prog_CPP
3015 else
3016 ac_cv_prog_CPP=$CPP
3017 fi
3018 echo "$as_me:$LINENO: result: $CPP" >&5
3019 echo "${ECHO_T}$CPP" >&6
3020 ac_preproc_ok=false
3021 for ac_c_preproc_warn_flag in '' yes
3022 do
3023 # Use a header file that comes with gcc, so configuring glibc
3024 # with a fresh cross-compiler works.
3025 # On the NeXT, cc -E runs the code through the compiler's parser,
3026 # not just through cpp. "Syntax error" is here to catch this case.
3027 cat >conftest.$ac_ext <<_ACEOF
3028 #line $LINENO "configure"
3029 #include "confdefs.h"
3030 #include <assert.h>
3031 Syntax error
3032 _ACEOF
3033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3035 ac_status=$?
3036 egrep -v '^ *\+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev/null; then
3041 if test -s conftest.err; then
3042 ac_cpp_err=$ac_c_preproc_warn_flag
3043 else
3044 ac_cpp_err=
3045 fi
3046 else
3047 ac_cpp_err=yes
3048 fi
3049 if test -z "$ac_cpp_err"; then
3050 :
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3054 # Broken: fails on valid input.
3055 continue
3056 fi
3057 rm -f conftest.err conftest.$ac_ext
3058
3059 # OK, works on sane cases. Now check whether non-existent headers
3060 # can be detected and how.
3061 cat >conftest.$ac_ext <<_ACEOF
3062 #line $LINENO "configure"
3063 #include "confdefs.h"
3064 #include <ac_nonexistent.h>
3065 _ACEOF
3066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068 ac_status=$?
3069 egrep -v '^ *\+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
3076 else
3077 ac_cpp_err=
3078 fi
3079 else
3080 ac_cpp_err=yes
3081 fi
3082 if test -z "$ac_cpp_err"; then
3083 # Broken: success on invalid input.
3084 continue
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3088 # Passes both tests.
3089 ac_preproc_ok=:
3090 break
3091 fi
3092 rm -f conftest.err conftest.$ac_ext
3093
3094 done
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.$ac_ext
3097 if $ac_preproc_ok; then
3098 :
3099 else
3100 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3101 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3102 { (exit 1); exit 1; }; }
3103 fi
3104
3105 ac_ext=c
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110
3111
3112 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3113 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3114 if test "${ac_cv_header_stdc+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line $LINENO "configure"
3119 #include "confdefs.h"
3120 #include <stdlib.h>
3121 #include <stdarg.h>
3122 #include <string.h>
3123 #include <float.h>
3124
3125 _ACEOF
3126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3128 ac_status=$?
3129 egrep -v '^ *\+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } >/dev/null; then
3134 if test -s conftest.err; then
3135 ac_cpp_err=$ac_c_preproc_warn_flag
3136 else
3137 ac_cpp_err=
3138 fi
3139 else
3140 ac_cpp_err=yes
3141 fi
3142 if test -z "$ac_cpp_err"; then
3143 ac_cv_header_stdc=yes
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3147 ac_cv_header_stdc=no
3148 fi
3149 rm -f conftest.err conftest.$ac_ext
3150
3151 if test $ac_cv_header_stdc = yes; then
3152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 #include "confdefs.h"
3156 #include <string.h>
3157
3158 _ACEOF
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "memchr" >/dev/null 2>&1; then
3161 :
3162 else
3163 ac_cv_header_stdc=no
3164 fi
3165 rm -f conftest*
3166
3167 fi
3168
3169 if test $ac_cv_header_stdc = yes; then
3170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3171 cat >conftest.$ac_ext <<_ACEOF
3172 #line $LINENO "configure"
3173 #include "confdefs.h"
3174 #include <stdlib.h>
3175
3176 _ACEOF
3177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3178 egrep "free" >/dev/null 2>&1; then
3179 :
3180 else
3181 ac_cv_header_stdc=no
3182 fi
3183 rm -f conftest*
3184
3185 fi
3186
3187 if test $ac_cv_header_stdc = yes; then
3188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3189 if test "$cross_compiling" = yes; then
3190 :
3191 else
3192 cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 #include "confdefs.h"
3195 #include <ctype.h>
3196 #if ((' ' & 0x0FF) == 0x020)
3197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3199 #else
3200 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3201 || ('j' <= (c) && (c) <= 'r') \
3202 || ('s' <= (c) && (c) <= 'z'))
3203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3204 #endif
3205
3206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3207 int
3208 main ()
3209 {
3210 int i;
3211 for (i = 0; i < 256; i++)
3212 if (XOR (islower (i), ISLOWER (i))
3213 || toupper (i) != TOUPPER (i))
3214 exit(2);
3215 exit (0);
3216 }
3217 _ACEOF
3218 rm -f conftest$ac_exeext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3220 (eval $ac_link) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 :
3230 else
3231 echo "$as_me: program exited with status $ac_status" >&5
3232 echo "$as_me: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3234 ( exit $ac_status )
3235 ac_cv_header_stdc=no
3236 fi
3237 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3238 fi
3239 fi
3240 fi
3241 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3242 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3243 if test $ac_cv_header_stdc = yes; then
3244
3245 cat >>confdefs.h <<\_ACEOF
3246 #define STDC_HEADERS 1
3247 _ACEOF
3248
3249 fi
3250
3251 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3252 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3253 if test "${ac_cv_header_time+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 cat >conftest.$ac_ext <<_ACEOF
3257 #line $LINENO "configure"
3258 #include "confdefs.h"
3259 #include <sys/types.h>
3260 #include <sys/time.h>
3261 #include <time.h>
3262
3263 #ifdef F77_DUMMY_MAIN
3264 # ifdef __cplusplus
3265 extern "C"
3266 # endif
3267 int F77_DUMMY_MAIN() { return 1; }
3268 #endif
3269 int
3270 main ()
3271 {
3272 if ((struct tm *) 0)
3273 return 0;
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280 (eval $ac_compile) 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } &&
3284 { ac_try='test -s conftest.$ac_objext'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 (eval $ac_try) 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; }; then
3290 ac_cv_header_time=yes
3291 else
3292 echo "$as_me: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3294 ac_cv_header_time=no
3295 fi
3296 rm -f conftest.$ac_objext conftest.$ac_ext
3297 fi
3298 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3299 echo "${ECHO_T}$ac_cv_header_time" >&6
3300 if test $ac_cv_header_time = yes; then
3301
3302 cat >>confdefs.h <<\_ACEOF
3303 #define TIME_WITH_SYS_TIME 1
3304 _ACEOF
3305
3306 fi
3307
3308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3319 inttypes.h stdint.h unistd.h
3320 do
3321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3322 echo "$as_me:$LINENO: checking for $ac_header" >&5
3323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 cat >conftest.$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3329 #include "confdefs.h"
3330 $ac_includes_default
3331
3332 #include <$ac_header>
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 eval "$as_ac_Header=yes"
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3350 eval "$as_ac_Header=no"
3351 fi
3352 rm -f conftest.$ac_objext conftest.$ac_ext
3353 fi
3354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3357 cat >>confdefs.h <<_ACEOF
3358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3359 _ACEOF
3360
3361 fi
3362
3363 done
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375 for ac_header in stdlib.h stddef.h errno.h limits.h malloc.h \
3376 ctype.h getopt.h popt.h windows.h
3377 do
3378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3380 echo "$as_me:$LINENO: checking for $ac_header" >&5
3381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 fi
3385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3387 else
3388 # Is the header compilable?
3389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3391 cat >conftest.$ac_ext <<_ACEOF
3392 #line $LINENO "configure"
3393 #include "confdefs.h"
3394 $ac_includes_default
3395 #include <$ac_header>
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 ac_header_compiler=yes
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 ac_header_compiler=no
3414 fi
3415 rm -f conftest.$ac_objext conftest.$ac_ext
3416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3417 echo "${ECHO_T}$ac_header_compiler" >&6
3418
3419 # Is the header present?
3420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3422 cat >conftest.$ac_ext <<_ACEOF
3423 #line $LINENO "configure"
3424 #include "confdefs.h"
3425 #include <$ac_header>
3426 _ACEOF
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 ac_status=$?
3430 egrep -v '^ *\+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 else
3438 ac_cpp_err=
3439 fi
3440 else
3441 ac_cpp_err=yes
3442 fi
3443 if test -z "$ac_cpp_err"; then
3444 ac_header_preproc=yes
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 ac_header_preproc=no
3449 fi
3450 rm -f conftest.err conftest.$ac_ext
3451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3452 echo "${ECHO_T}$ac_header_preproc" >&6
3453
3454 # So? What about this header?
3455 case $ac_header_compiler:$ac_header_preproc in
3456 yes:no )
3457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3461 no:yes )
3462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3468 esac
3469 echo "$as_me:$LINENO: checking for $ac_header" >&5
3470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 eval "$as_ac_Header=$ac_header_preproc"
3475 fi
3476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3478
3479 fi
3480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3481 cat >>confdefs.h <<_ACEOF
3482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3483 _ACEOF
3484
3485 fi
3486
3487 done
3488
3489
3490
3491 for ac_header in string.h strings.h
3492 do
3493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495 echo "$as_me:$LINENO: checking for $ac_header" >&5
3496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 fi
3500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3502 else
3503 # Is the header compilable?
3504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3506 cat >conftest.$ac_ext <<_ACEOF
3507 #line $LINENO "configure"
3508 #include "confdefs.h"
3509 $ac_includes_default
3510 #include <$ac_header>
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -s conftest.$ac_objext'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; }; then
3524 ac_header_compiler=yes
3525 else
3526 echo "$as_me: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 ac_header_compiler=no
3529 fi
3530 rm -f conftest.$ac_objext conftest.$ac_ext
3531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3532 echo "${ECHO_T}$ac_header_compiler" >&6
3533
3534 # Is the header present?
3535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3537 cat >conftest.$ac_ext <<_ACEOF
3538 #line $LINENO "configure"
3539 #include "confdefs.h"
3540 #include <$ac_header>
3541 _ACEOF
3542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3544 ac_status=$?
3545 egrep -v '^ *\+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } >/dev/null; then
3550 if test -s conftest.err; then
3551 ac_cpp_err=$ac_c_preproc_warn_flag
3552 else
3553 ac_cpp_err=
3554 fi
3555 else
3556 ac_cpp_err=yes
3557 fi
3558 if test -z "$ac_cpp_err"; then
3559 ac_header_preproc=yes
3560 else
3561 echo "$as_me: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3563 ac_header_preproc=no
3564 fi
3565 rm -f conftest.err conftest.$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3567 echo "${ECHO_T}$ac_header_preproc" >&6
3568
3569 # So? What about this header?
3570 case $ac_header_compiler:$ac_header_preproc in
3571 yes:no )
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3576 no:yes )
3577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3583 esac
3584 echo "$as_me:$LINENO: checking for $ac_header" >&5
3585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 eval "$as_ac_Header=$ac_header_preproc"
3590 fi
3591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3593
3594 fi
3595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598 _ACEOF
3599 break
3600 fi
3601
3602 done
3603
3604
3605
3606 for ac_header in stdarg.h varargs.h
3607 do
3608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3610 echo "$as_me:$LINENO: checking for $ac_header" >&5
3611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 fi
3615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3617 else
3618 # Is the header compilable?
3619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3621 cat >conftest.$ac_ext <<_ACEOF
3622 #line $LINENO "configure"
3623 #include "confdefs.h"
3624 $ac_includes_default
3625 #include <$ac_header>
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3639 ac_header_compiler=yes
3640 else
3641 echo "$as_me: failed program was:" >&5
3642 cat conftest.$ac_ext >&5
3643 ac_header_compiler=no
3644 fi
3645 rm -f conftest.$ac_objext conftest.$ac_ext
3646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3647 echo "${ECHO_T}$ac_header_compiler" >&6
3648
3649 # Is the header present?
3650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3652 cat >conftest.$ac_ext <<_ACEOF
3653 #line $LINENO "configure"
3654 #include "confdefs.h"
3655 #include <$ac_header>
3656 _ACEOF
3657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659 ac_status=$?
3660 egrep -v '^ *\+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev/null; then
3665 if test -s conftest.err; then
3666 ac_cpp_err=$ac_c_preproc_warn_flag
3667 else
3668 ac_cpp_err=
3669 fi
3670 else
3671 ac_cpp_err=yes
3672 fi
3673 if test -z "$ac_cpp_err"; then
3674 ac_header_preproc=yes
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 ac_header_preproc=no
3679 fi
3680 rm -f conftest.err conftest.$ac_ext
3681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3682 echo "${ECHO_T}$ac_header_preproc" >&6
3683
3684 # So? What about this header?
3685 case $ac_header_compiler:$ac_header_preproc in
3686 yes:no )
3687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3691 no:yes )
3692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3698 esac
3699 echo "$as_me:$LINENO: checking for $ac_header" >&5
3700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 eval "$as_ac_Header=$ac_header_preproc"
3705 fi
3706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3708
3709 fi
3710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3711 cat >>confdefs.h <<_ACEOF
3712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3713 _ACEOF
3714 break
3715 fi
3716
3717 done
3718
3719
3720
3721
3722
3723
3724
3725 for ac_header in utmp.h signal.h netinet/in.h netdb.h arpa/inet.h \
3726 sys/socket.h
3727 do
3728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3730 echo "$as_me:$LINENO: checking for $ac_header" >&5
3731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 fi
3735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3737 else
3738 # Is the header compilable?
3739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3741 cat >conftest.$ac_ext <<_ACEOF
3742 #line $LINENO "configure"
3743 #include "confdefs.h"
3744 $ac_includes_default
3745 #include <$ac_header>
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 ac_header_compiler=yes
3760 else
3761 echo "$as_me: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3763 ac_header_compiler=no
3764 fi
3765 rm -f conftest.$ac_objext conftest.$ac_ext
3766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3767 echo "${ECHO_T}$ac_header_compiler" >&6
3768
3769 # Is the header present?
3770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3772 cat >conftest.$ac_ext <<_ACEOF
3773 #line $LINENO "configure"
3774 #include "confdefs.h"
3775 #include <$ac_header>
3776 _ACEOF
3777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3779 ac_status=$?
3780 egrep -v '^ *\+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } >/dev/null; then
3785 if test -s conftest.err; then
3786 ac_cpp_err=$ac_c_preproc_warn_flag
3787 else
3788 ac_cpp_err=
3789 fi
3790 else
3791 ac_cpp_err=yes
3792 fi
3793 if test -z "$ac_cpp_err"; then
3794 ac_header_preproc=yes
3795 else
3796 echo "$as_me: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3798 ac_header_preproc=no
3799 fi
3800 rm -f conftest.err conftest.$ac_ext
3801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3802 echo "${ECHO_T}$ac_header_preproc" >&6
3803
3804 # So? What about this header?
3805 case $ac_header_compiler:$ac_header_preproc in
3806 yes:no )
3807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3811 no:yes )
3812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3818 esac
3819 echo "$as_me:$LINENO: checking for $ac_header" >&5
3820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 eval "$as_ac_Header=$ac_header_preproc"
3825 fi
3826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3828
3829 fi
3830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3831 cat >>confdefs.h <<_ACEOF
3832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3833 _ACEOF
3834
3835 fi
3836
3837 done
3838
3839
3840
3841
3842 for ac_header in sys/sem.h sys/shm.h sys/msg.h
3843 do
3844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3846 echo "$as_me:$LINENO: checking for $ac_header" >&5
3847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 fi
3851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3853 else
3854 # Is the header compilable?
3855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3858 #line $LINENO "configure"
3859 #include "confdefs.h"
3860 $ac_includes_default
3861 #include <$ac_header>
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 ac_header_compiler=yes
3876 else
3877 echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 ac_header_compiler=no
3880 fi
3881 rm -f conftest.$ac_objext conftest.$ac_ext
3882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3883 echo "${ECHO_T}$ac_header_compiler" >&6
3884
3885 # Is the header present?
3886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3890 #include "confdefs.h"
3891 #include <$ac_header>
3892 _ACEOF
3893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3895 ac_status=$?
3896 egrep -v '^ *\+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } >/dev/null; then
3901 if test -s conftest.err; then
3902 ac_cpp_err=$ac_c_preproc_warn_flag
3903 else
3904 ac_cpp_err=
3905 fi
3906 else
3907 ac_cpp_err=yes
3908 fi
3909 if test -z "$ac_cpp_err"; then
3910 ac_header_preproc=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3914 ac_header_preproc=no
3915 fi
3916 rm -f conftest.err conftest.$ac_ext
3917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3918 echo "${ECHO_T}$ac_header_preproc" >&6
3919
3920 # So? What about this header?
3921 case $ac_header_compiler:$ac_header_preproc in
3922 yes:no )
3923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3927 no:yes )
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3934 esac
3935 echo "$as_me:$LINENO: checking for $ac_header" >&5
3936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 eval "$as_ac_Header=$ac_header_preproc"
3941 fi
3942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3944
3945 fi
3946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3947 cat >>confdefs.h <<_ACEOF
3948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3949 _ACEOF
3950
3951 fi
3952
3953 done
3954
3955
3956
3957
3958
3959
3960 for ac_header in langinfo.h libintl.h sys/param.h fcntl.h unistd.h
3961 do
3962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
3965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 fi
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3971 else
3972 # Is the header compilable?
3973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line $LINENO "configure"
3977 #include "confdefs.h"
3978 $ac_includes_default
3979 #include <$ac_header>
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_header_compiler=yes
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3997 ac_header_compiler=no
3998 fi
3999 rm -f conftest.$ac_objext conftest.$ac_ext
4000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4001 echo "${ECHO_T}$ac_header_compiler" >&6
4002
4003 # Is the header present?
4004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4008 #include "confdefs.h"
4009 #include <$ac_header>
4010 _ACEOF
4011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013 ac_status=$?
4014 egrep -v '^ *\+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } >/dev/null; then
4019 if test -s conftest.err; then
4020 ac_cpp_err=$ac_c_preproc_warn_flag
4021 else
4022 ac_cpp_err=
4023 fi
4024 else
4025 ac_cpp_err=yes
4026 fi
4027 if test -z "$ac_cpp_err"; then
4028 ac_header_preproc=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 ac_header_preproc=no
4033 fi
4034 rm -f conftest.err conftest.$ac_ext
4035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4036 echo "${ECHO_T}$ac_header_preproc" >&6
4037
4038 # So? What about this header?
4039 case $ac_header_compiler:$ac_header_preproc in
4040 yes:no )
4041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4045 no:yes )
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4052 esac
4053 echo "$as_me:$LINENO: checking for $ac_header" >&5
4054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 eval "$as_ac_Header=$ac_header_preproc"
4059 fi
4060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4062
4063 fi
4064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4065 cat >>confdefs.h <<_ACEOF
4066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4067 _ACEOF
4068
4069 fi
4070
4071 done
4072
4073
4074 for ac_header in wchar.h
4075 do
4076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4078 echo "$as_me:$LINENO: checking for $ac_header" >&5
4079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 fi
4083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4085 else
4086 # Is the header compilable?
4087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4089 cat >conftest.$ac_ext <<_ACEOF
4090 #line $LINENO "configure"
4091 #include "confdefs.h"
4092 $ac_includes_default
4093 #include <$ac_header>
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_header_compiler=yes
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4111 ac_header_compiler=no
4112 fi
4113 rm -f conftest.$ac_objext conftest.$ac_ext
4114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4115 echo "${ECHO_T}$ac_header_compiler" >&6
4116
4117 # Is the header present?
4118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4120 cat >conftest.$ac_ext <<_ACEOF
4121 #line $LINENO "configure"
4122 #include "confdefs.h"
4123 #include <$ac_header>
4124 _ACEOF
4125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4127 ac_status=$?
4128 egrep -v '^ *\+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } >/dev/null; then
4133 if test -s conftest.err; then
4134 ac_cpp_err=$ac_c_preproc_warn_flag
4135 else
4136 ac_cpp_err=
4137 fi
4138 else
4139 ac_cpp_err=yes
4140 fi
4141 if test -z "$ac_cpp_err"; then
4142 ac_header_preproc=yes
4143 else
4144 echo "$as_me: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4146 ac_header_preproc=no
4147 fi
4148 rm -f conftest.err conftest.$ac_ext
4149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4150 echo "${ECHO_T}$ac_header_preproc" >&6
4151
4152 # So? What about this header?
4153 case $ac_header_compiler:$ac_header_preproc in
4154 yes:no )
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4159 no:yes )
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4166 esac
4167 echo "$as_me:$LINENO: checking for $ac_header" >&5
4168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 eval "$as_ac_Header=$ac_header_preproc"
4173 fi
4174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4176
4177 fi
4178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4179 cat >>confdefs.h <<_ACEOF
4180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4181 _ACEOF
4182
4183 fi
4184
4185 done
4186
4187
4188 for ac_header in locale.h
4189 do
4190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4192 echo "$as_me:$LINENO: checking for $ac_header" >&5
4193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 fi
4197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4199 else
4200 # Is the header compilable?
4201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4203 cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4205 #include "confdefs.h"
4206 $ac_includes_default
4207 #include <$ac_header>
4208 _ACEOF
4209 rm -f conftest.$ac_objext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4211 (eval $ac_compile) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_header_compiler=yes
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4225 ac_header_compiler=no
4226 fi
4227 rm -f conftest.$ac_objext conftest.$ac_ext
4228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4229 echo "${ECHO_T}$ac_header_compiler" >&6
4230
4231 # Is the header present?
4232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4234 cat >conftest.$ac_ext <<_ACEOF
4235 #line $LINENO "configure"
4236 #include "confdefs.h"
4237 #include <$ac_header>
4238 _ACEOF
4239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4241 ac_status=$?
4242 egrep -v '^ *\+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } >/dev/null; then
4247 if test -s conftest.err; then
4248 ac_cpp_err=$ac_c_preproc_warn_flag
4249 else
4250 ac_cpp_err=
4251 fi
4252 else
4253 ac_cpp_err=yes
4254 fi
4255 if test -z "$ac_cpp_err"; then
4256 ac_header_preproc=yes
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4260 ac_header_preproc=no
4261 fi
4262 rm -f conftest.err conftest.$ac_ext
4263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4264 echo "${ECHO_T}$ac_header_preproc" >&6
4265
4266 # So? What about this header?
4267 case $ac_header_compiler:$ac_header_preproc in
4268 yes:no )
4269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4273 no:yes )
4274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4280 esac
4281 echo "$as_me:$LINENO: checking for $ac_header" >&5
4282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 eval "$as_ac_Header=$ac_header_preproc"
4287 fi
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4290
4291 fi
4292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295 _ACEOF
4296
4297 for ac_func in setlocale
4298 do
4299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4300 echo "$as_me:$LINENO: checking for $ac_func" >&5
4301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4302 if eval "test \"\${$as_ac_var+set}\" = set"; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 cat >conftest.$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4307 #include "confdefs.h"
4308 /* System header to define __stub macros and hopefully few prototypes
4309 else
4310 which can conflict with char $ac_func (); below. */
4311 #include <assert.h>
4312 /* Override any gcc2 internal prototype to avoid an error. */
4313 #ifdef __cplusplus
4314 extern "C"
4315 #endif
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4318 char $ac_func ();
4319 char (*f) ();
4320
4321 #ifdef F77_DUMMY_MAIN
4322 # ifdef __cplusplus
4323 extern "C"
4324 # endif
4325 int F77_DUMMY_MAIN() { return 1; }
4326 #endif
4327 int
4328 main ()
4329 {
4330 /* The GNU C library defines this for functions which it implements
4331 to always fail with ENOSYS. Some functions are actually named
4332 something starting with __ and the normal name is an alias. */
4333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4334 choke me
4335 #else
4336 f = $ac_func;
4337 #endif
4338
4339 ;
4340 return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345 (eval $ac_link) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -s conftest$ac_exeext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 eval "$as_ac_var=yes"
4356 else
4357 echo "$as_me: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4359 eval "$as_ac_var=no"
4360 fi
4361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4362 fi
4363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4365 if test `eval echo '${'$as_ac_var'}'` = yes; then
4366 cat >>confdefs.h <<_ACEOF
4367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4368 _ACEOF
4369
4370 fi
4371 done
4372
4373 fi
4374
4375 done
4376
4377
4378 # Checks for typedefs, structures, and compiler characteristics.
4379 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4380 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4381 if test "${ac_cv_c_const+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 cat >conftest.$ac_ext <<_ACEOF
4385 #line $LINENO "configure"
4386 #include "confdefs.h"
4387
4388 #ifdef F77_DUMMY_MAIN
4389 # ifdef __cplusplus
4390 extern "C"
4391 # endif
4392 int F77_DUMMY_MAIN() { return 1; }
4393 #endif
4394 int
4395 main ()
4396 {
4397 /* FIXME: Include the comments suggested by Paul. */
4398 #ifndef __cplusplus
4399 /* Ultrix mips cc rejects this. */
4400 typedef int charset[2];
4401 const charset x;
4402 /* SunOS 4.1.1 cc rejects this. */
4403 char const *const *ccp;
4404 char **p;
4405 /* NEC SVR4.0.2 mips cc rejects this. */
4406 struct point {int x, y;};
4407 static struct point const zero = {0,0};
4408 /* AIX XL C 1.02.0.0 rejects this.
4409 It does not let you subtract one const X* pointer from another in
4410 an arm of an if-expression whose if-part is not a constant
4411 expression */
4412 const char *g = "string";
4413 ccp = &g + (g ? g-g : 0);
4414 /* HPUX 7.0 cc rejects these. */
4415 ++ccp;
4416 p = (char**) ccp;
4417 ccp = (char const *const *) p;
4418 { /* SCO 3.2v4 cc rejects this. */
4419 char *t;
4420 char const *s = 0 ? (char *) 0 : (char const *) 0;
4421
4422 *t++ = 0;
4423 }
4424 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4425 int x[] = {25, 17};
4426 const int *foo = &x[0];
4427 ++foo;
4428 }
4429 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4430 typedef const int *iptr;
4431 iptr p = 0;
4432 ++p;
4433 }
4434 { /* AIX XL C 1.02.0.0 rejects this saying
4435 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4436 struct s { int j; const int *ap[3]; };
4437 struct s *b; b->j = 5;
4438 }
4439 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4440 const int foo = 10;
4441 }
4442 #endif
4443
4444 ;
4445 return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_c_const=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4464 ac_cv_c_const=no
4465 fi
4466 rm -f conftest.$ac_objext conftest.$ac_ext
4467 fi
4468 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4469 echo "${ECHO_T}$ac_cv_c_const" >&6
4470 if test $ac_cv_c_const = no; then
4471
4472 cat >>confdefs.h <<\_ACEOF
4473 #define const
4474 _ACEOF
4475
4476 fi
4477
4478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4480 if test "${ac_cv_struct_tm+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 cat >conftest.$ac_ext <<_ACEOF
4484 #line $LINENO "configure"
4485 #include "confdefs.h"
4486 #include <sys/types.h>
4487 #include <time.h>
4488
4489 #ifdef F77_DUMMY_MAIN
4490 # ifdef __cplusplus
4491 extern "C"
4492 # endif
4493 int F77_DUMMY_MAIN() { return 1; }
4494 #endif
4495 int
4496 main ()
4497 {
4498 struct tm *tp; tp->tm_sec;
4499 ;
4500 return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try='test -s conftest.$ac_objext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_struct_tm=time.h
4516 else
4517 echo "$as_me: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4519 ac_cv_struct_tm=sys/time.h
4520 fi
4521 rm -f conftest.$ac_objext conftest.$ac_ext
4522 fi
4523 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4524 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4525 if test $ac_cv_struct_tm = sys/time.h; then
4526
4527 cat >>confdefs.h <<\_ACEOF
4528 #define TM_IN_SYS_TIME 1
4529 _ACEOF
4530
4531 fi
4532
4533
4534 # Checks for library functions.
4535
4536 for ac_header in stdlib.h
4537 do
4538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540 echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 fi
4545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4547 else
4548 # Is the header compilable?
4549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4551 cat >conftest.$ac_ext <<_ACEOF
4552 #line $LINENO "configure"
4553 #include "confdefs.h"
4554 $ac_includes_default
4555 #include <$ac_header>
4556 _ACEOF
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 ac_header_compiler=yes
4570 else
4571 echo "$as_me: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4573 ac_header_compiler=no
4574 fi
4575 rm -f conftest.$ac_objext conftest.$ac_ext
4576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4577 echo "${ECHO_T}$ac_header_compiler" >&6
4578
4579 # Is the header present?
4580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4582 cat >conftest.$ac_ext <<_ACEOF
4583 #line $LINENO "configure"
4584 #include "confdefs.h"
4585 #include <$ac_header>
4586 _ACEOF
4587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4589 ac_status=$?
4590 egrep -v '^ *\+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } >/dev/null; then
4595 if test -s conftest.err; then
4596 ac_cpp_err=$ac_c_preproc_warn_flag
4597 else
4598 ac_cpp_err=
4599 fi
4600 else
4601 ac_cpp_err=yes
4602 fi
4603 if test -z "$ac_cpp_err"; then
4604 ac_header_preproc=yes
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4608 ac_header_preproc=no
4609 fi
4610 rm -f conftest.err conftest.$ac_ext
4611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4612 echo "${ECHO_T}$ac_header_preproc" >&6
4613
4614 # So? What about this header?
4615 case $ac_header_compiler:$ac_header_preproc in
4616 yes:no )
4617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4621 no:yes )
4622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4628 esac
4629 echo "$as_me:$LINENO: checking for $ac_header" >&5
4630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 eval "$as_ac_Header=$ac_header_preproc"
4635 fi
4636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4638
4639 fi
4640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4641 cat >>confdefs.h <<_ACEOF
4642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4643 _ACEOF
4644
4645 fi
4646
4647 done
4648
4649 echo "$as_me:$LINENO: checking for working malloc" >&5
4650 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
4651 if test "${ac_cv_func_malloc_works+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 if test "$cross_compiling" = yes; then
4655 ac_cv_func_malloc_works=no
4656 else
4657 cat >conftest.$ac_ext <<_ACEOF
4658 #line $LINENO "configure"
4659 #include "confdefs.h"
4660 #if STDC_HEADERS || HAVE_STDLIB_H
4661 # include <stdlib.h>
4662 #else
4663 char *malloc ();
4664 #endif
4665
4666 #ifdef F77_DUMMY_MAIN
4667 # ifdef __cplusplus
4668 extern "C"
4669 # endif
4670 int F77_DUMMY_MAIN() { return 1; }
4671 #endif
4672 int
4673 main ()
4674 {
4675 exit (malloc (0) ? 0 : 1);
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest$ac_exeext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_func_malloc_works=yes
4692 else
4693 echo "$as_me: program exited with status $ac_status" >&5
4694 echo "$as_me: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 ( exit $ac_status )
4697 ac_cv_func_malloc_works=no
4698 fi
4699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4700 fi
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
4703 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
4704 if test $ac_cv_func_malloc_works = yes; then
4705
4706 cat >>confdefs.h <<\_ACEOF
4707 #define HAVE_MALLOC 1
4708 _ACEOF
4709
4710 fi
4711
4712
4713
4714
4715
4716
4717 for ac_func in strcasecmp strchr strdup strrchr strerror
4718 do
4719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4720 echo "$as_me:$LINENO: checking for $ac_func" >&5
4721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_var+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 cat >conftest.$ac_ext <<_ACEOF
4726 #line $LINENO "configure"
4727 #include "confdefs.h"
4728 /* System header to define __stub macros and hopefully few prototypes,
4729 which can conflict with char $ac_func (); below. */
4730 #include <assert.h>
4731 /* Override any gcc2 internal prototype to avoid an error. */
4732 #ifdef __cplusplus
4733 extern "C"
4734 #endif
4735 /* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4737 char $ac_func ();
4738 char (*f) ();
4739
4740 #ifdef F77_DUMMY_MAIN
4741 # ifdef __cplusplus
4742 extern "C"
4743 # endif
4744 int F77_DUMMY_MAIN() { return 1; }
4745 #endif
4746 int
4747 main ()
4748 {
4749 /* The GNU C library defines this for functions which it implements
4750 to always fail with ENOSYS. Some functions are actually named
4751 something starting with __ and the normal name is an alias. */
4752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4753 choke me
4754 #else
4755 f = $ac_func;
4756 #endif
4757
4758 ;
4759 return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext conftest$ac_exeext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4764 (eval $ac_link) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try='test -s conftest$ac_exeext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4774 eval "$as_ac_var=yes"
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4778 eval "$as_ac_var=no"
4779 fi
4780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4781 fi
4782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4784 if test `eval echo '${'$as_ac_var'}'` = yes; then
4785 cat >>confdefs.h <<_ACEOF
4786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4787 _ACEOF
4788
4789 fi
4790 done
4791
4792
4793
4794
4795
4796 for ac_func in bzero getcwd memset nl_langinfo
4797 do
4798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4799 echo "$as_me:$LINENO: checking for $ac_func" >&5
4800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4801 if eval "test \"\${$as_ac_var+set}\" = set"; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 cat >conftest.$ac_ext <<_ACEOF
4805 #line $LINENO "configure"
4806 #include "confdefs.h"
4807 /* System header to define __stub macros and hopefully few prototypes,
4808 which can conflict with char $ac_func (); below. */
4809 #include <assert.h>
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 #ifdef __cplusplus
4812 extern "C"
4813 #endif
4814 /* We use char because int might match the return type of a gcc2
4815 builtin and then its argument prototype would still apply. */
4816 char $ac_func ();
4817 char (*f) ();
4818
4819 #ifdef F77_DUMMY_MAIN
4820 # ifdef __cplusplus
4821 extern "C"
4822 # endif
4823 int F77_DUMMY_MAIN() { return 1; }
4824 #endif
4825 int
4826 main ()
4827 {
4828 /* The GNU C library defines this for functions which it implements
4829 to always fail with ENOSYS. Some functions are actually named
4830 something starting with __ and the normal name is an alias. */
4831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4832 choke me
4833 #else
4834 f = $ac_func;
4835 #endif
4836
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext conftest$ac_exeext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843 (eval $ac_link) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -s conftest$ac_exeext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 eval "$as_ac_var=yes"
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4857 eval "$as_ac_var=no"
4858 fi
4859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4860 fi
4861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4863 if test `eval echo '${'$as_ac_var'}'` = yes; then
4864 cat >>confdefs.h <<_ACEOF
4865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4866 _ACEOF
4867
4868 fi
4869 done
4870
4871 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
4872 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
4873 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876 rm -f conftest.sym conftest.file
4877 echo >conftest.file
4878 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
4879 if test "$cross_compiling" = yes; then
4880 ac_cv_func_lstat_dereferences_slashed_symlink=no
4881 else
4882 cat >conftest.$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4884 #include "confdefs.h"
4885 $ac_includes_default
4886 #ifdef F77_DUMMY_MAIN
4887 # ifdef __cplusplus
4888 extern "C"
4889 # endif
4890 int F77_DUMMY_MAIN() { return 1; }
4891 #endif
4892 int
4893 main ()
4894 {
4895 struct stat sbuf;
4896 /* Linux will dereference the symlink and fail.
4897 That is better in the sense that it means we will not
4898 have to compile and use the lstat wrapper. */
4899 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
4900 ;
4901 return 0;
4902 }
4903 _ACEOF
4904 rm -f conftest$ac_exeext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906 (eval $ac_link) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_func_lstat_dereferences_slashed_symlink=yes
4916 else
4917 echo "$as_me: program exited with status $ac_status" >&5
4918 echo "$as_me: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4920 ( exit $ac_status )
4921 ac_cv_func_lstat_dereferences_slashed_symlink=no
4922 fi
4923 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4924 fi
4925 else
4926 # If the `ln -s' command failed, then we probably don't even
4927 # have an lstat function.
4928 ac_cv_func_lstat_dereferences_slashed_symlink=no
4929 fi
4930 rm -f conftest.sym conftest.file
4931
4932 fi
4933 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
4934 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
4935
4936 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4937
4938 cat >>confdefs.h <<_ACEOF
4939 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
4940 _ACEOF
4941
4942
4943 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
4944 LIBOBJS="$LIBOBJS lstat.$ac_objext"
4945 fi
4946
4947 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
4948 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
4949 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 if test "$cross_compiling" = yes; then
4953 ac_cv_func_lstat_empty_string_bug=yes
4954 else
4955 cat >conftest.$ac_ext <<_ACEOF
4956 #line $LINENO "configure"
4957 #include "confdefs.h"
4958 $ac_includes_default
4959 #ifdef F77_DUMMY_MAIN
4960 # ifdef __cplusplus
4961 extern "C"
4962 # endif
4963 int F77_DUMMY_MAIN() { return 1; }
4964 #endif
4965 int
4966 main ()
4967 {
4968 struct stat sbuf;
4969 exit (lstat ("", &sbuf) ? 1 : 0);
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976 (eval $ac_link) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4985 ac_cv_func_lstat_empty_string_bug=yes
4986 else
4987 echo "$as_me: program exited with status $ac_status" >&5
4988 echo "$as_me: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4990 ( exit $ac_status )
4991 ac_cv_func_lstat_empty_string_bug=no
4992 fi
4993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4994 fi
4995 fi
4996 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
4997 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
4998 if test $ac_cv_func_lstat_empty_string_bug = yes; then
4999 LIBOBJS="$LIBOBJS lstat.$ac_objext"
5000
5001 cat >>confdefs.h <<_ACEOF
5002 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
5003 _ACEOF
5004
5005 fi
5006
5007 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
5008 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
5009 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 if test "$cross_compiling" = yes; then
5013 ac_cv_func_stat_empty_string_bug=yes
5014 else
5015 cat >conftest.$ac_ext <<_ACEOF
5016 #line $LINENO "configure"
5017 #include "confdefs.h"
5018 $ac_includes_default
5019 #ifdef F77_DUMMY_MAIN
5020 # ifdef __cplusplus
5021 extern "C"
5022 # endif
5023 int F77_DUMMY_MAIN() { return 1; }
5024 #endif
5025 int
5026 main ()
5027 {
5028 struct stat sbuf;
5029 exit (stat ("", &sbuf) ? 1 : 0);
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest$ac_exeext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_func_stat_empty_string_bug=yes
5046 else
5047 echo "$as_me: program exited with status $ac_status" >&5
5048 echo "$as_me: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5050 ( exit $ac_status )
5051 ac_cv_func_stat_empty_string_bug=no
5052 fi
5053 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5054 fi
5055 fi
5056 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
5057 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
5058 if test $ac_cv_func_stat_empty_string_bug = yes; then
5059 LIBOBJS="$LIBOBJS stat.$ac_objext"
5060
5061 cat >>confdefs.h <<_ACEOF
5062 #define HAVE_STAT_EMPTY_STRING_BUG 1
5063 _ACEOF
5064
5065 fi
5066
5067
5068 for ac_func in vprintf
5069 do
5070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5071 echo "$as_me:$LINENO: checking for $ac_func" >&5
5072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5073 if eval "test \"\${$as_ac_var+set}\" = set"; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 #include "confdefs.h"
5079 /* System header to define __stub macros and hopefully few prototypes,
5080 which can conflict with char $ac_func (); below. */
5081 #include <assert.h>
5082 /* Override any gcc2 internal prototype to avoid an error. */
5083 #ifdef __cplusplus
5084 extern "C"
5085 #endif
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5088 char $ac_func ();
5089 char (*f) ();
5090
5091 #ifdef F77_DUMMY_MAIN
5092 # ifdef __cplusplus
5093 extern "C"
5094 # endif
5095 int F77_DUMMY_MAIN() { return 1; }
5096 #endif
5097 int
5098 main ()
5099 {
5100 /* The GNU C library defines this for functions which it implements
5101 to always fail with ENOSYS. Some functions are actually named
5102 something starting with __ and the normal name is an alias. */
5103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5104 choke me
5105 #else
5106 f = $ac_func;
5107 #endif
5108
5109 ;
5110 return 0;
5111 }
5112 _ACEOF
5113 rm -f conftest.$ac_objext conftest$ac_exeext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5115 (eval $ac_link) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -s conftest$ac_exeext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 eval "$as_ac_var=yes"
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5129 eval "$as_ac_var=no"
5130 fi
5131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5132 fi
5133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5135 if test `eval echo '${'$as_ac_var'}'` = yes; then
5136 cat >>confdefs.h <<_ACEOF
5137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5138 _ACEOF
5139
5140 echo "$as_me:$LINENO: checking for _doprnt" >&5
5141 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5142 if test "${ac_cv_func__doprnt+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 cat >conftest.$ac_ext <<_ACEOF
5146 #line $LINENO "configure"
5147 #include "confdefs.h"
5148 /* System header to define __stub macros and hopefully few prototypes,
5149 which can conflict with char _doprnt (); below. */
5150 #include <assert.h>
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 #ifdef __cplusplus
5153 extern "C"
5154 #endif
5155 /* We use char because int might match the return type of a gcc2
5156 builtin and then its argument prototype would still apply. */
5157 char _doprnt ();
5158 char (*f) ();
5159
5160 #ifdef F77_DUMMY_MAIN
5161 # ifdef __cplusplus
5162 extern "C"
5163 # endif
5164 int F77_DUMMY_MAIN() { return 1; }
5165 #endif
5166 int
5167 main ()
5168 {
5169 /* The GNU C library defines this for functions which it implements
5170 to always fail with ENOSYS. Some functions are actually named
5171 something starting with __ and the normal name is an alias. */
5172 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5173 choke me
5174 #else
5175 f = _doprnt;
5176 #endif
5177
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184 (eval $ac_link) 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -s conftest$ac_exeext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 ac_cv_func__doprnt=yes
5195 else
5196 echo "$as_me: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5198 ac_cv_func__doprnt=no
5199 fi
5200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5201 fi
5202 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5203 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5204 if test $ac_cv_func__doprnt = yes; then
5205
5206 cat >>confdefs.h <<\_ACEOF
5207 #define HAVE_DOPRNT 1
5208 _ACEOF
5209
5210 fi
5211
5212 fi
5213 done
5214
5215
5216 echo "$as_me:$LINENO: checking for OpenClipboard" >&5
5217 echo $ECHO_N "checking for OpenClipboard... $ECHO_C" >&6
5218 if test "${ac_cv_func_OpenClipboard+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 cat >conftest.$ac_ext <<_ACEOF
5222 #line $LINENO "configure"
5223 #include "confdefs.h"
5224 /* System header to define __stub macros and hopefully few prototypes,
5225 which can conflict with char __stdcall OpenClipboard ( void * ) below. */
5226 #include <assert.h>
5227 /* Override any gcc2 internal prototype to avoid an error. */
5228 #ifdef __cplusplus
5229 extern "C"
5230 #endif
5231 /* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5233 char __stdcall OpenClipboard ( void * );
5234 char (*f) ( void * );
5235
5236 #ifdef F77_DUMMY_MAIN
5237 # ifdef __cplusplus
5238 extern "C"
5239 # endif
5240 int F77_DUMMY_MAIN() { return 1; }
5241 #endif
5242 int
5243 main ()
5244 {
5245 /* The GNU C library defines this for functions which it implements
5246 to always fail with ENOSYS. Some functions are actually named
5247 something starting with __ and the normal name is an alias. */
5248 #if defined (__stub_OpenClipboard) || defined (__stub___OpenClipboard)
5249 choke me
5250 #else
5251 f = OpenClipboard;
5252 #endif
5253
5254 ;
5255 return 0;
5256 }
5257 _ACEOF
5258 rm -f conftest.$ac_objext conftest$ac_exeext
5259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5260 (eval $ac_link) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -s conftest$ac_exeext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 ac_cv_func_OpenClipboard=yes
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5274 ac_cv_func_OpenClipboard=no
5275 fi
5276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5277 fi
5278 echo "$as_me:$LINENO: result: $ac_cv_func_OpenClipboard" >&5
5279 echo "${ECHO_T}$ac_cv_func_OpenClipboard" >&6
5280
5281
5282
5283
5284 if test "$ac_cv_func_OpenClipboard" = yes; then
5285 WITH_WINDOWS_PROGRAMS_TRUE=
5286 WITH_WINDOWS_PROGRAMS_FALSE='#'
5287 else
5288 WITH_WINDOWS_PROGRAMS_TRUE='#'
5289 WITH_WINDOWS_PROGRAMS_FALSE=
5290 fi
5291
5292
5293
5294 if test "$ac_cv_lib_cygipc_semget" = yes; then
5295 WITH_CYGIPC_PROGRAMS_TRUE=
5296 WITH_CYGIPC_PROGRAMS_FALSE='#'
5297 else
5298 WITH_CYGIPC_PROGRAMS_TRUE='#'
5299 WITH_CYGIPC_PROGRAMS_FALSE=
5300 fi
5301
5302
5303 ac_config_files="$ac_config_files Makefile src/Makefile src/ascii/Makefile src/banner/Makefile src/cal/Makefile src/clip/Makefile src/col/Makefile src/conv/Makefile src/ddate/Makefile src/dump/Makefile src/ipc/Makefile src/last/Makefile src/lpr/Makefile src/mkshortcut/Makefile src/namei/Makefile src/realpath/Makefile src/cygstart/Makefile"
5304
5305
5306 cat >confcache <<\_ACEOF
5307 # This file is a shell script that caches the results of configure
5308 # tests run on this system so they can be shared between configure
5309 # scripts and configure runs, see configure's option --config-cache.
5310 # It is not useful on other systems. If it contains results you don't
5311 # want to keep, you may remove or edit it.
5312 #
5313 # config.status only pays attention to the cache file if you give it
5314 # the --recheck option to rerun configure.
5315 #
5316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5318 # following values.
5319
5320 _ACEOF
5321
5322 # The following way of writing the cache mishandles newlines in values,
5323 # but we know of no workaround that is simple, portable, and efficient.
5324 # So, don't put newlines in cache variables' values.
5325 # Ultrix sh set writes to stderr and can't be redirected directly,
5326 # and sets the high bit in the cache file unless we assign to the vars.
5327 {
5328 (set) 2>&1 |
5329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5330 *ac_space=\ *)
5331 # `set' does not quote correctly, so add quotes (double-quote
5332 # substitution turns \\\\ into \\, and sed turns \\ into \).
5333 sed -n \
5334 "s/'/'\\\\''/g;
5335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5336 ;;
5337 *)
5338 # `set' quotes correctly as required by POSIX, so do not add quotes.
5339 sed -n \
5340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5341 ;;
5342 esac;
5343 } |
5344 sed '
5345 t clear
5346 : clear
5347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5348 t end
5349 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5350 : end' >>confcache
5351 if cmp -s $cache_file confcache; then :; else
5352 if test -w $cache_file; then
5353 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5354 cat confcache >$cache_file
5355 else
5356 echo "not updating unwritable cache $cache_file"
5357 fi
5358 fi
5359 rm -f confcache
5360
5361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5362 # Let make expand exec_prefix.
5363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5364
5365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5367 # trailing colons and then remove the whole line if VPATH becomes empty
5368 # (actually we leave an empty line to preserve line numbers).
5369 if test "x$srcdir" = x.; then
5370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5371 s/:*\$(srcdir):*/:/;
5372 s/:*\${srcdir}:*/:/;
5373 s/:*@srcdir@:*/:/;
5374 s/^\([^=]*=[ ]*\):*/\1/;
5375 s/:*$//;
5376 s/^[^=]*=[ ]*$//;
5377 }'
5378 fi
5379
5380 DEFS=-DHAVE_CONFIG_H
5381
5382 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5383 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5384 Usually this means the macro was only invoked conditionally." >&5
5385 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5386 Usually this means the macro was only invoked conditionally." >&2;}
5387 { (exit 1); exit 1; }; }
5388 fi
5389 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5390 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5391 Usually this means the macro was only invoked conditionally." >&5
5392 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5393 Usually this means the macro was only invoked conditionally." >&2;}
5394 { (exit 1); exit 1; }; }
5395 fi
5396 if test -z "${WITH_WINDOWS_PROGRAMS_TRUE}" && test -z "${WITH_WINDOWS_PROGRAMS_FALSE}"; then
5397 { { echo "$as_me:$LINENO: error: conditional \"WITH_WINDOWS_PROGRAMS\" was never defined.
5398 Usually this means the macro was only invoked conditionally." >&5
5399 echo "$as_me: error: conditional \"WITH_WINDOWS_PROGRAMS\" was never defined.
5400 Usually this means the macro was only invoked conditionally." >&2;}
5401 { (exit 1); exit 1; }; }
5402 fi
5403 if test -z "${WITH_CYGIPC_PROGRAMS_TRUE}" && test -z "${WITH_CYGIPC_PROGRAMS_FALSE}"; then
5404 { { echo "$as_me:$LINENO: error: conditional \"WITH_CYGIPC_PROGRAMS\" was never defined.
5405 Usually this means the macro was only invoked conditionally." >&5
5406 echo "$as_me: error: conditional \"WITH_CYGIPC_PROGRAMS\" was never defined.
5407 Usually this means the macro was only invoked conditionally." >&2;}
5408 { (exit 1); exit 1; }; }
5409 fi
5410
5411 : ${CONFIG_STATUS=./config.status}
5412 ac_clean_files_save=$ac_clean_files
5413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5414 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5415 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5416 cat >$CONFIG_STATUS <<_ACEOF
5417 #! $SHELL
5418 # Generated by $as_me.
5419 # Run this file to recreate the current configuration.
5420 # Compiler output produced by configure, useful for debugging
5421 # configure, is in config.log if it exists.
5422
5423 debug=false
5424 SHELL=\${CONFIG_SHELL-$SHELL}
5425 _ACEOF
5426
5427 cat >>$CONFIG_STATUS <<\_ACEOF
5428 ## --------------------- ##
5429 ## M4sh Initialization. ##
5430 ## --------------------- ##
5431
5432 # Be Bourne compatible
5433 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5434 emulate sh
5435 NULLCMD=:
5436 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5437 # is contrary to our usage. Disable this feature.
5438 alias -g '${1+"$@"}'='"$@"'
5439 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5440 set -o posix
5441 fi
5442
5443 # NLS nuisances.
5444 # Support unset when possible.
5445 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5446 as_unset=unset
5447 else
5448 as_unset=false
5449 fi
5450
5451 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5452 { $as_unset LANG || test "${LANG+set}" != set; } ||
5453 { LANG=C; export LANG; }
5454 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5455 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5456 { LC_ALL=C; export LC_ALL; }
5457 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5458 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5459 { LC_TIME=C; export LC_TIME; }
5460 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5461 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5462 { LC_CTYPE=C; export LC_CTYPE; }
5463 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5464 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5465 { LANGUAGE=C; export LANGUAGE; }
5466 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5467 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5468 { LC_COLLATE=C; export LC_COLLATE; }
5469 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5470 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5471 { LC_NUMERIC=C; export LC_NUMERIC; }
5472 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5473 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5474 { LC_MESSAGES=C; export LC_MESSAGES; }
5475
5476
5477 # Required to use basename.
5478 if expr a : '\(a\)' >/dev/null 2>&1; then
5479 as_expr=expr
5480 else
5481 as_expr=false
5482 fi
5483
5484 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5485 as_basename=basename
5486 else
5487 as_basename=false
5488 fi
5489
5490
5491 # Name of the executable.
5492 as_me=`$as_basename "$0" ||
5493 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5494 X"$0" : 'X\(//\)$' \| \
5495 X"$0" : 'X\(/\)$' \| \
5496 . : '\(.\)' 2>/dev/null ||
5497 echo X/"$0" |
5498 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5499 /^X\/\(\/\/\)$/{ s//\1/; q; }
5500 /^X\/\(\/\).*/{ s//\1/; q; }
5501 s/.*/./; q'`
5502
5503
5504 # PATH needs CR, and LINENO needs CR and PATH.
5505 # Avoid depending upon Character Ranges.
5506 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5507 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5508 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5509 as_cr_digits='0123456789'
5510 as_cr_alnum=$as_cr_Letters$as_cr_digits
5511
5512 # The user is always right.
5513 if test "${PATH_SEPARATOR+set}" != set; then
5514 echo "#! /bin/sh" >conftest.sh
5515 echo "exit 0" >>conftest.sh
5516 chmod +x conftest.sh
5517 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5518 PATH_SEPARATOR=';'
5519 else
5520 PATH_SEPARATOR=:
5521 fi
5522 rm -f conftest.sh
5523 fi
5524
5525
5526 as_lineno_1=$LINENO
5527 as_lineno_2=$LINENO
5528 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5529 test "x$as_lineno_1" != "x$as_lineno_2" &&
5530 test "x$as_lineno_3" = "x$as_lineno_2" || {
5531 # Find who we are. Look in the path if we contain no path at all
5532 # relative or not.
5533 case $0 in
5534 *[\\/]* ) as_myself=$0 ;;
5535 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5541 done
5542
5543 ;;
5544 esac
5545 # We did not find ourselves, most probably we were run as `sh COMMAND'
5546 # in which case we are not to be found in the path.
5547 if test "x$as_myself" = x; then
5548 as_myself=$0
5549 fi
5550 if test ! -f "$as_myself"; then
5551 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5552 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5553 { (exit 1); exit 1; }; }
5554 fi
5555 case $CONFIG_SHELL in
5556 '')
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5559 do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for as_base in sh bash ksh sh5; do
5563 case $as_dir in
5564 /*)
5565 if ("$as_dir/$as_base" -c '
5566 as_lineno_1=$LINENO
5567 as_lineno_2=$LINENO
5568 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5569 test "x$as_lineno_1" != "x$as_lineno_2" &&
5570 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5571 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5572 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5573 CONFIG_SHELL=$as_dir/$as_base
5574 export CONFIG_SHELL
5575 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5576 fi;;
5577 esac
5578 done
5579 done
5580 ;;
5581 esac
5582
5583 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5584 # uniformly replaced by the line number. The first 'sed' inserts a
5585 # line-number line before each line; the second 'sed' does the real
5586 # work. The second script uses 'N' to pair each line-number line
5587 # with the numbered line, and appends trailing '-' during
5588 # substitution so that $LINENO is not a special case at line end.
5589 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5590 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5591 sed '=' <$as_myself |
5592 sed '
5593 N
5594 s,$,-,
5595 : loop
5596 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5597 t loop
5598 s,-$,,
5599 s,^['$as_cr_digits']*\n,,
5600 ' >$as_me.lineno &&
5601 chmod +x $as_me.lineno ||
5602 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5603 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5604 { (exit 1); exit 1; }; }
5605
5606 # Don't try to exec as it changes $[0], causing all sort of problems
5607 # (the dirname of $[0] is not the place where we might find the
5608 # original and so on. Autoconf is especially sensible to this).
5609 . ./$as_me.lineno
5610 # Exit status is that of the last command.
5611 exit
5612 }
5613
5614
5615 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5616 *c*,-n*) ECHO_N= ECHO_C='
5617 ' ECHO_T=' ' ;;
5618 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5619 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5620 esac
5621
5622 if expr a : '\(a\)' >/dev/null 2>&1; then
5623 as_expr=expr
5624 else
5625 as_expr=false
5626 fi
5627
5628 rm -f conf$$ conf$$.exe conf$$.file
5629 echo >conf$$.file
5630 if ln -s conf$$.file conf$$ 2>/dev/null; then
5631 # We could just check for DJGPP; but this test a) works b) is more generic
5632 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5633 if test -f conf$$.exe; then
5634 # Don't use ln at all; we don't have any links
5635 as_ln_s='cp -p'
5636 else
5637 as_ln_s='ln -s'
5638 fi
5639 elif ln conf$$.file conf$$ 2>/dev/null; then
5640 as_ln_s=ln
5641 else
5642 as_ln_s='cp -p'
5643 fi
5644 rm -f conf$$ conf$$.exe conf$$.file
5645
5646 if mkdir -p . 2>/dev/null; then
5647 as_mkdir_p=:
5648 else
5649 as_mkdir_p=false
5650 fi
5651
5652 as_executable_p="test -f"
5653
5654 # Sed expression to map a string onto a valid CPP name.
5655 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5656
5657 # Sed expression to map a string onto a valid variable name.
5658 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5659
5660
5661 # IFS
5662 # We need space, tab and new line, in precisely that order.
5663 as_nl='
5664 '
5665 IFS=" $as_nl"
5666
5667 # CDPATH.
5668 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
5669
5670 exec 6>&1
5671
5672 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5673 # report actual input values of CONFIG_FILES etc. instead of their
5674 # values after options handling. Logging --version etc. is OK.
5675 exec 5>>config.log
5676 {
5677 echo
5678 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5679 ## Running $as_me. ##
5680 _ASBOX
5681 } >&5
5682 cat >&5 <<_CSEOF
5683
5684 This file was extended by cygutils $as_me 1.0.0, which was
5685 generated by GNU Autoconf 2.53a. Invocation command line was
5686
5687 CONFIG_FILES = $CONFIG_FILES
5688 CONFIG_HEADERS = $CONFIG_HEADERS
5689 CONFIG_LINKS = $CONFIG_LINKS
5690 CONFIG_COMMANDS = $CONFIG_COMMANDS
5691 $ $0 $@
5692
5693 _CSEOF
5694 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5695 echo >&5
5696 _ACEOF
5697
5698 # Files that config.status was made for.
5699 if test -n "$ac_config_files"; then
5700 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5701 fi
5702
5703 if test -n "$ac_config_headers"; then
5704 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5705 fi
5706
5707 if test -n "$ac_config_links"; then
5708 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5709 fi
5710
5711 if test -n "$ac_config_commands"; then
5712 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5713 fi
5714
5715 cat >>$CONFIG_STATUS <<\_ACEOF
5716
5717 ac_cs_usage="\
5718 \`$as_me' instantiates files from templates according to the
5719 current configuration.
5720
5721 Usage: $0 [OPTIONS] [FILE]...
5722
5723 -h, --help print this help, then exit
5724 -V, --version print version number, then exit
5725 -d, --debug don't remove temporary files
5726 --recheck update $as_me by reconfiguring in the same conditions
5727 --file=FILE[:TEMPLATE]
5728 instantiate the configuration file FILE
5729 --header=FILE[:TEMPLATE]
5730 instantiate the configuration header FILE
5731
5732 Configuration files:
5733 $config_files
5734
5735 Configuration headers:
5736 $config_headers
5737
5738 Configuration commands:
5739 $config_commands
5740
5741 Report bugs to <bug-autoconf@gnu.org>."
5742 _ACEOF
5743
5744 cat >>$CONFIG_STATUS <<_ACEOF
5745 ac_cs_version="\\
5746 cygutils config.status 1.0.0
5747 configured by $0, generated by GNU Autoconf 2.53a,
5748 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5749
5750 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5751 Free Software Foundation, Inc.
5752 This config.status script is free software; the Free Software Foundation
5753 gives unlimited permission to copy, distribute and modify it."
5754 srcdir=$srcdir
5755 INSTALL="$INSTALL"
5756 _ACEOF
5757
5758 cat >>$CONFIG_STATUS <<\_ACEOF
5759 # If no file are specified by the user, then we need to provide default
5760 # value. By we need to know if files were specified by the user.
5761 ac_need_defaults=:
5762 while test $# != 0
5763 do
5764 case $1 in
5765 --*=*)
5766 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5767 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5768 ac_shift=:
5769 ;;
5770 -*)
5771 ac_option=$1
5772 ac_optarg=$2
5773 ac_shift=shift
5774 ;;
5775 *) # This is not an option, so the user has probably given explicit
5776 # arguments.
5777 ac_option=$1
5778 ac_need_defaults=false;;
5779 esac
5780
5781 case $ac_option in
5782 # Handling of the options.
5783 _ACEOF
5784 cat >>$CONFIG_STATUS <<_ACEOF
5785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5786 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5787 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5788 _ACEOF
5789 cat >>$CONFIG_STATUS <<\_ACEOF
5790 --version | --vers* | -V )
5791 echo "$ac_cs_version"; exit 0 ;;
5792 --he | --h)
5793 # Conflict between --help and --header
5794 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5795 Try \`$0 --help' for more information." >&5
5796 echo "$as_me: error: ambiguous option: $1
5797 Try \`$0 --help' for more information." >&2;}
5798 { (exit 1); exit 1; }; };;
5799 --help | --hel | -h )
5800 echo "$ac_cs_usage"; exit 0 ;;
5801 --debug | --d* | -d )
5802 debug=: ;;
5803 --file | --fil | --fi | --f )
5804 $ac_shift
5805 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5806 ac_need_defaults=false;;
5807 --header | --heade | --head | --hea )
5808 $ac_shift
5809 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5810 ac_need_defaults=false;;
5811
5812 # This is an error.
5813 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5814 Try \`$0 --help' for more information." >&5
5815 echo "$as_me: error: unrecognized option: $1
5816 Try \`$0 --help' for more information." >&2;}
5817 { (exit 1); exit 1; }; } ;;
5818
5819 *) ac_config_targets="$ac_config_targets $1" ;;
5820
5821 esac
5822 shift
5823 done
5824
5825 _ACEOF
5826
5827 cat >>$CONFIG_STATUS <<_ACEOF
5828 #
5829 # INIT-COMMANDS section.
5830 #
5831
5832 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5833
5834 _ACEOF
5835
5836
5837
5838 cat >>$CONFIG_STATUS <<\_ACEOF
5839 for ac_config_target in $ac_config_targets
5840 do
5841 case "$ac_config_target" in
5842 # Handling of arguments.
5843 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5844 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5845 "src/ascii/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ascii/Makefile" ;;
5846 "src/banner/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/banner/Makefile" ;;
5847 "src/cal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cal/Makefile" ;;
5848 "src/clip/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/clip/Makefile" ;;
5849 "src/col/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/col/Makefile" ;;
5850 "src/conv/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/conv/Makefile" ;;
5851 "src/ddate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ddate/Makefile" ;;
5852 "src/dump/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dump/Makefile" ;;
5853 "src/ipc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ipc/Makefile" ;;
5854 "src/last/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/last/Makefile" ;;
5855 "src/lpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lpr/Makefile" ;;
5856 "src/mkshortcut/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mkshortcut/Makefile" ;;
5857 "src/namei/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/namei/Makefile" ;;
5858 "src/realpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/realpath/Makefile" ;;
5859 "src/cygstart/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cygstart/Makefile" ;;
5860 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5861 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5862 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5863 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5864 { (exit 1); exit 1; }; };;
5865 esac
5866 done
5867
5868 # If the user did not use the arguments to specify the items to instantiate,
5869 # then the envvar interface is used. Set only those that are not.
5870 # We use the long form for the default assignment because of an extremely
5871 # bizarre bug on SunOS 4.1.3.
5872 if $ac_need_defaults; then
5873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5876 fi
5877
5878 # Create a temporary directory, and hook for its removal unless debugging.
5879 $debug ||
5880 {
5881 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5882 trap '{ (exit 1); exit 1; }' 1 2 13 15
5883 }
5884
5885 # Create a (secure) tmp directory for tmp files.
5886 : ${TMPDIR=/tmp}
5887 {
5888 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5889 test -n "$tmp" && test -d "$tmp"
5890 } ||
5891 {
5892 tmp=$TMPDIR/cs$$-$RANDOM
5893 (umask 077 && mkdir $tmp)
5894 } ||
5895 {
5896 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5897 { (exit 1); exit 1; }
5898 }
5899
5900 _ACEOF
5901
5902 cat >>$CONFIG_STATUS <<_ACEOF
5903
5904 #
5905 # CONFIG_FILES section.
5906 #
5907
5908 # No need to generate the scripts if there are no CONFIG_FILES.
5909 # This happens for instance when ./config.status config.h
5910 if test -n "\$CONFIG_FILES"; then
5911 # Protect against being on the right side of a sed subst in config.status.
5912 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5913 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5914 s,@SHELL@,$SHELL,;t t
5915 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5916 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5917 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5918 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5919 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5920 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5921 s,@exec_prefix@,$exec_prefix,;t t
5922 s,@prefix@,$prefix,;t t
5923 s,@program_transform_name@,$program_transform_name,;t t
5924 s,@bindir@,$bindir,;t t
5925 s,@sbindir@,$sbindir,;t t
5926 s,@libexecdir@,$libexecdir,;t t
5927 s,@datadir@,$datadir,;t t
5928 s,@sysconfdir@,$sysconfdir,;t t
5929 s,@sharedstatedir@,$sharedstatedir,;t t
5930 s,@localstatedir@,$localstatedir,;t t
5931 s,@libdir@,$libdir,;t t
5932 s,@includedir@,$includedir,;t t
5933 s,@oldincludedir@,$oldincludedir,;t t
5934 s,@infodir@,$infodir,;t t
5935 s,@mandir@,$mandir,;t t
5936 s,@build_alias@,$build_alias,;t t
5937 s,@host_alias@,$host_alias,;t t
5938 s,@target_alias@,$target_alias,;t t
5939 s,@DEFS@,$DEFS,;t t
5940 s,@ECHO_C@,$ECHO_C,;t t
5941 s,@ECHO_N@,$ECHO_N,;t t
5942 s,@ECHO_T@,$ECHO_T,;t t
5943 s,@LIBS@,$LIBS,;t t
5944 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5945 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5946 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5947 s,@PACKAGE@,$PACKAGE,;t t
5948 s,@VERSION@,$VERSION,;t t
5949 s,@ACLOCAL@,$ACLOCAL,;t t
5950 s,@AUTOCONF@,$AUTOCONF,;t t
5951 s,@AUTOMAKE@,$AUTOMAKE,;t t
5952 s,@AUTOHEADER@,$AUTOHEADER,;t t
5953 s,@MAKEINFO@,$MAKEINFO,;t t
5954 s,@AMTAR@,$AMTAR,;t t
5955 s,@install_sh@,$install_sh,;t t
5956 s,@STRIP@,$STRIP,;t t
5957 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5958 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5959 s,@AWK@,$AWK,;t t
5960 s,@SET_MAKE@,$SET_MAKE,;t t
5961 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5962 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5963 s,@MAINT@,$MAINT,;t t
5964 s,@CC@,$CC,;t t
5965 s,@CFLAGS@,$CFLAGS,;t t
5966 s,@LDFLAGS@,$LDFLAGS,;t t
5967 s,@CPPFLAGS@,$CPPFLAGS,;t t
5968 s,@ac_ct_CC@,$ac_ct_CC,;t t
5969 s,@EXEEXT@,$EXEEXT,;t t
5970 s,@OBJEXT@,$OBJEXT,;t t
5971 s,@DEPDIR@,$DEPDIR,;t t
5972 s,@am__include@,$am__include,;t t
5973 s,@am__quote@,$am__quote,;t t
5974 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5975 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5976 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5977 s,@CCDEPMODE@,$CCDEPMODE,;t t
5978 s,@CPP@,$CPP,;t t
5979 s,@LIBOBJS@,$LIBOBJS,;t t
5980 s,@WITH_WINDOWS_PROGRAMS_TRUE@,$WITH_WINDOWS_PROGRAMS_TRUE,;t t
5981 s,@WITH_WINDOWS_PROGRAMS_FALSE@,$WITH_WINDOWS_PROGRAMS_FALSE,;t t
5982 s,@WITH_CYGIPC_PROGRAMS_TRUE@,$WITH_CYGIPC_PROGRAMS_TRUE,;t t
5983 s,@WITH_CYGIPC_PROGRAMS_FALSE@,$WITH_CYGIPC_PROGRAMS_FALSE,;t t
5984 CEOF
5985
5986 _ACEOF
5987
5988 cat >>$CONFIG_STATUS <<\_ACEOF
5989 # Split the substitutions into bite-sized pieces for seds with
5990 # small command number limits, like on Digital OSF/1 and HP-UX.
5991 ac_max_sed_lines=48
5992 ac_sed_frag=1 # Number of current file.
5993 ac_beg=1 # First line for current file.
5994 ac_end=$ac_max_sed_lines # Line after last line for current file.
5995 ac_more_lines=:
5996 ac_sed_cmds=
5997 while $ac_more_lines; do
5998 if test $ac_beg -gt 1; then
5999 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6000 else
6001 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6002 fi
6003 if test ! -s $tmp/subs.frag; then
6004 ac_more_lines=false
6005 else
6006 # The purpose of the label and of the branching condition is to
6007 # speed up the sed processing (if there are no `@' at all, there
6008 # is no need to browse any of the substitutions).
6009 # These are the two extra sed commands mentioned above.
6010 (echo ':t
6011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6012 if test -z "$ac_sed_cmds"; then
6013 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6014 else
6015 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6016 fi
6017 ac_sed_frag=`expr $ac_sed_frag + 1`
6018 ac_beg=$ac_end
6019 ac_end=`expr $ac_end + $ac_max_sed_lines`
6020 fi
6021 done
6022 if test -z "$ac_sed_cmds"; then
6023 ac_sed_cmds=cat
6024 fi
6025 fi # test -n "$CONFIG_FILES"
6026
6027 _ACEOF
6028 cat >>$CONFIG_STATUS <<\_ACEOF
6029 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6030 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6031 case $ac_file in
6032 - | *:- | *:-:* ) # input from stdin
6033 cat >$tmp/stdin
6034 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6035 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6036 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6038 * ) ac_file_in=$ac_file.in ;;
6039 esac
6040
6041 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6042 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6044 X"$ac_file" : 'X\(//\)[^/]' \| \
6045 X"$ac_file" : 'X\(//\)$' \| \
6046 X"$ac_file" : 'X\(/\)' \| \
6047 . : '\(.\)' 2>/dev/null ||
6048 echo X"$ac_file" |
6049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6051 /^X\(\/\/\)$/{ s//\1/; q; }
6052 /^X\(\/\).*/{ s//\1/; q; }
6053 s/.*/./; q'`
6054 { if $as_mkdir_p; then
6055 mkdir -p "$ac_dir"
6056 else
6057 as_dir="$ac_dir"
6058 as_dirs=
6059 while test ! -d "$as_dir"; do
6060 as_dirs="$as_dir $as_dirs"
6061 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6063 X"$as_dir" : 'X\(//\)[^/]' \| \
6064 X"$as_dir" : 'X\(//\)$' \| \
6065 X"$as_dir" : 'X\(/\)' \| \
6066 . : '\(.\)' 2>/dev/null ||
6067 echo X"$as_dir" |
6068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6070 /^X\(\/\/\)$/{ s//\1/; q; }
6071 /^X\(\/\).*/{ s//\1/; q; }
6072 s/.*/./; q'`
6073 done
6074 test ! -n "$as_dirs" || mkdir $as_dirs
6075 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6076 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6077 { (exit 1); exit 1; }; }; }
6078
6079 ac_builddir=.
6080
6081 if test "$ac_dir" != .; then
6082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6083 # A "../" for each directory in $ac_dir_suffix.
6084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6085 else
6086 ac_dir_suffix= ac_top_builddir=
6087 fi
6088
6089 case $srcdir in
6090 .) # No --srcdir option. We are building in place.
6091 ac_srcdir=.
6092 if test -z "$ac_top_builddir"; then
6093 ac_top_srcdir=.
6094 else
6095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6096 fi ;;
6097 [\\/]* | ?:[\\/]* ) # Absolute path.
6098 ac_srcdir=$srcdir$ac_dir_suffix;
6099 ac_top_srcdir=$srcdir ;;
6100 *) # Relative path.
6101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6103 esac
6104 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6105 # absolute.
6106 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6107 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6108 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6109 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6110
6111
6112 case $INSTALL in
6113 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6114 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6115 esac
6116
6117 if test x"$ac_file" != x-; then
6118 { echo "$as_me:$LINENO: creating $ac_file" >&5
6119 echo "$as_me: creating $ac_file" >&6;}
6120 rm -f "$ac_file"
6121 fi
6122 # Let's still pretend it is `configure' which instantiates (i.e., don't
6123 # use $as_me), people would be surprised to read:
6124 # /* config.h. Generated by config.status. */
6125 if test x"$ac_file" = x-; then
6126 configure_input=
6127 else
6128 configure_input="$ac_file. "
6129 fi
6130 configure_input=$configure_input"Generated from `echo $ac_file_in |
6131 sed 's,.*/,,'` by configure."
6132
6133 # First look for the input files in the build tree, otherwise in the
6134 # src tree.
6135 ac_file_inputs=`IFS=:
6136 for f in $ac_file_in; do
6137 case $f in
6138 -) echo $tmp/stdin ;;
6139 [\\/$]*)
6140 # Absolute (can't be DOS-style, as IFS=:)
6141 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6142 echo "$as_me: error: cannot find input file: $f" >&2;}
6143 { (exit 1); exit 1; }; }
6144 echo $f;;
6145 *) # Relative
6146 if test -f "$f"; then
6147 # Build tree
6148 echo $f
6149 elif test -f "$srcdir/$f"; then
6150 # Source tree
6151 echo $srcdir/$f
6152 else
6153 # /dev/null tree
6154 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6155 echo "$as_me: error: cannot find input file: $f" >&2;}
6156 { (exit 1); exit 1; }; }
6157 fi;;
6158 esac
6159 done` || { (exit 1); exit 1; }
6160 _ACEOF
6161 cat >>$CONFIG_STATUS <<_ACEOF
6162 sed "$ac_vpsub
6163 $extrasub
6164 _ACEOF
6165 cat >>$CONFIG_STATUS <<\_ACEOF
6166 :t
6167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6168 s,@configure_input@,$configure_input,;t t
6169 s,@srcdir@,$ac_srcdir,;t t
6170 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6171 s,@top_srcdir@,$ac_top_srcdir,;t t
6172 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6173 s,@builddir@,$ac_builddir,;t t
6174 s,@abs_builddir@,$ac_abs_builddir,;t t
6175 s,@top_builddir@,$ac_top_builddir,;t t
6176 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6177 s,@INSTALL@,$ac_INSTALL,;t t
6178 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6179 rm -f $tmp/stdin
6180 if test x"$ac_file" != x-; then
6181 mv $tmp/out $ac_file
6182 else
6183 cat $tmp/out
6184 rm -f $tmp/out
6185 fi
6186
6187 done
6188 _ACEOF
6189 cat >>$CONFIG_STATUS <<\_ACEOF
6190
6191 #
6192 # CONFIG_HEADER section.
6193 #
6194
6195 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6196 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6197 #
6198 # ac_d sets the value in "#define NAME VALUE" lines.
6199 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6200 ac_dB='[ ].*$,\1#\2'
6201 ac_dC=' '
6202 ac_dD=',;t'
6203 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6204 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6205 ac_uB='$,\1#\2define\3'
6206 ac_uC=' '
6207 ac_uD=',;t'
6208
6209 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6210 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6211 case $ac_file in
6212 - | *:- | *:-:* ) # input from stdin
6213 cat >$tmp/stdin
6214 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6215 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6216 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6217 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6218 * ) ac_file_in=$ac_file.in ;;
6219 esac
6220
6221 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6222 echo "$as_me: creating $ac_file" >&6;}
6223
6224 # First look for the input files in the build tree, otherwise in the
6225 # src tree.
6226 ac_file_inputs=`IFS=:
6227 for f in $ac_file_in; do
6228 case $f in
6229 -) echo $tmp/stdin ;;
6230 [\\/$]*)
6231 # Absolute (can't be DOS-style, as IFS=:)
6232 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6233 echo "$as_me: error: cannot find input file: $f" >&2;}
6234 { (exit 1); exit 1; }; }
6235 echo $f;;
6236 *) # Relative
6237 if test -f "$f"; then
6238 # Build tree
6239 echo $f
6240 elif test -f "$srcdir/$f"; then
6241 # Source tree
6242 echo $srcdir/$f
6243 else
6244 # /dev/null tree
6245 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6246 echo "$as_me: error: cannot find input file: $f" >&2;}
6247 { (exit 1); exit 1; }; }
6248 fi;;
6249 esac
6250 done` || { (exit 1); exit 1; }
6251 # Remove the trailing spaces.
6252 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6253
6254 _ACEOF
6255
6256 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6257 # `conftest.undefs', that substitutes the proper values into
6258 # config.h.in to produce config.h. The first handles `#define'
6259 # templates, and the second `#undef' templates.
6260 # And first: Protect against being on the right side of a sed subst in
6261 # config.status. Protect against being in an unquoted here document
6262 # in config.status.
6263 rm -f conftest.defines conftest.undefs
6264 # Using a here document instead of a string reduces the quoting nightmare.
6265 # Putting comments in sed scripts is not portable.
6266 #
6267 # `end' is used to avoid that the second main sed command (meant for
6268 # 0-ary CPP macros) applies to n-ary macro definitions.
6269 # See the Autoconf documentation for `clear'.
6270 cat >confdef2sed.sed <<\_ACEOF
6271 s/[\\&,]/\\&/g
6272 s,[\\$`],\\&,g
6273 t clear
6274 : clear
6275 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6276 t end
6277 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6278 : end
6279 _ACEOF
6280 # If some macros were called several times there might be several times
6281 # the same #defines, which is useless. Nevertheless, we may not want to
6282 # sort them, since we want the *last* AC-DEFINE to be honored.
6283 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6284 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6285 rm -f confdef2sed.sed
6286
6287 # This sed command replaces #undef with comments. This is necessary, for
6288 # example, in the case of _POSIX_SOURCE, which is predefined and required
6289 # on some systems where configure will not decide to define it.
6290 cat >>conftest.undefs <<\_ACEOF
6291 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6292 _ACEOF
6293
6294 # Break up conftest.defines because some shells have a limit on the size
6295 # of here documents, and old seds have small limits too (100 cmds).
6296 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6297 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6298 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6299 echo ' :' >>$CONFIG_STATUS
6300 rm -f conftest.tail
6301 while grep . conftest.defines >/dev/null
6302 do
6303 # Write a limited-size here document to $tmp/defines.sed.
6304 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6305 # Speed up: don't consider the non `#define' lines.
6306 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6307 # Work around the forget-to-reset-the-flag bug.
6308 echo 't clr' >>$CONFIG_STATUS
6309 echo ': clr' >>$CONFIG_STATUS
6310 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6311 echo 'CEOF
6312 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6313 rm -f $tmp/in
6314 mv $tmp/out $tmp/in
6315 ' >>$CONFIG_STATUS
6316 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6317 rm -f conftest.defines
6318 mv conftest.tail conftest.defines
6319 done
6320 rm -f conftest.defines
6321 echo ' fi # egrep' >>$CONFIG_STATUS
6322 echo >>$CONFIG_STATUS
6323
6324 # Break up conftest.undefs because some shells have a limit on the size
6325 # of here documents, and old seds have small limits too (100 cmds).
6326 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6327 rm -f conftest.tail
6328 while grep . conftest.undefs >/dev/null
6329 do
6330 # Write a limited-size here document to $tmp/undefs.sed.
6331 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6332 # Speed up: don't consider the non `#undef'
6333 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6334 # Work around the forget-to-reset-the-flag bug.
6335 echo 't clr' >>$CONFIG_STATUS
6336 echo ': clr' >>$CONFIG_STATUS
6337 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6338 echo 'CEOF
6339 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6340 rm -f $tmp/in
6341 mv $tmp/out $tmp/in
6342 ' >>$CONFIG_STATUS
6343 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6344 rm -f conftest.undefs
6345 mv conftest.tail conftest.undefs
6346 done
6347 rm -f conftest.undefs
6348
6349 cat >>$CONFIG_STATUS <<\_ACEOF
6350 # Let's still pretend it is `configure' which instantiates (i.e., don't
6351 # use $as_me), people would be surprised to read:
6352 # /* config.h. Generated by config.status. */
6353 if test x"$ac_file" = x-; then
6354 echo "/* Generated by configure. */" >$tmp/config.h
6355 else
6356 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6357 fi
6358 cat $tmp/in >>$tmp/config.h
6359 rm -f $tmp/in
6360 if test x"$ac_file" != x-; then
6361 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6362 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6363 echo "$as_me: $ac_file is unchanged" >&6;}
6364 else
6365 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6366 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6367 X"$ac_file" : 'X\(//\)[^/]' \| \
6368 X"$ac_file" : 'X\(//\)$' \| \
6369 X"$ac_file" : 'X\(/\)' \| \
6370 . : '\(.\)' 2>/dev/null ||
6371 echo X"$ac_file" |
6372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6374 /^X\(\/\/\)$/{ s//\1/; q; }
6375 /^X\(\/\).*/{ s//\1/; q; }
6376 s/.*/./; q'`
6377 { if $as_mkdir_p; then
6378 mkdir -p "$ac_dir"
6379 else
6380 as_dir="$ac_dir"
6381 as_dirs=
6382 while test ! -d "$as_dir"; do
6383 as_dirs="$as_dir $as_dirs"
6384 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6386 X"$as_dir" : 'X\(//\)[^/]' \| \
6387 X"$as_dir" : 'X\(//\)$' \| \
6388 X"$as_dir" : 'X\(/\)' \| \
6389 . : '\(.\)' 2>/dev/null ||
6390 echo X"$as_dir" |
6391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6393 /^X\(\/\/\)$/{ s//\1/; q; }
6394 /^X\(\/\).*/{ s//\1/; q; }
6395 s/.*/./; q'`
6396 done
6397 test ! -n "$as_dirs" || mkdir $as_dirs
6398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6399 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6400 { (exit 1); exit 1; }; }; }
6401
6402 rm -f $ac_file
6403 mv $tmp/config.h $ac_file
6404 fi
6405 else
6406 cat $tmp/config.h
6407 rm -f $tmp/config.h
6408 fi
6409 # Run the commands associated with the file.
6410 case $ac_file in
6411 config.h ) # update the timestamp
6412 echo 'timestamp for config.h' >"./stamp-h1"
6413 ;;
6414 esac
6415 done
6416 _ACEOF
6417 cat >>$CONFIG_STATUS <<\_ACEOF
6418
6419 #
6420 # CONFIG_COMMANDS section.
6421 #
6422 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6423 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6424 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6425 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6426 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6427 X"$ac_dest" : 'X\(//\)[^/]' \| \
6428 X"$ac_dest" : 'X\(//\)$' \| \
6429 X"$ac_dest" : 'X\(/\)' \| \
6430 . : '\(.\)' 2>/dev/null ||
6431 echo X"$ac_dest" |
6432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6434 /^X\(\/\/\)$/{ s//\1/; q; }
6435 /^X\(\/\).*/{ s//\1/; q; }
6436 s/.*/./; q'`
6437 ac_builddir=.
6438
6439 if test "$ac_dir" != .; then
6440 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6441 # A "../" for each directory in $ac_dir_suffix.
6442 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6443 else
6444 ac_dir_suffix= ac_top_builddir=
6445 fi
6446
6447 case $srcdir in
6448 .) # No --srcdir option. We are building in place.
6449 ac_srcdir=.
6450 if test -z "$ac_top_builddir"; then
6451 ac_top_srcdir=.
6452 else
6453 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6454 fi ;;
6455 [\\/]* | ?:[\\/]* ) # Absolute path.
6456 ac_srcdir=$srcdir$ac_dir_suffix;
6457 ac_top_srcdir=$srcdir ;;
6458 *) # Relative path.
6459 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6460 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6461 esac
6462 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6463 # absolute.
6464 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6465 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6466 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6467 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6468
6469
6470 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6471 echo "$as_me: executing $ac_dest commands" >&6;}
6472 case $ac_dest in
6473 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6474 # Strip MF so we end up with the name of the file.
6475 mf=`echo "$mf" | sed -e 's/:.*$//'`
6476 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
6477 dirpart=`(dirname "$mf") 2>/dev/null ||
6478 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6479 X"$mf" : 'X\(//\)[^/]' \| \
6480 X"$mf" : 'X\(//\)$' \| \
6481 X"$mf" : 'X\(/\)' \| \
6482 . : '\(.\)' 2>/dev/null ||
6483 echo X"$mf" |
6484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6486 /^X\(\/\/\)$/{ s//\1/; q; }
6487 /^X\(\/\).*/{ s//\1/; q; }
6488 s/.*/./; q'`
6489 else
6490 continue
6491 fi
6492 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6493 # Extract the definition of DEP_FILES from the Makefile without
6494 # running `make'.
6495 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6496 test -z "$DEPDIR" && continue
6497 # When using ansi2knr, U may be empty or an underscore; expand it
6498 U=`sed -n -e '/^U = / s///p' < "$mf"`
6499 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6500 # We invoke sed twice because it is the simplest approach to
6501 # changing $(DEPDIR) to its actual value in the expansion.
6502 for file in `sed -n -e '
6503 /^DEP_FILES = .*\\\\$/ {
6504 s/^DEP_FILES = //
6505 :loop
6506 s/\\\\$//
6507 p
6508 n
6509 /\\\\$/ b loop
6510 p
6511 }
6512 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6513 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6514 # Make sure the directory exists.
6515 test -f "$dirpart/$file" && continue
6516 fdir=`(dirname "$file") 2>/dev/null ||
6517 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6518 X"$file" : 'X\(//\)[^/]' \| \
6519 X"$file" : 'X\(//\)$' \| \
6520 X"$file" : 'X\(/\)' \| \
6521 . : '\(.\)' 2>/dev/null ||
6522 echo X"$file" |
6523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6525 /^X\(\/\/\)$/{ s//\1/; q; }
6526 /^X\(\/\).*/{ s//\1/; q; }
6527 s/.*/./; q'`
6528 { if $as_mkdir_p; then
6529 mkdir -p $dirpart/$fdir
6530 else
6531 as_dir=$dirpart/$fdir
6532 as_dirs=
6533 while test ! -d "$as_dir"; do
6534 as_dirs="$as_dir $as_dirs"
6535 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6537 X"$as_dir" : 'X\(//\)[^/]' \| \
6538 X"$as_dir" : 'X\(//\)$' \| \
6539 X"$as_dir" : 'X\(/\)' \| \
6540 . : '\(.\)' 2>/dev/null ||
6541 echo X"$as_dir" |
6542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6544 /^X\(\/\/\)$/{ s//\1/; q; }
6545 /^X\(\/\).*/{ s//\1/; q; }
6546 s/.*/./; q'`
6547 done
6548 test ! -n "$as_dirs" || mkdir $as_dirs
6549 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6550 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6551 { (exit 1); exit 1; }; }; }
6552
6553 # echo "creating $dirpart/$file"
6554 echo '# dummy' > "$dirpart/$file"
6555 done
6556 done
6557 ;;
6558 esac
6559 done
6560 _ACEOF
6561
6562 cat >>$CONFIG_STATUS <<\_ACEOF
6563
6564 { (exit 0); exit 0; }
6565 _ACEOF
6566 chmod +x $CONFIG_STATUS
6567 ac_clean_files=$ac_clean_files_save
6568
6569
6570 # configure is writing to config.log, and then calls config.status.
6571 # config.status does its own redirection, appending to config.log.
6572 # Unfortunately, on DOS this fails, as config.log is still kept open
6573 # by configure, so config.status won't be able to write to it; its
6574 # output is simply discarded. So we exec the FD to /dev/null,
6575 # effectively closing config.log, so it can be properly (re)opened and
6576 # appended to by config.status. When coming back to configure, we
6577 # need to make the FD available again.
6578 if test "$no_create" != yes; then
6579 ac_cs_success=:
6580 exec 5>/dev/null
6581 $SHELL $CONFIG_STATUS || ac_cs_success=false
6582 exec 5>>config.log
6583 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6584 # would make configure fail if this is the last instruction.
6585 $ac_cs_success || { (exit 1); exit 1; }
6586 fi
6587
This page took 0.401782 seconds and 5 git commands to generate.