Debian Codegraph @

configure

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