]> git.ipfire.org Git - thirdparty/gcc.git/blob - libobjc/configure
* configure: Regenerate.
[thirdparty/gcc.git] / libobjc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
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='package-unused'
269 PACKAGE_TARNAME='libobjc'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='package-unused version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="objc/objc.h"
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 build build_cpu build_vendor build_os build_subdir host_subdir target_subdir VERSION OBJC_BOEHM_GC toplevel_srcdir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir toolexecdir toolexeclibdir includedirname libext CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LN_S STRIP ac_ct_STRIP LIBTOOL SET_MAKE CPP CPPFLAGS 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_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761
762 #
763 # Report the --help message.
764 #
765 if test "$ac_init_help" = "long"; then
766 # Omit some internal or obsolete options to make the list less imposing.
767 # This message is too long to be a string in the A/UX 3.1 sh.
768 cat <<_ACEOF
769 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
770
771 Usage: $0 [OPTION]... [VAR=VALUE]...
772
773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
774 VAR=VALUE. See below for descriptions of some of the useful variables.
775
776 Defaults for the options are specified in brackets.
777
778 Configuration:
779 -h, --help display this help and exit
780 --help=short display options specific to this package
781 --help=recursive display the short help of all the included packages
782 -V, --version display version information and exit
783 -q, --quiet, --silent do not print \`checking...' messages
784 --cache-file=FILE cache test results in FILE [disabled]
785 -C, --config-cache alias for \`--cache-file=config.cache'
786 -n, --no-create do not create output files
787 --srcdir=DIR find the sources in DIR [configure dir or \`..']
788
789 _ACEOF
790
791 cat <<_ACEOF
792 Installation directories:
793 --prefix=PREFIX install architecture-independent files in PREFIX
794 [$ac_default_prefix]
795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
796 [PREFIX]
797
798 By default, \`make install' will install all the files in
799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801 for instance \`--prefix=\$HOME'.
802
803 For better control, use the options below.
804
805 Fine tuning of the installation directories:
806 --bindir=DIR user executables [EPREFIX/bin]
807 --sbindir=DIR system admin executables [EPREFIX/sbin]
808 --libexecdir=DIR program executables [EPREFIX/libexec]
809 --datadir=DIR read-only architecture-independent data [PREFIX/share]
810 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
811 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
812 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
813 --libdir=DIR object code libraries [EPREFIX/lib]
814 --includedir=DIR C header files [PREFIX/include]
815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
816 --infodir=DIR info documentation [PREFIX/info]
817 --mandir=DIR man documentation [PREFIX/man]
818 _ACEOF
819
820 cat <<\_ACEOF
821
822 System types:
823 --build=BUILD configure for building on BUILD [guessed]
824 --host=HOST cross-compile to build programs to run on HOST [BUILD]
825 --target=TARGET configure for building compilers for TARGET [HOST]
826 _ACEOF
827 fi
828
829 if test -n "$ac_init_help"; then
830 case $ac_init_help in
831 short | recursive ) echo "Configuration of package-unused version-unused:";;
832 esac
833 cat <<\_ACEOF
834
835 Optional Features:
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
838 --enable-multilib build hella library versions (default)
839 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
840 --enable-objc-gc enable the use of Boehm's garbage collector with
841 the GNU Objective-C runtime.
842 --enable-maintainer-mode enable make rules and dependencies not useful
843 (and sometimes confusing) to the casual installer
844 --enable-shared=PKGS build shared libraries default=yes
845 --enable-static=PKGS build static libraries default=yes
846 --enable-fast-install=PKGS optimize for fast installation default=yes
847 --disable-libtool-lock avoid locking (might break parallel builds)
848 --enable-sjlj-exceptions
849 force use of builtin_setjmp for exceptions
850
851 Optional Packages:
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-target-subdir=SUBDIR
855 configuring in a subdirectory
856 --with-cross-host=HOST configuring with a cross compiler
857 --with-gnu-ld assume the C compiler uses GNU ld default=no
858 --with-pic try to use only PIC/non-PIC objects default=use both
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
910 *)
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *)
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
928 *)
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *)
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 esac;;
943 esac
944
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 fi
960 cd $ac_popdir
961 done
962 fi
963
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966 cat <<\_ACEOF
967 package-unused configure version-unused
968 generated by GNU Autoconf 2.59
969
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
975 fi
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
980
981 It was created by package-unused $as_me version-unused, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
983
984 $ $0 $@
985
986 _ACEOF
987 {
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
992
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009
1010 _ASUNAME
1011
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1014 do
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1019
1020 } >&5
1021
1022 cat >&5 <<_ACEOF
1023
1024
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1028
1029 _ACEOF
1030
1031
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1043 do
1044 for ac_arg
1045 do
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 2)
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1069 ;;
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1072 fi
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1076 ;;
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1090 {
1091 echo
1092
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1100 {
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107 ;;
1108 *)
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 ;;
1112 esac;
1113 }
1114 echo
1115
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1123 do
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1128
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142 fi
1143
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1153 fi
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1161 ' 0
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1166
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1171
1172 # Predefined preprocessor variables.
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1197
1198
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 fi
1207 fi
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1214 fi
1215 done
1216
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1227 fi
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1232 fi
1233
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1253 *)
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 esac
1275 fi
1276 done
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1283 fi
1284
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 break
1324 elif test -f $ac_dir/install.sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 break
1328 elif test -f $ac_dir/shtool; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 break
1332 fi
1333 done
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1338 fi
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342
1343 # Make sure we can run config.sub.
1344 $ac_config_sub sun4 >/dev/null 2>&1 ||
1345 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1346 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1347 { (exit 1); exit 1; }; }
1348
1349 echo "$as_me:$LINENO: checking build system type" >&5
1350 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1351 if test "${ac_cv_build+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 ac_cv_build_alias=$build_alias
1355 test -z "$ac_cv_build_alias" &&
1356 ac_cv_build_alias=`$ac_config_guess`
1357 test -z "$ac_cv_build_alias" &&
1358 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1359 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1360 { (exit 1); exit 1; }; }
1361 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1362 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1363 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1364 { (exit 1); exit 1; }; }
1365
1366 fi
1367 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1368 echo "${ECHO_T}$ac_cv_build" >&6
1369 build=$ac_cv_build
1370 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1373
1374
1375 case ${build_alias} in
1376 "") build_noncanonical=${build} ;;
1377 *) build_noncanonical=${build_alias} ;;
1378 esac
1379
1380 case ${host_alias} in
1381 "") host_noncanonical=${build_noncanonical} ;;
1382 *) host_noncanonical=${host_alias} ;;
1383 esac
1384
1385 case ${target_alias} in
1386 "") target_noncanonical=${host_noncanonical} ;;
1387 *) target_noncanonical=${target_alias} ;;
1388 esac
1389
1390 # Prefix 'build-' so this never conflicts with target_subdir.
1391 build_subdir="build-${build_noncanonical}"
1392 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1393 if ( test $srcdir = . && test -d gcc ) \
1394 || test -d $srcdir/../host-${host_noncanonical}; then
1395 host_subdir="host-${host_noncanonical}"
1396 else
1397 host_subdir=.
1398 fi
1399 # No prefix.
1400 target_subdir=${target_noncanonical}
1401
1402
1403 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1404 PACKAGE=libobjc
1405 # Version is pulled out to make it a bit easier to change using sed.
1406 VERSION=1:0:0
1407
1408
1409 # This works around the fact that libtool configuration may change LD
1410 # for this particular configuration, but some shells, instead of
1411 # keeping the changes in LD private, export them just because LD is
1412 # exported.
1413 ORIGINAL_LD_FOR_MULTILIBS=$LD
1414
1415 # -------
1416 # Options
1417 # -------
1418
1419 # Default to --enable-multilib
1420 # Check whether --enable-multilib or --disable-multilib was given.
1421 if test "${enable_multilib+set}" = set; then
1422 enableval="$enable_multilib"
1423 case "${enableval}" in
1424 yes) multilib=yes ;;
1425 no) multilib=no ;;
1426 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1427 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1428 { (exit 1); exit 1; }; } ;;
1429 esac
1430 else
1431 multilib=yes
1432 fi;
1433
1434 # We use these options to decide which functions to include.
1435
1436 # Check whether --with-target-subdir or --without-target-subdir was given.
1437 if test "${with_target_subdir+set}" = set; then
1438 withval="$with_target_subdir"
1439
1440 fi;
1441
1442 # Check whether --with-cross-host or --without-cross-host was given.
1443 if test "${with_cross_host+set}" = set; then
1444 withval="$with_cross_host"
1445
1446 fi;
1447
1448 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1449 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1450 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1451 if test "${enable_version_specific_runtime_libs+set}" = set; then
1452 enableval="$enable_version_specific_runtime_libs"
1453 case "$enableval" in
1454 yes) version_specific_libs=yes ;;
1455 no) version_specific_libs=no ;;
1456 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1457 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1458 { (exit 1); exit 1; }; };;
1459 esac
1460 else
1461 version_specific_libs=no
1462 fi;
1463 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1464 echo "${ECHO_T}$version_specific_libs" >&6
1465
1466 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1467 if test "${enable_objc_gc+set}" = set; then
1468 enableval="$enable_objc_gc"
1469 case $enable_objc_gc in
1470 no) OBJC_BOEHM_GC='' ;;
1471 *) OBJC_BOEHM_GC=libobjc_gc.la ;;
1472 esac
1473 else
1474 OBJC_BOEHM_GC=''
1475 fi;
1476
1477
1478 # -----------
1479 # Directories
1480 # -----------
1481
1482 # When building with srcdir == objdir, links to the source files will
1483 # be created in directories within the target_subdir. We have to
1484 # adjust toplevel_srcdir accordingly, so that configure finds
1485 # install-sh and other auxiliary files that live in the top-level
1486 # source directory.
1487 if test "${srcdir}" = "."; then
1488 if test -z "${with_target_subdir}"; then
1489 toprel=".."
1490 else
1491 if test "${with_target_subdir}" != "."; then
1492 toprel="${with_multisrctop}../.."
1493 else
1494 toprel="${with_multisrctop}.."
1495 fi
1496 fi
1497 else
1498 toprel=".."
1499 fi
1500 ac_aux_dir=
1501 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1502 if test -f $ac_dir/install-sh; then
1503 ac_aux_dir=$ac_dir
1504 ac_install_sh="$ac_aux_dir/install-sh -c"
1505 break
1506 elif test -f $ac_dir/install.sh; then
1507 ac_aux_dir=$ac_dir
1508 ac_install_sh="$ac_aux_dir/install.sh -c"
1509 break
1510 elif test -f $ac_dir/shtool; then
1511 ac_aux_dir=$ac_dir
1512 ac_install_sh="$ac_aux_dir/shtool install -c"
1513 break
1514 fi
1515 done
1516 if test -z "$ac_aux_dir"; then
1517 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1518 echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1519 { (exit 1); exit 1; }; }
1520 fi
1521 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1522 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1523 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1524
1525 toplevel_srcdir=\${srcdir}/$toprel
1526
1527
1528 echo "$as_me:$LINENO: checking host system type" >&5
1529 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1530 if test "${ac_cv_host+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533 ac_cv_host_alias=$host_alias
1534 test -z "$ac_cv_host_alias" &&
1535 ac_cv_host_alias=$ac_cv_build_alias
1536 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541 fi
1542 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1543 echo "${ECHO_T}$ac_cv_host" >&6
1544 host=$ac_cv_host
1545 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550 echo "$as_me:$LINENO: checking target system type" >&5
1551 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1552 if test "${ac_cv_target+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 ac_cv_target_alias=$target_alias
1556 test "x$ac_cv_target_alias" = "x" &&
1557 ac_cv_target_alias=$ac_cv_host_alias
1558 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563 fi
1564 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1565 echo "${ECHO_T}$ac_cv_target" >&6
1566 target=$ac_cv_target
1567 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572 # The aliases save the names the user supplied, while $host etc.
1573 # will get canonicalized.
1574 test -n "$target_alias" &&
1575 test "$program_prefix$program_suffix$program_transform_name" = \
1576 NONENONEs,x,x, &&
1577 program_prefix=${target_alias}-
1578
1579
1580
1581 # Export source directory.
1582 # These need to be absolute paths, yet at the same time need to
1583 # canonicalize only relative paths, because then amd will not unmount
1584 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1585 case $srcdir in
1586 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1587 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1588 esac
1589
1590
1591 # Calculate toolexeclibdir
1592 # Also toolexecdir, though it's only used in toolexeclibdir
1593 case ${version_specific_libs} in
1594 yes)
1595 # Need the gcc compiler version to know where to install libraries
1596 # and header files if --enable-version-specific-runtime-libs option
1597 # is selected.
1598 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1599 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1600 ;;
1601 no)
1602 if test -n "$with_cross_host" &&
1603 test x"$with_cross_host" != x"no"; then
1604 # Install a library built with a cross compiler in tooldir, not libdir.
1605 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1606 toolexeclibdir='$(toolexecdir)/lib'
1607 else
1608 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1609 toolexeclibdir='$(libdir)'
1610 fi
1611 multi_os_directory=`$CC -print-multi-os-directory`
1612 case $multi_os_directory in
1613 .) ;; # Avoid trailing /.
1614 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1615 esac
1616 ;;
1617 esac
1618
1619
1620
1621 # Figure out if we want to name the include directory and the
1622 # library name changes differently.
1623 includedirname=include
1624 libext=
1625 case "${host}" in
1626 *-darwin*)
1627 # Darwin is the only target so far that needs a different include directory.
1628 includedirname=include-gnu-runtime
1629 libext=-gnu
1630 ;;
1631 esac
1632
1633
1634
1635 ac_config_headers="$ac_config_headers config.h"
1636
1637
1638 # --------
1639 # Programs
1640 # --------
1641
1642
1643
1644 # We must force CC to /not/ be a precious variable; otherwise
1645 # the wrong, non-multilib-adjusted value will be used in multilibs.
1646 # As a side effect, we have to subst CFLAGS ourselves.
1647
1648
1649 ac_ext=c
1650 ac_cpp='$CPP $CPPFLAGS'
1651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1654 if test -n "$ac_tool_prefix"; then
1655 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1656 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676 done
1677 done
1678
1679 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 fi
1691 if test -z "$ac_cv_prog_CC"; then
1692 ac_ct_CC=$CC
1693 # Extract the first word of "gcc", so it can be a program name with args.
1694 set dummy gcc; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700 if test -n "$ac_ct_CC"; then
1701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702 else
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_CC="gcc"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 break 2
1713 fi
1714 done
1715 done
1716
1717 fi
1718 fi
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1726 fi
1727
1728 CC=$ac_ct_CC
1729 else
1730 CC="$ac_cv_prog_CC"
1731 fi
1732
1733 if test -z "$CC"; then
1734 if test -n "$ac_tool_prefix"; then
1735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1736 set dummy ${ac_tool_prefix}cc; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC="$CC" # Let the user override the test.
1744 else
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748 IFS=$as_save_IFS
1749 test -z "$as_dir" && as_dir=.
1750 for ac_exec_ext in '' $ac_executable_extensions; do
1751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752 ac_cv_prog_CC="${ac_tool_prefix}cc"
1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754 break 2
1755 fi
1756 done
1757 done
1758
1759 fi
1760 fi
1761 CC=$ac_cv_prog_CC
1762 if test -n "$CC"; then
1763 echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1765 else
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 fi
1769
1770 fi
1771 if test -z "$ac_cv_prog_CC"; then
1772 ac_ct_CC=$CC
1773 # Extract the first word of "cc", so it can be a program name with args.
1774 set dummy cc; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780 if test -n "$ac_ct_CC"; then
1781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1782 else
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1785 do
1786 IFS=$as_save_IFS
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_ac_ct_CC="cc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794 done
1795 done
1796
1797 fi
1798 fi
1799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1800 if test -n "$ac_ct_CC"; then
1801 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1802 echo "${ECHO_T}$ac_ct_CC" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1806 fi
1807
1808 CC=$ac_ct_CC
1809 else
1810 CC="$ac_cv_prog_CC"
1811 fi
1812
1813 fi
1814 if test -z "$CC"; then
1815 # Extract the first word of "cc", so it can be a program name with args.
1816 set dummy cc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1824 else
1825 ac_prog_rejected=no
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1834 ac_prog_rejected=yes
1835 continue
1836 fi
1837 ac_cv_prog_CC="cc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841 done
1842 done
1843
1844 if test $ac_prog_rejected = yes; then
1845 # We found a bogon in the path, so make sure we never use it.
1846 set dummy $ac_cv_prog_CC
1847 shift
1848 if test $# != 0; then
1849 # We chose a different compiler from the bogus one.
1850 # However, it has the same basename, so the bogon will be chosen
1851 # first if we set CC to just the basename; use the full file name.
1852 shift
1853 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1854 fi
1855 fi
1856 fi
1857 fi
1858 CC=$ac_cv_prog_CC
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867 fi
1868 if test -z "$CC"; then
1869 if test -n "$ac_tool_prefix"; then
1870 for ac_prog in cl
1871 do
1872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1892 fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907 test -n "$CC" && break
1908 done
1909 fi
1910 if test -z "$CC"; then
1911 ac_ct_CC=$CC
1912 for ac_prog in cl
1913 do
1914 # Extract the first word of "$ac_prog", so it can be a program name with args.
1915 set dummy $ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_ac_ct_CC="$ac_prog"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1934 fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949 test -n "$ac_ct_CC" && break
1950 done
1951
1952 CC=$ac_ct_CC
1953 fi
1954
1955 fi
1956
1957
1958 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1959 See \`config.log' for more details." >&5
1960 echo "$as_me: error: no acceptable C compiler found in \$PATH
1961 See \`config.log' for more details." >&2;}
1962 { (exit 1); exit 1; }; }
1963
1964 # Provide some information about the compiler.
1965 echo "$as_me:$LINENO:" \
1966 "checking for C compiler version" >&5
1967 ac_compiler=`set X $ac_compile; echo $2`
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1969 (eval $ac_compiler --version </dev/null >&5) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1974 (eval $ac_compiler -v </dev/null >&5) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1978 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1979 (eval $ac_compiler -V </dev/null >&5) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }
1983
1984 cat >conftest.$ac_ext <<_ACEOF
1985 /* confdefs.h. */
1986 _ACEOF
1987 cat confdefs.h >>conftest.$ac_ext
1988 cat >>conftest.$ac_ext <<_ACEOF
1989 /* end confdefs.h. */
1990
1991 int
1992 main ()
1993 {
1994
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 # FIXME: Cleanup?
2000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2001 (eval $ac_link) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; then
2005 gcc_no_link=no
2006 else
2007 gcc_no_link=yes
2008 fi
2009
2010 if test x$gcc_no_link = xyes; then
2011 # Setting cross_compile will disable run tests; it will
2012 # also disable AC_CHECK_FILE but that's generally
2013 # correct if we can't link.
2014 cross_compiling=yes
2015 EXEEXT=
2016 else
2017 cat >conftest.$ac_ext <<_ACEOF
2018 /* confdefs.h. */
2019 _ACEOF
2020 cat confdefs.h >>conftest.$ac_ext
2021 cat >>conftest.$ac_ext <<_ACEOF
2022 /* end confdefs.h. */
2023
2024 int
2025 main ()
2026 {
2027
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 ac_clean_files_save=$ac_clean_files
2033 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2034 # Try to create an executable without -o first, disregard a.out.
2035 # It will help us diagnose broken compilers, and finding out an intuition
2036 # of exeext.
2037 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2038 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2039 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2040 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2041 (eval $ac_link_default) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; then
2045 # Find the output, starting from the most likely. This scheme is
2046 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2047 # resort.
2048
2049 # Be careful to initialize this variable, since it used to be cached.
2050 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2051 ac_cv_exeext=
2052 # b.out is created by i960 compilers.
2053 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2054 do
2055 test -f "$ac_file" || continue
2056 case $ac_file in
2057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2058 ;;
2059 conftest.$ac_ext )
2060 # This is the source file.
2061 ;;
2062 [ab].out )
2063 # We found the default executable, but exeext='' is most
2064 # certainly right.
2065 break;;
2066 *.* )
2067 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068 # FIXME: I believe we export ac_cv_exeext for Libtool,
2069 # but it would be cool to find out if it's true. Does anybody
2070 # maintain Libtool? --akim.
2071 export ac_cv_exeext
2072 break;;
2073 * )
2074 break;;
2075 esac
2076 done
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2080
2081 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: C compiler cannot create executables
2084 See \`config.log' for more details." >&2;}
2085 { (exit 77); exit 77; }; }
2086 fi
2087
2088 ac_exeext=$ac_cv_exeext
2089 echo "$as_me:$LINENO: result: $ac_file" >&5
2090 echo "${ECHO_T}$ac_file" >&6
2091
2092 # Check the compiler produces executables we can run. If not, either
2093 # the compiler is broken, or we cross compile.
2094 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2095 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2096 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2097 # If not cross compiling, check that we can run a simple program.
2098 if test "$cross_compiling" != yes; then
2099 if { ac_try='./$ac_file'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 cross_compiling=no
2106 else
2107 if test "$cross_compiling" = maybe; then
2108 cross_compiling=yes
2109 else
2110 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2111 If you meant to cross compile, use \`--host'.
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: cannot run C compiled programs.
2114 If you meant to cross compile, use \`--host'.
2115 See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2117 fi
2118 fi
2119 fi
2120 echo "$as_me:$LINENO: result: yes" >&5
2121 echo "${ECHO_T}yes" >&6
2122
2123 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2124 ac_clean_files=$ac_clean_files_save
2125 # Check the compiler produces executables we can run. If not, either
2126 # the compiler is broken, or we cross compile.
2127 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2128 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2129 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2130 echo "${ECHO_T}$cross_compiling" >&6
2131
2132 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2133 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2135 (eval $ac_link) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; then
2139 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2140 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2141 # work properly (i.e., refer to `conftest.exe'), while it won't with
2142 # `rm'.
2143 for ac_file in conftest.exe conftest conftest.*; do
2144 test -f "$ac_file" || continue
2145 case $ac_file in
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2147 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148 export ac_cv_exeext
2149 break;;
2150 * ) break;;
2151 esac
2152 done
2153 else
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2159 fi
2160
2161 rm -f conftest$ac_cv_exeext
2162 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2163 echo "${ECHO_T}$ac_cv_exeext" >&6
2164
2165 rm -f conftest.$ac_ext
2166 EXEEXT=$ac_cv_exeext
2167 ac_exeext=$EXEEXT
2168 fi
2169 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2170 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2171 if test "${ac_cv_objext+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 cat >conftest.$ac_ext <<_ACEOF
2175 /* confdefs.h. */
2176 _ACEOF
2177 cat confdefs.h >>conftest.$ac_ext
2178 cat >>conftest.$ac_ext <<_ACEOF
2179 /* end confdefs.h. */
2180
2181 int
2182 main ()
2183 {
2184
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 rm -f conftest.o conftest.obj
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; then
2195 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2196 case $ac_file in
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2199 break;;
2200 esac
2201 done
2202 else
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2209 See \`config.log' for more details." >&2;}
2210 { (exit 1); exit 1; }; }
2211 fi
2212
2213 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2214 fi
2215 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2216 echo "${ECHO_T}$ac_cv_objext" >&6
2217 OBJEXT=$ac_cv_objext
2218 ac_objext=$OBJEXT
2219 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2220 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2221 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224 cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h. */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2230
2231 int
2232 main ()
2233 {
2234 #ifndef __GNUC__
2235 choke me
2236 #endif
2237
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 rm -f conftest.$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>conftest.er1
2245 ac_status=$?
2246 grep -v '^ *+' conftest.er1 >conftest.err
2247 rm -f conftest.er1
2248 cat conftest.err >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); } &&
2251 { ac_try='test -z "$ac_c_werror_flag"
2252 || test ! -s conftest.err'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 ac_compiler_gnu=yes
2265 else
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268
2269 ac_compiler_gnu=no
2270 fi
2271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2272 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2273
2274 fi
2275 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2276 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2277 GCC=`test $ac_compiler_gnu = yes && echo yes`
2278 ac_test_CFLAGS=${CFLAGS+set}
2279 ac_save_CFLAGS=$CFLAGS
2280 CFLAGS="-g"
2281 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2282 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2283 if test "${ac_cv_prog_cc_g+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 cat >conftest.$ac_ext <<_ACEOF
2287 /* confdefs.h. */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2292
2293 int
2294 main ()
2295 {
2296
2297 ;
2298 return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2304 ac_status=$?
2305 grep -v '^ *+' conftest.er1 >conftest.err
2306 rm -f conftest.er1
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 ac_cv_prog_cc_g=yes
2324 else
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 ac_cv_prog_cc_g=no
2329 fi
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 fi
2332 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2333 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2334 if test "$ac_test_CFLAGS" = set; then
2335 CFLAGS=$ac_save_CFLAGS
2336 elif test $ac_cv_prog_cc_g = yes; then
2337 if test "$GCC" = yes; then
2338 CFLAGS="-g -O2"
2339 else
2340 CFLAGS="-g"
2341 fi
2342 else
2343 if test "$GCC" = yes; then
2344 CFLAGS="-O2"
2345 else
2346 CFLAGS=
2347 fi
2348 fi
2349 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2350 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2351 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 ac_cv_prog_cc_stdc=no
2355 ac_save_CC=$CC
2356 cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h. */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2362 #include <stdarg.h>
2363 #include <stdio.h>
2364 #include <sys/types.h>
2365 #include <sys/stat.h>
2366 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2367 struct buf { int x; };
2368 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2369 static char *e (p, i)
2370 char **p;
2371 int i;
2372 {
2373 return p[i];
2374 }
2375 static char *f (char * (*g) (char **, int), char **p, ...)
2376 {
2377 char *s;
2378 va_list v;
2379 va_start (v,p);
2380 s = g (p, va_arg (v,int));
2381 va_end (v);
2382 return s;
2383 }
2384
2385 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2386 function prototypes and stuff, but not '\xHH' hex character constants.
2387 These don't provoke an error unfortunately, instead are silently treated
2388 as 'x'. The following induces an error, until -std1 is added to get
2389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2390 array size at least. It's necessary to write '\x00'==0 to get something
2391 that's true only with -std1. */
2392 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2393
2394 int test (int i, double x);
2395 struct s1 {int (*f) (int a);};
2396 struct s2 {int (*f) (double a);};
2397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2398 int argc;
2399 char **argv;
2400 int
2401 main ()
2402 {
2403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2404 ;
2405 return 0;
2406 }
2407 _ACEOF
2408 # Don't try gcc -ansi; that turns off useful extensions and
2409 # breaks some systems' header files.
2410 # AIX -qlanglvl=ansi
2411 # Ultrix and OSF/1 -std1
2412 # HP-UX 10.20 and later -Ae
2413 # HP-UX older versions -Aa -D_HPUX_SOURCE
2414 # SVR4 -Xc -D__EXTENSIONS__
2415 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2416 do
2417 CC="$ac_save_CC $ac_arg"
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 ac_cv_prog_cc_stdc=$ac_arg
2441 break
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 fi
2447 rm -f conftest.err conftest.$ac_objext
2448 done
2449 rm -f conftest.$ac_ext conftest.$ac_objext
2450 CC=$ac_save_CC
2451
2452 fi
2453
2454 case "x$ac_cv_prog_cc_stdc" in
2455 x|xno)
2456 echo "$as_me:$LINENO: result: none needed" >&5
2457 echo "${ECHO_T}none needed" >&6 ;;
2458 *)
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2461 CC="$CC $ac_cv_prog_cc_stdc" ;;
2462 esac
2463
2464 # Some people use a C++ compiler to compile C. Since we use `exit',
2465 # in C++ we need to declare it. In case someone uses the same compiler
2466 # for both compiling C and C++ we need to have the C++ compiler decide
2467 # the declaration of exit, since it's the most demanding environment.
2468 cat >conftest.$ac_ext <<_ACEOF
2469 #ifndef __cplusplus
2470 choke me
2471 #endif
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2476 ac_status=$?
2477 grep -v '^ *+' conftest.er1 >conftest.err
2478 rm -f conftest.er1
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -z "$ac_c_werror_flag"
2483 || test ! -s conftest.err'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 (eval $ac_try) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; } &&
2489 { ac_try='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 (eval $ac_try) 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 for ac_declaration in \
2496 '' \
2497 'extern "C" void std::exit (int) throw (); using std::exit;' \
2498 'extern "C" void std::exit (int); using std::exit;' \
2499 'extern "C" void exit (int) throw ();' \
2500 'extern "C" void exit (int);' \
2501 'void exit (int);'
2502 do
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h. */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2509 $ac_declaration
2510 #include <stdlib.h>
2511 int
2512 main ()
2513 {
2514 exit (42);
2515 ;
2516 return 0;
2517 }
2518 _ACEOF
2519 rm -f conftest.$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2522 ac_status=$?
2523 grep -v '^ *+' conftest.er1 >conftest.err
2524 rm -f conftest.er1
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -z "$ac_c_werror_flag"
2529 || test ! -s conftest.err'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 :
2542 else
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 continue
2547 fi
2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h. */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2555 $ac_declaration
2556 int
2557 main ()
2558 {
2559 exit (42);
2560 ;
2561 return 0;
2562 }
2563 _ACEOF
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag"
2574 || test ! -s conftest.err'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 break
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 fi
2592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2593 done
2594 rm -f conftest*
2595 if test -n "$ac_declaration"; then
2596 echo '#ifdef __cplusplus' >>confdefs.h
2597 echo $ac_declaration >>confdefs.h
2598 echo '#endif' >>confdefs.h
2599 fi
2600
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 fi
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_ext=c
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612
2613
2614
2615
2616
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}as; ac_word=$2
2620 echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2622 if test "${ac_cv_prog_AS+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625 if test -n "$AS"; then
2626 ac_cv_prog_AS="$AS" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_AS="${ac_tool_prefix}as"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639 done
2640 done
2641
2642 fi
2643 fi
2644 AS=$ac_cv_prog_AS
2645 if test -n "$AS"; then
2646 echo "$as_me:$LINENO: result: $AS" >&5
2647 echo "${ECHO_T}$AS" >&6
2648 else
2649 echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6
2651 fi
2652
2653 fi
2654 if test -z "$ac_cv_prog_AS"; then
2655 ac_ct_AS=$AS
2656 # Extract the first word of "as", so it can be a program name with args.
2657 set dummy as; ac_word=$2
2658 echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2660 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 if test -n "$ac_ct_AS"; then
2664 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673 ac_cv_prog_ac_ct_AS="as"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679
2680 fi
2681 fi
2682 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2683 if test -n "$ac_ct_AS"; then
2684 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2685 echo "${ECHO_T}$ac_ct_AS" >&6
2686 else
2687 echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6
2689 fi
2690
2691 AS=$ac_ct_AS
2692 else
2693 AS="$ac_cv_prog_AS"
2694 fi
2695
2696 if test -n "$ac_tool_prefix"; then
2697 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2698 set dummy ${ac_tool_prefix}ar; ac_word=$2
2699 echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2701 if test "${ac_cv_prog_AR+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 if test -n "$AR"; then
2705 ac_cv_prog_AR="$AR" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714 ac_cv_prog_AR="${ac_tool_prefix}ar"
2715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2717 fi
2718 done
2719 done
2720
2721 fi
2722 fi
2723 AR=$ac_cv_prog_AR
2724 if test -n "$AR"; then
2725 echo "$as_me:$LINENO: result: $AR" >&5
2726 echo "${ECHO_T}$AR" >&6
2727 else
2728 echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2730 fi
2731
2732 fi
2733 if test -z "$ac_cv_prog_AR"; then
2734 ac_ct_AR=$AR
2735 # Extract the first word of "ar", so it can be a program name with args.
2736 set dummy ar; ac_word=$2
2737 echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2739 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 if test -n "$ac_ct_AR"; then
2743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_ac_ct_AR="ar"
2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758
2759 fi
2760 fi
2761 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2762 if test -n "$ac_ct_AR"; then
2763 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2764 echo "${ECHO_T}$ac_ct_AR" >&6
2765 else
2766 echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6
2768 fi
2769
2770 AR=$ac_ct_AR
2771 else
2772 AR="$ac_cv_prog_AR"
2773 fi
2774
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2778 echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2780 if test "${ac_cv_prog_RANLIB+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 if test -n "$RANLIB"; then
2784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799
2800 fi
2801 fi
2802 RANLIB=$ac_cv_prog_RANLIB
2803 if test -n "$RANLIB"; then
2804 echo "$as_me:$LINENO: result: $RANLIB" >&5
2805 echo "${ECHO_T}$RANLIB" >&6
2806 else
2807 echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6
2809 fi
2810
2811 fi
2812 if test -z "$ac_cv_prog_RANLIB"; then
2813 ac_ct_RANLIB=$RANLIB
2814 # Extract the first word of "ranlib", so it can be a program name with args.
2815 set dummy ranlib; ac_word=$2
2816 echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 if test -n "$ac_ct_RANLIB"; then
2822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_ac_ct_RANLIB="ranlib"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837
2838 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2839 fi
2840 fi
2841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2842 if test -n "$ac_ct_RANLIB"; then
2843 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2844 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2845 else
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2848 fi
2849
2850 RANLIB=$ac_ct_RANLIB
2851 else
2852 RANLIB="$ac_cv_prog_RANLIB"
2853 fi
2854
2855 # Find a good install program. We prefer a C program (faster),
2856 # so one script is as good as another. But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2861 # AIX /bin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2869 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2870 if test -z "$INSTALL"; then
2871 if test "${ac_cv_path_install+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 # Account for people who put trailing slashes in PATH elements.
2880 case $as_dir/ in
2881 ./ | .// | /cC/* | \
2882 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2883 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2884 /usr/ucb/* ) ;;
2885 *)
2886 # OSF1 and SCO ODT 3.0 have their own names for install.
2887 # Don't use installbsd from OSF since it installs stuff as root
2888 # by default.
2889 for ac_prog in ginstall scoinst install; do
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2892 if test $ac_prog = install &&
2893 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2894 # AIX install. It has an incompatible calling convention.
2895 :
2896 elif test $ac_prog = install &&
2897 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2898 # program-specific install script used by HP pwplus--don't use.
2899 :
2900 else
2901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2902 break 3
2903 fi
2904 fi
2905 done
2906 done
2907 ;;
2908 esac
2909 done
2910
2911
2912 fi
2913 if test "${ac_cv_path_install+set}" = set; then
2914 INSTALL=$ac_cv_path_install
2915 else
2916 # As a last resort, use the slow shell script. We don't cache a
2917 # path for INSTALL within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the path is relative.
2920 INSTALL=$ac_install_sh
2921 fi
2922 fi
2923 echo "$as_me:$LINENO: result: $INSTALL" >&5
2924 echo "${ECHO_T}$INSTALL" >&6
2925
2926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2927 # It thinks the first close brace ends the variable substitution.
2928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2929
2930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2931
2932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2933
2934
2935 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2936 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2937 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2938 if test "${enable_maintainer_mode+set}" = set; then
2939 enableval="$enable_maintainer_mode"
2940 USE_MAINTAINER_MODE=$enableval
2941 else
2942 USE_MAINTAINER_MODE=no
2943 fi;
2944 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2945 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2946
2947
2948 if test $USE_MAINTAINER_MODE = yes; then
2949 MAINTAINER_MODE_TRUE=
2950 MAINTAINER_MODE_FALSE='#'
2951 else
2952 MAINTAINER_MODE_TRUE='#'
2953 MAINTAINER_MODE_FALSE=
2954 fi
2955
2956 MAINT=$MAINTAINER_MODE_TRUE
2957
2958
2959
2960 # Enable Win32 DLL on MS Windows - FIXME
2961
2962
2963 # Check whether --enable-shared or --disable-shared was given.
2964 if test "${enable_shared+set}" = set; then
2965 enableval="$enable_shared"
2966 p=${PACKAGE-default}
2967 case $enableval in
2968 yes) enable_shared=yes ;;
2969 no) enable_shared=no ;;
2970 *)
2971 enable_shared=no
2972 # Look at the argument we got. We use all the common list separators.
2973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2974 for pkg in $enableval; do
2975 if test "X$pkg" = "X$p"; then
2976 enable_shared=yes
2977 fi
2978 done
2979 IFS="$ac_save_ifs"
2980 ;;
2981 esac
2982 else
2983 enable_shared=yes
2984 fi;
2985 # Check whether --enable-static or --disable-static was given.
2986 if test "${enable_static+set}" = set; then
2987 enableval="$enable_static"
2988 p=${PACKAGE-default}
2989 case $enableval in
2990 yes) enable_static=yes ;;
2991 no) enable_static=no ;;
2992 *)
2993 enable_static=no
2994 # Look at the argument we got. We use all the common list separators.
2995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2996 for pkg in $enableval; do
2997 if test "X$pkg" = "X$p"; then
2998 enable_static=yes
2999 fi
3000 done
3001 IFS="$ac_save_ifs"
3002 ;;
3003 esac
3004 else
3005 enable_static=yes
3006 fi;
3007 # Check whether --enable-fast-install or --disable-fast-install was given.
3008 if test "${enable_fast_install+set}" = set; then
3009 enableval="$enable_fast_install"
3010 p=${PACKAGE-default}
3011 case $enableval in
3012 yes) enable_fast_install=yes ;;
3013 no) enable_fast_install=no ;;
3014 *)
3015 enable_fast_install=no
3016 # Look at the argument we got. We use all the common list separators.
3017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3018 for pkg in $enableval; do
3019 if test "X$pkg" = "X$p"; then
3020 enable_fast_install=yes
3021 fi
3022 done
3023 IFS="$ac_save_ifs"
3024 ;;
3025 esac
3026 else
3027 enable_fast_install=yes
3028 fi;
3029
3030 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3031 if test "${with_gnu_ld+set}" = set; then
3032 withval="$with_gnu_ld"
3033 test "$withval" = no || with_gnu_ld=yes
3034 else
3035 with_gnu_ld=no
3036 fi;
3037 ac_prog=ld
3038 if test "$GCC" = yes; then
3039 # Check if gcc -print-prog-name=ld gives a path.
3040 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3041 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3042 case $host in
3043 *-*-mingw*)
3044 # gcc leaves a trailing carriage return which upsets mingw
3045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3046 *)
3047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3048 esac
3049 case $ac_prog in
3050 # Accept absolute paths.
3051 [\\/]* | [A-Za-z]:[\\/]*)
3052 re_direlt='/[^/][^/]*/\.\./'
3053 # Canonicalize the path of ld
3054 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3055 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3056 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3057 done
3058 test -z "$LD" && LD="$ac_prog"
3059 ;;
3060 "")
3061 # If it fails, then pretend we aren't using GCC.
3062 ac_prog=ld
3063 ;;
3064 *)
3065 # If it is relative, then search for the first ld in PATH.
3066 with_gnu_ld=unknown
3067 ;;
3068 esac
3069 elif test "$with_gnu_ld" = yes; then
3070 echo "$as_me:$LINENO: checking for GNU ld" >&5
3071 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3072 else
3073 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3074 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3075 fi
3076 if test "${lt_cv_path_LD+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 if test -z "$LD"; then
3080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3081 for ac_dir in $PATH; do
3082 test -z "$ac_dir" && ac_dir=.
3083 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3084 lt_cv_path_LD="$ac_dir/$ac_prog"
3085 # Check to see if the program is GNU ld. I'd rather use --version,
3086 # but apparently some GNU ld's only accept -v.
3087 # Break only if it was the GNU/non-GNU ld that we prefer.
3088 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3089 test "$with_gnu_ld" != no && break
3090 else
3091 test "$with_gnu_ld" != yes && break
3092 fi
3093 fi
3094 done
3095 IFS="$ac_save_ifs"
3096 else
3097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3098 fi
3099 fi
3100
3101 LD="$lt_cv_path_LD"
3102 if test -n "$LD"; then
3103 echo "$as_me:$LINENO: result: $LD" >&5
3104 echo "${ECHO_T}$LD" >&6
3105 else
3106 echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6
3108 fi
3109 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3110 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3111 { (exit 1); exit 1; }; }
3112 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3113 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3114 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3118 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3119 lt_cv_prog_gnu_ld=yes
3120 else
3121 lt_cv_prog_gnu_ld=no
3122 fi
3123 fi
3124 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3125 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3126 with_gnu_ld=$lt_cv_prog_gnu_ld
3127
3128
3129 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3130 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3131 if test "${lt_cv_ld_reload_flag+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 lt_cv_ld_reload_flag='-r'
3135 fi
3136 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3137 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3138 reload_flag=$lt_cv_ld_reload_flag
3139 test -n "$reload_flag" && reload_flag=" $reload_flag"
3140
3141 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3142 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3143 if test "${lt_cv_path_NM+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$NM"; then
3147 # Let the user override the test.
3148 lt_cv_path_NM="$NM"
3149 else
3150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3151 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3152 test -z "$ac_dir" && ac_dir=.
3153 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3154 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3155 # Check to see if the nm accepts a BSD-compat flag.
3156 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3157 # nm: unknown option "B" ignored
3158 # Tru64's nm complains that /dev/null is an invalid object file
3159 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3160 lt_cv_path_NM="$tmp_nm -B"
3161 break
3162 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3163 lt_cv_path_NM="$tmp_nm -p"
3164 break
3165 else
3166 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3167 continue # so that we can try to find one that supports BSD flags
3168 fi
3169 fi
3170 done
3171 IFS="$ac_save_ifs"
3172 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3173 fi
3174 fi
3175
3176 NM="$lt_cv_path_NM"
3177 echo "$as_me:$LINENO: result: $NM" >&5
3178 echo "${ECHO_T}$NM" >&6
3179
3180 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3181 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3182 LN_S=$as_ln_s
3183 if test "$LN_S" = "ln -s"; then
3184 echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6
3186 else
3187 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3188 echo "${ECHO_T}no, using $LN_S" >&6
3189 fi
3190
3191 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3192 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3193 if test "${lt_cv_deplibs_check_method+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 lt_cv_file_magic_cmd='$MAGIC_CMD'
3197 lt_cv_file_magic_test_file=
3198 lt_cv_deplibs_check_method='unknown'
3199 # Need to set the preceding variable on all platforms that support
3200 # interlibrary dependencies.
3201 # 'none' -- dependencies not supported.
3202 # `unknown' -- same as none, but documents that we really don't know.
3203 # 'pass_all' -- all dependencies passed with no checks.
3204 # 'test_compile' -- check by making test program.
3205 # 'file_magic [regex]' -- check by looking for files in library path
3206 # which responds to the $file_magic_cmd with a given egrep regex.
3207 # If you have `file' or equivalent on your system and you're not sure
3208 # whether `pass_all' will *always* work, you probably want this one.
3209
3210 case $host_os in
3211 aix*)
3212 lt_cv_deplibs_check_method=pass_all
3213 ;;
3214
3215 beos*)
3216 lt_cv_deplibs_check_method=pass_all
3217 ;;
3218
3219 bsdi4*)
3220 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3221 lt_cv_file_magic_cmd='/usr/bin/file -L'
3222 lt_cv_file_magic_test_file=/shlib/libc.so
3223 ;;
3224
3225 cygwin* | mingw* |pw32*)
3226 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3227 lt_cv_file_magic_cmd='$OBJDUMP -f'
3228 ;;
3229
3230 darwin* | rhapsody*)
3231 # this will be overwritten by pass_all, but leave it in just in case
3232 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3233 lt_cv_file_magic_cmd='/usr/bin/file -L'
3234 case "$host_os" in
3235 rhapsody* | darwin1.012)
3236 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3237 ;;
3238 *) # Darwin 1.3 on
3239 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3240 ;;
3241 esac
3242 lt_cv_deplibs_check_method=pass_all
3243 ;;
3244
3245 freebsd* | kfreebsd*-gnu)
3246 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3247 case $host_cpu in
3248 i*86 )
3249 # Not sure whether the presence of OpenBSD here was a mistake.
3250 # Let's accept both of them until this is cleared up.
3251 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3252 lt_cv_file_magic_cmd=/usr/bin/file
3253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3254 ;;
3255 esac
3256 else
3257 lt_cv_deplibs_check_method=pass_all
3258 fi
3259 ;;
3260
3261 gnu*)
3262 lt_cv_deplibs_check_method=pass_all
3263 ;;
3264
3265 hpux10.20*|hpux11*)
3266 case $host_cpu in
3267 hppa*)
3268 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3269 lt_cv_file_magic_cmd=/usr/bin/file
3270 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3271 ;;
3272 ia64*)
3273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3274 lt_cv_file_magic_cmd=/usr/bin/file
3275 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3276 ;;
3277 esac
3278 ;;
3279
3280 irix5* | irix6*)
3281 case $host_os in
3282 irix5*)
3283 # this will be overridden with pass_all, but let us keep it just in case
3284 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3285 ;;
3286 *)
3287 case $LD in
3288 *-32|*"-32 ") libmagic=32-bit;;
3289 *-n32|*"-n32 ") libmagic=N32;;
3290 *-64|*"-64 ") libmagic=64-bit;;
3291 *) libmagic=never-match;;
3292 esac
3293 # this will be overridden with pass_all, but let us keep it just in case
3294 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3295 ;;
3296 esac
3297 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3298 lt_cv_deplibs_check_method=pass_all
3299 ;;
3300
3301 # This must be Linux ELF.
3302 linux-gnu*)
3303 lt_cv_deplibs_check_method=pass_all
3304 ;;
3305
3306 netbsd* | knetbsd*-gnu)
3307 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3308 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3309 else
3310 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3311 fi
3312 ;;
3313
3314 newsos6)
3315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3316 lt_cv_file_magic_cmd=/usr/bin/file
3317 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3318 ;;
3319
3320 osf3* | osf4* | osf5*)
3321 # this will be overridden with pass_all, but let us keep it just in case
3322 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3323 lt_cv_file_magic_test_file=/shlib/libc.so
3324 lt_cv_deplibs_check_method=pass_all
3325 ;;
3326
3327 sco3.2v5*)
3328 lt_cv_deplibs_check_method=pass_all
3329 ;;
3330
3331 solaris*)
3332 lt_cv_deplibs_check_method=pass_all
3333 lt_cv_file_magic_test_file=/lib/libc.so
3334 ;;
3335
3336 sysv5uw[78]* | sysv4*uw2*)
3337 lt_cv_deplibs_check_method=pass_all
3338 ;;
3339
3340 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3341 case $host_vendor in
3342 ncr)
3343 lt_cv_deplibs_check_method=pass_all
3344 ;;
3345 motorola)
3346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3348 ;;
3349 esac
3350 ;;
3351 esac
3352
3353 fi
3354 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3355 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3356 file_magic_cmd=$lt_cv_file_magic_cmd
3357 deplibs_check_method=$lt_cv_deplibs_check_method
3358
3359
3360
3361
3362
3363 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3364
3365 # find the maximum length of command line arguments
3366 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3367 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3368 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 i=0
3372 teststring="ABCD"
3373
3374 case $build_os in
3375 msdosdjgpp*)
3376 # On DJGPP, this test can blow up pretty badly due to problems in libc
3377 # (any single argument exceeding 2000 bytes causes a buffer overrun
3378 # during glob expansion). Even if it were fixed, the result of this
3379 # check would be larger than it should be.
3380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3381 ;;
3382
3383 cygwin* | mingw*)
3384 # On Win9x/ME, this test blows up -- it succeeds, but takes
3385 # about 5 minutes as the teststring grows exponentially.
3386 # Worse, since 9x/ME are not pre-emptively multitasking,
3387 # you end up with a "frozen" computer, even though with patience
3388 # the test eventually succeeds (with a max line length of 256k).
3389 # Instead, let's just punt: use the minimum linelength reported by
3390 # all of the supported platforms: 8192 (on NT/2K/XP).
3391 lt_cv_sys_max_cmd_len=8192;
3392 ;;
3393
3394 amigaos*)
3395 # On AmigaOS with pdksh, this test takes hours, literally.
3396 # So we just punt and use a minimum line length of 8192.
3397 lt_cv_sys_max_cmd_len=8192;
3398 ;;
3399
3400 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3401 # This has been around since 386BSD, at least. Likely further.
3402 if test -x /sbin/sysctl; then
3403 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3404 elif test -x /usr/sbin/sysctl; then
3405 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3406 else
3407 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3408 fi
3409 # And add a safety zone
3410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3412 ;;
3413 esac
3414
3415 fi
3416
3417 if test -n "$lt_cv_sys_max_cmd_len" ; then
3418 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3419 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3420 else
3421 echo "$as_me:$LINENO: result: none" >&5
3422 echo "${ECHO_T}none" >&6
3423 fi
3424
3425
3426 # Only perform the check for file, if the check method requires it
3427 case $deplibs_check_method in
3428 file_magic*)
3429 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3430 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3431 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3432 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 case $MAGIC_CMD in
3436 /*)
3437 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3438 ;;
3439 ?:/*)
3440 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3441 ;;
3442 *)
3443 ac_save_MAGIC_CMD="$MAGIC_CMD"
3444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3445 ac_dummy="/usr/bin:$PATH"
3446 for ac_dir in $ac_dummy; do
3447 test -z "$ac_dir" && ac_dir=.
3448 if test -f $ac_dir/${ac_tool_prefix}file; then
3449 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3450 if test -n "$file_magic_test_file"; then
3451 case $deplibs_check_method in
3452 "file_magic "*)
3453 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3455 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3456 egrep "$file_magic_regex" > /dev/null; then
3457 :
3458 else
3459 cat <<EOF 1>&2
3460
3461 *** Warning: the command libtool uses to detect shared libraries,
3462 *** $file_magic_cmd, produces output that libtool cannot recognize.
3463 *** The result is that libtool may fail to recognize shared libraries
3464 *** as such. This will affect the creation of libtool libraries that
3465 *** depend on shared libraries, but programs linked with such libtool
3466 *** libraries will work regardless of this problem. Nevertheless, you
3467 *** may want to report the problem to your system manager and/or to
3468 *** bug-libtool@gnu.org
3469
3470 EOF
3471 fi ;;
3472 esac
3473 fi
3474 break
3475 fi
3476 done
3477 IFS="$ac_save_ifs"
3478 MAGIC_CMD="$ac_save_MAGIC_CMD"
3479 ;;
3480 esac
3481 fi
3482
3483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3484 if test -n "$MAGIC_CMD"; then
3485 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3486 echo "${ECHO_T}$MAGIC_CMD" >&6
3487 else
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3490 fi
3491
3492 if test -z "$lt_cv_path_MAGIC_CMD"; then
3493 if test -n "$ac_tool_prefix"; then
3494 echo "$as_me:$LINENO: checking for file" >&5
3495 echo $ECHO_N "checking for file... $ECHO_C" >&6
3496 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499 case $MAGIC_CMD in
3500 /*)
3501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3502 ;;
3503 ?:/*)
3504 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3505 ;;
3506 *)
3507 ac_save_MAGIC_CMD="$MAGIC_CMD"
3508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3509 ac_dummy="/usr/bin:$PATH"
3510 for ac_dir in $ac_dummy; do
3511 test -z "$ac_dir" && ac_dir=.
3512 if test -f $ac_dir/file; then
3513 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3514 if test -n "$file_magic_test_file"; then
3515 case $deplibs_check_method in
3516 "file_magic "*)
3517 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3520 egrep "$file_magic_regex" > /dev/null; then
3521 :
3522 else
3523 cat <<EOF 1>&2
3524
3525 *** Warning: the command libtool uses to detect shared libraries,
3526 *** $file_magic_cmd, produces output that libtool cannot recognize.
3527 *** The result is that libtool may fail to recognize shared libraries
3528 *** as such. This will affect the creation of libtool libraries that
3529 *** depend on shared libraries, but programs linked with such libtool
3530 *** libraries will work regardless of this problem. Nevertheless, you
3531 *** may want to report the problem to your system manager and/or to
3532 *** bug-libtool@gnu.org
3533
3534 EOF
3535 fi ;;
3536 esac
3537 fi
3538 break
3539 fi
3540 done
3541 IFS="$ac_save_ifs"
3542 MAGIC_CMD="$ac_save_MAGIC_CMD"
3543 ;;
3544 esac
3545 fi
3546
3547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3548 if test -n "$MAGIC_CMD"; then
3549 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3550 echo "${ECHO_T}$MAGIC_CMD" >&6
3551 else
3552 echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3554 fi
3555
3556 else
3557 MAGIC_CMD=:
3558 fi
3559 fi
3560
3561 fi
3562 ;;
3563 esac
3564
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_prog_RANLIB+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 if test -n "$RANLIB"; then
3574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589
3590 fi
3591 fi
3592 RANLIB=$ac_cv_prog_RANLIB
3593 if test -n "$RANLIB"; then
3594 echo "$as_me:$LINENO: result: $RANLIB" >&5
3595 echo "${ECHO_T}$RANLIB" >&6
3596 else
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599 fi
3600
3601 fi
3602 if test -z "$ac_cv_prog_RANLIB"; then
3603 ac_ct_RANLIB=$RANLIB
3604 # Extract the first word of "ranlib", so it can be a program name with args.
3605 set dummy ranlib; ac_word=$2
3606 echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 if test -n "$ac_ct_RANLIB"; then
3612 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_RANLIB="ranlib"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625 done
3626 done
3627
3628 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3629 fi
3630 fi
3631 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3632 if test -n "$ac_ct_RANLIB"; then
3633 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3634 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3635 else
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3638 fi
3639
3640 RANLIB=$ac_ct_RANLIB
3641 else
3642 RANLIB="$ac_cv_prog_RANLIB"
3643 fi
3644
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}strip; ac_word=$2
3648 echo "$as_me:$LINENO: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650 if test "${ac_cv_prog_STRIP+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 if test -n "$STRIP"; then
3654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667 done
3668 done
3669
3670 fi
3671 fi
3672 STRIP=$ac_cv_prog_STRIP
3673 if test -n "$STRIP"; then
3674 echo "$as_me:$LINENO: result: $STRIP" >&5
3675 echo "${ECHO_T}$STRIP" >&6
3676 else
3677 echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3679 fi
3680
3681 fi
3682 if test -z "$ac_cv_prog_STRIP"; then
3683 ac_ct_STRIP=$STRIP
3684 # Extract the first word of "strip", so it can be a program name with args.
3685 set dummy strip; ac_word=$2
3686 echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 if test -n "$ac_ct_STRIP"; then
3692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_STRIP="strip"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705 done
3706 done
3707
3708 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3709 fi
3710 fi
3711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3712 if test -n "$ac_ct_STRIP"; then
3713 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3714 echo "${ECHO_T}$ac_ct_STRIP" >&6
3715 else
3716 echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3718 fi
3719
3720 STRIP=$ac_ct_STRIP
3721 else
3722 STRIP="$ac_cv_prog_STRIP"
3723 fi
3724
3725
3726 # Check for any special flags to pass to ltconfig.
3727 libtool_flags="--cache-file=$cache_file"
3728 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3729 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3730 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3731 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3732 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3733
3734
3735 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3736 if test "${enable_libtool_lock+set}" = set; then
3737 enableval="$enable_libtool_lock"
3738
3739 fi;
3740 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3741 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3742
3743
3744 # Check whether --with-pic or --without-pic was given.
3745 if test "${with_pic+set}" = set; then
3746 withval="$with_pic"
3747 pic_mode="$withval"
3748 else
3749 pic_mode=default
3750 fi;
3751 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3752 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3753
3754 # Some flags need to be propagated to the compiler or linker for good
3755 # libtool support.
3756 case $host in
3757 *-*-irix6*)
3758 # Find out which ABI we are using.
3759 echo '#line 3759 "configure"' > conftest.$ac_ext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761 (eval $ac_compile) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; then
3765 if test "$lt_cv_prog_gnu_ld" = yes; then
3766 case `/usr/bin/file conftest.$ac_objext` in
3767 *32-bit*)
3768 LD="${LD-ld} -melf32bsmip"
3769 ;;
3770 *N32*)
3771 LD="${LD-ld} -melf32bmipn32"
3772 ;;
3773 *64-bit*)
3774 LD="${LD-ld} -melf64bmip"
3775 ;;
3776 esac
3777 else
3778 case `/usr/bin/file conftest.$ac_objext` in
3779 *32-bit*)
3780 LD="${LD-ld} -32"
3781 ;;
3782 *N32*)
3783 LD="${LD-ld} -n32"
3784 ;;
3785 *64-bit*)
3786 LD="${LD-ld} -64"
3787 ;;
3788 esac
3789 fi
3790 fi
3791 rm -rf conftest*
3792 ;;
3793
3794 ia64-*-hpux*)
3795 # Find out which ABI we are using.
3796 echo 'int i;' > conftest.$ac_ext
3797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3798 (eval $ac_compile) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; then
3802 case "`/usr/bin/file conftest.o`" in
3803 *ELF-32*)
3804 HPUX_IA64_MODE="32"
3805 ;;
3806 *ELF-64*)
3807 HPUX_IA64_MODE="64"
3808 ;;
3809 esac
3810 fi
3811 rm -rf conftest*
3812 ;;
3813
3814 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3815 # Find out which ABI we are using.
3816 echo 'int i;' > conftest.$ac_ext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3818 (eval $ac_compile) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; then
3822 case "`/usr/bin/file conftest.o`" in
3823 *32-bit*)
3824 case $host in
3825 x86_64-*linux*)
3826 LD="${LD-ld} -m elf_i386"
3827 ;;
3828 ppc64-*linux*|powerpc64-*linux*)
3829 LD="${LD-ld} -m elf32ppclinux"
3830 ;;
3831 s390x-*linux*)
3832 LD="${LD-ld} -m elf_s390"
3833 ;;
3834 sparc64-*linux*)
3835 LD="${LD-ld} -m elf32_sparc"
3836 ;;
3837 esac
3838 ;;
3839 *64-bit*)
3840 case $host in
3841 x86_64-*linux*)
3842 LD="${LD-ld} -m elf_x86_64"
3843 ;;
3844 ppc*-*linux*|powerpc*-*linux*)
3845 LD="${LD-ld} -m elf64ppc"
3846 ;;
3847 s390*-*linux*)
3848 LD="${LD-ld} -m elf64_s390"
3849 ;;
3850 sparc*-*linux*)
3851 LD="${LD-ld} -m elf64_sparc"
3852 ;;
3853 esac
3854 ;;
3855 esac
3856 fi
3857 rm -rf conftest*
3858 ;;
3859
3860 *-*-sco3.2v5*)
3861 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3862 SAVE_CFLAGS="$CFLAGS"
3863 CFLAGS="$CFLAGS -belf"
3864 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3865 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3866 if test "${lt_cv_cc_needs_belf+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869
3870
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876
3877 if test x$gcc_no_link = xyes; then
3878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3880 { (exit 1); exit 1; }; }
3881 fi
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888
3889 int
3890 main ()
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 rm -f conftest.$ac_objext conftest$ac_exeext
3898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3899 (eval $ac_link) 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } &&
3906 { ac_try='test -z "$ac_c_werror_flag"
3907 || test ! -s conftest.err'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; } &&
3913 { ac_try='test -s conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 lt_cv_cc_needs_belf=yes
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924 lt_cv_cc_needs_belf=no
3925 fi
3926 rm -f conftest.err conftest.$ac_objext \
3927 conftest$ac_exeext conftest.$ac_ext
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934 fi
3935 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3936 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3937 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3938 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3939 CFLAGS="$SAVE_CFLAGS"
3940 fi
3941 ;;
3942
3943
3944 esac
3945
3946
3947 # Save cache, so that ltconfig can load it
3948 cat >confcache <<\_ACEOF
3949 # This file is a shell script that caches the results of configure
3950 # tests run on this system so they can be shared between configure
3951 # scripts and configure runs, see configure's option --config-cache.
3952 # It is not useful on other systems. If it contains results you don't
3953 # want to keep, you may remove or edit it.
3954 #
3955 # config.status only pays attention to the cache file if you give it
3956 # the --recheck option to rerun configure.
3957 #
3958 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3959 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3960 # following values.
3961
3962 _ACEOF
3963
3964 # The following way of writing the cache mishandles newlines in values,
3965 # but we know of no workaround that is simple, portable, and efficient.
3966 # So, don't put newlines in cache variables' values.
3967 # Ultrix sh set writes to stderr and can't be redirected directly,
3968 # and sets the high bit in the cache file unless we assign to the vars.
3969 {
3970 (set) 2>&1 |
3971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3972 *ac_space=\ *)
3973 # `set' does not quote correctly, so add quotes (double-quote
3974 # substitution turns \\\\ into \\, and sed turns \\ into \).
3975 sed -n \
3976 "s/'/'\\\\''/g;
3977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3978 ;;
3979 *)
3980 # `set' quotes correctly as required by POSIX, so do not add quotes.
3981 sed -n \
3982 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3983 ;;
3984 esac;
3985 } |
3986 sed '
3987 t clear
3988 : clear
3989 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3990 t end
3991 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3992 : end' >>confcache
3993 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3994 if test -w $cache_file; then
3995 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3996 cat confcache >$cache_file
3997 else
3998 echo "not updating unwritable cache $cache_file"
3999 fi
4000 fi
4001 rm -f confcache
4002
4003 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4004 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4005 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4006 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4007 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4008 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4009 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4010 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4011 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4012 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4013 echo "$as_me: error: libtool configure failed" >&2;}
4014 { (exit 1); exit 1; }; }
4015
4016 # Reload cache, that may have been modified by ltconfig
4017 if test -r "$cache_file"; then
4018 # Some versions of bash will fail to source /dev/null (special
4019 # files actually), so we avoid doing that.
4020 if test -f "$cache_file"; then
4021 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4022 echo "$as_me: loading cache $cache_file" >&6;}
4023 case $cache_file in
4024 [\\/]* | ?:[\\/]* ) . $cache_file;;
4025 *) . ./$cache_file;;
4026 esac
4027 fi
4028 else
4029 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4030 echo "$as_me: creating cache $cache_file" >&6;}
4031 >$cache_file
4032 fi
4033
4034
4035 # This can be used to rebuild libtool when needed
4036 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4037
4038 # Always use our own libtool.
4039 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4040
4041 # Redirect the config.log output again, so that the ltconfig log is not
4042 # clobbered by the next message.
4043 exec 5>>./config.log
4044
4045
4046
4047
4048
4049
4050
4051 if test "x$CC" != xcc; then
4052 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4053 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4054 else
4055 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4056 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4057 fi
4058 set dummy $CC; ac_cc=`echo $2 |
4059 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4060 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069
4070 int
4071 main ()
4072 {
4073
4074 ;
4075 return 0;
4076 }
4077 _ACEOF
4078 # Make sure it works both with $CC and with simple cc.
4079 # We do the test twice because some compilers refuse to overwrite an
4080 # existing .o file with -o, though they will create one.
4081 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4082 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 (eval $ac_try) 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); };
4092 then
4093 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4094 if test "x$CC" != xcc; then
4095 # Test first that cc exists at all.
4096 if { ac_try='cc -c conftest.$ac_ext >&5'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4103 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 (eval $ac_try) 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); };
4113 then
4114 # cc works too.
4115 :
4116 else
4117 # cc exists but doesn't like -o.
4118 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4119 fi
4120 fi
4121 fi
4122 else
4123 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4124 fi
4125 rm -f conftest*
4126
4127 fi
4128 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4129 echo "$as_me:$LINENO: result: yes" >&5
4130 echo "${ECHO_T}yes" >&6
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4134
4135 cat >>confdefs.h <<\_ACEOF
4136 #define NO_MINUS_C_MINUS_O 1
4137 _ACEOF
4138
4139 fi
4140
4141 # expand $ac_aux_dir to an absolute path
4142 am_aux_dir=`cd $ac_aux_dir && pwd`
4143
4144 # FIXME: we rely on the cache variable name because
4145 # there is no other way.
4146 set dummy $CC
4147 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4148 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4149 # Losing compiler, so override with the script.
4150 # FIXME: It is wrong to rewrite CC.
4151 # But if we don't then we get into trouble of one sort or another.
4152 # A longer-term fix would be to have automake use am__CC in this case,
4153 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4154 CC="$am_aux_dir/compile $CC"
4155 fi
4156
4157
4158 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4159 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4160 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4161 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164 cat >conftest.make <<\_ACEOF
4165 all:
4166 @echo 'ac_maketemp="$(MAKE)"'
4167 _ACEOF
4168 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4169 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4170 if test -n "$ac_maketemp"; then
4171 eval ac_cv_prog_make_${ac_make}_set=yes
4172 else
4173 eval ac_cv_prog_make_${ac_make}_set=no
4174 fi
4175 rm -f conftest.make
4176 fi
4177 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4178 echo "$as_me:$LINENO: result: yes" >&5
4179 echo "${ECHO_T}yes" >&6
4180 SET_MAKE=
4181 else
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4184 SET_MAKE="MAKE=${MAKE-make}"
4185 fi
4186
4187
4188 # -------
4189 # Headers
4190 # -------
4191
4192 # Sanity check for the cross-compilation case:
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4199 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4202 CPP=
4203 fi
4204 if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4210 do
4211 ac_preproc_ok=false
4212 for ac_c_preproc_warn_flag in '' yes
4213 do
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h. */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 #ifdef __STDC__
4227 # include <limits.h>
4228 #else
4229 # include <assert.h>
4230 #endif
4231 Syntax error
4232 _ACEOF
4233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } >/dev/null; then
4241 if test -s conftest.err; then
4242 ac_cpp_err=$ac_c_preproc_warn_flag
4243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4244 else
4245 ac_cpp_err=
4246 fi
4247 else
4248 ac_cpp_err=yes
4249 fi
4250 if test -z "$ac_cpp_err"; then
4251 :
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 # Broken: fails on valid input.
4257 continue
4258 fi
4259 rm -f conftest.err conftest.$ac_ext
4260
4261 # OK, works on sane cases. Now check whether non-existent headers
4262 # can be detected and how.
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <ac_nonexistent.h>
4270 _ACEOF
4271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } >/dev/null; then
4279 if test -s conftest.err; then
4280 ac_cpp_err=$ac_c_preproc_warn_flag
4281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4282 else
4283 ac_cpp_err=
4284 fi
4285 else
4286 ac_cpp_err=yes
4287 fi
4288 if test -z "$ac_cpp_err"; then
4289 # Broken: success on invalid input.
4290 continue
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 # Passes both tests.
4296 ac_preproc_ok=:
4297 break
4298 fi
4299 rm -f conftest.err conftest.$ac_ext
4300
4301 done
4302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303 rm -f conftest.err conftest.$ac_ext
4304 if $ac_preproc_ok; then
4305 break
4306 fi
4307
4308 done
4309 ac_cv_prog_CPP=$CPP
4310
4311 fi
4312 CPP=$ac_cv_prog_CPP
4313 else
4314 ac_cv_prog_CPP=$CPP
4315 fi
4316 echo "$as_me:$LINENO: result: $CPP" >&5
4317 echo "${ECHO_T}$CPP" >&6
4318 ac_preproc_ok=false
4319 for ac_c_preproc_warn_flag in '' yes
4320 do
4321 # Use a header file that comes with gcc, so configuring glibc
4322 # with a fresh cross-compiler works.
4323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324 # <limits.h> exists even on freestanding compilers.
4325 # On the NeXT, cc -E runs the code through the compiler's parser,
4326 # not just through cpp. "Syntax error" is here to catch this case.
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #ifdef __STDC__
4334 # include <limits.h>
4335 #else
4336 # include <assert.h>
4337 #endif
4338 Syntax error
4339 _ACEOF
4340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } >/dev/null; then
4348 if test -s conftest.err; then
4349 ac_cpp_err=$ac_c_preproc_warn_flag
4350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4351 else
4352 ac_cpp_err=
4353 fi
4354 else
4355 ac_cpp_err=yes
4356 fi
4357 if test -z "$ac_cpp_err"; then
4358 :
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 # Broken: fails on valid input.
4364 continue
4365 fi
4366 rm -f conftest.err conftest.$ac_ext
4367
4368 # OK, works on sane cases. Now check whether non-existent headers
4369 # can be detected and how.
4370 cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h. */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 #include <ac_nonexistent.h>
4377 _ACEOF
4378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev/null; then
4386 if test -s conftest.err; then
4387 ac_cpp_err=$ac_c_preproc_warn_flag
4388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4389 else
4390 ac_cpp_err=
4391 fi
4392 else
4393 ac_cpp_err=yes
4394 fi
4395 if test -z "$ac_cpp_err"; then
4396 # Broken: success on invalid input.
4397 continue
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 # Passes both tests.
4403 ac_preproc_ok=:
4404 break
4405 fi
4406 rm -f conftest.err conftest.$ac_ext
4407
4408 done
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then
4412 :
4413 else
4414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4415 See \`config.log' for more details." >&5
4416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4417 See \`config.log' for more details." >&2;}
4418 { (exit 1); exit 1; }; }
4419 fi
4420
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426
4427
4428 echo "$as_me:$LINENO: checking for egrep" >&5
4429 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4430 if test "${ac_cv_prog_egrep+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4434 then ac_cv_prog_egrep='grep -E'
4435 else ac_cv_prog_egrep='egrep'
4436 fi
4437 fi
4438 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4439 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4440 EGREP=$ac_cv_prog_egrep
4441
4442
4443 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4444 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4445 if test "${ac_cv_header_stdc+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <stdlib.h>
4455 #include <stdarg.h>
4456 #include <string.h>
4457 #include <float.h>
4458
4459 int
4460 main ()
4461 {
4462
4463 ;
4464 return 0;
4465 }
4466 _ACEOF
4467 rm -f conftest.$ac_objext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try='test -z "$ac_c_werror_flag"
4477 || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_header_stdc=yes
4490 else
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494 ac_cv_header_stdc=no
4495 fi
4496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4497
4498 if test $ac_cv_header_stdc = yes; then
4499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4500 cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h. */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include <string.h>
4507
4508 _ACEOF
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 $EGREP "memchr" >/dev/null 2>&1; then
4511 :
4512 else
4513 ac_cv_header_stdc=no
4514 fi
4515 rm -f conftest*
4516
4517 fi
4518
4519 if test $ac_cv_header_stdc = yes; then
4520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #include <stdlib.h>
4528
4529 _ACEOF
4530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4531 $EGREP "free" >/dev/null 2>&1; then
4532 :
4533 else
4534 ac_cv_header_stdc=no
4535 fi
4536 rm -f conftest*
4537
4538 fi
4539
4540 if test $ac_cv_header_stdc = yes; then
4541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4542 if test "$cross_compiling" = yes; then
4543 :
4544 else
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 #include <ctype.h>
4552 #if ((' ' & 0x0FF) == 0x020)
4553 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4554 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4555 #else
4556 # define ISLOWER(c) \
4557 (('a' <= (c) && (c) <= 'i') \
4558 || ('j' <= (c) && (c) <= 'r') \
4559 || ('s' <= (c) && (c) <= 'z'))
4560 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4561 #endif
4562
4563 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4564 int
4565 main ()
4566 {
4567 int i;
4568 for (i = 0; i < 256; i++)
4569 if (XOR (islower (i), ISLOWER (i))
4570 || toupper (i) != TOUPPER (i))
4571 exit(2);
4572 exit (0);
4573 }
4574 _ACEOF
4575 rm -f conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577 (eval $ac_link) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 :
4587 else
4588 echo "$as_me: program exited with status $ac_status" >&5
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592 ( exit $ac_status )
4593 ac_cv_header_stdc=no
4594 fi
4595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4596 fi
4597 fi
4598 fi
4599 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4600 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4601 if test $ac_cv_header_stdc = yes; then
4602
4603 cat >>confdefs.h <<\_ACEOF
4604 #define STDC_HEADERS 1
4605 _ACEOF
4606
4607 fi
4608
4609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4620 inttypes.h stdint.h unistd.h
4621 do
4622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4623 echo "$as_me:$LINENO: checking for $ac_header" >&5
4624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4635
4636 #include <$ac_header>
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try='test -z "$ac_c_werror_flag"
4648 || test ! -s conftest.err'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; } &&
4654 { ac_try='test -s conftest.$ac_objext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 eval "$as_ac_Header=yes"
4661 else
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665 eval "$as_ac_Header=no"
4666 fi
4667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4668 fi
4669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4672 cat >>confdefs.h <<_ACEOF
4673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4674 _ACEOF
4675
4676 fi
4677
4678 done
4679
4680
4681 if test "${ac_cv_header_stdio_h+set}" = set; then
4682 echo "$as_me:$LINENO: checking for stdio.h" >&5
4683 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4684 if test "${ac_cv_header_stdio_h+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 fi
4687 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4688 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4689 else
4690 # Is the header compilable?
4691 echo "$as_me:$LINENO: checking stdio.h usability" >&5
4692 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 $ac_includes_default
4700 #include <stdio.h>
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_c_werror_flag"
4712 || test ! -s conftest.err'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; } &&
4718 { ac_try='test -s conftest.$ac_objext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 ac_header_compiler=yes
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 ac_header_compiler=no
4730 fi
4731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4733 echo "${ECHO_T}$ac_header_compiler" >&6
4734
4735 # Is the header present?
4736 echo "$as_me:$LINENO: checking stdio.h presence" >&5
4737 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 #include <stdio.h>
4745 _ACEOF
4746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev/null; then
4754 if test -s conftest.err; then
4755 ac_cpp_err=$ac_c_preproc_warn_flag
4756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4757 else
4758 ac_cpp_err=
4759 fi
4760 else
4761 ac_cpp_err=yes
4762 fi
4763 if test -z "$ac_cpp_err"; then
4764 ac_header_preproc=yes
4765 else
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 ac_header_preproc=no
4770 fi
4771 rm -f conftest.err conftest.$ac_ext
4772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4773 echo "${ECHO_T}$ac_header_preproc" >&6
4774
4775 # So? What about this header?
4776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4777 yes:no: )
4778 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4779 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4780 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
4781 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
4782 ac_header_preproc=yes
4783 ;;
4784 no:yes:* )
4785 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
4786 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
4788 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
4789 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
4790 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
4791 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
4792 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4793 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
4794 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
4796 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
4797 (
4798 cat <<\_ASBOX
4799 ## ----------------------------------------- ##
4800 ## Report this to the package-unused lists. ##
4801 ## ----------------------------------------- ##
4802 _ASBOX
4803 ) |
4804 sed "s/^/$as_me: WARNING: /" >&2
4805 ;;
4806 esac
4807 echo "$as_me:$LINENO: checking for stdio.h" >&5
4808 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4809 if test "${ac_cv_header_stdio_h+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 ac_cv_header_stdio_h=$ac_header_preproc
4813 fi
4814 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4815 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4816
4817 fi
4818 if test $ac_cv_header_stdio_h = yes; then
4819 :
4820 else
4821 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
4822 You must have a usable C system for the target already installed, at least
4823 including headers and, preferably, the library, before you can configure
4824 the Objective C runtime system. If necessary, install gcc now with
4825 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
4826 echo "$as_me: error: Can't find stdio.h.
4827 You must have a usable C system for the target already installed, at least
4828 including headers and, preferably, the library, before you can configure
4829 the Objective C runtime system. If necessary, install gcc now with
4830 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
4831 { (exit 1); exit 1; }; }
4832 fi
4833
4834
4835
4836 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4838 if test "${ac_cv_header_stdc+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 #include <stdlib.h>
4848 #include <stdarg.h>
4849 #include <string.h>
4850 #include <float.h>
4851
4852 int
4853 main ()
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -z "$ac_c_werror_flag"
4870 || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_cv_header_stdc=yes
4883 else
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887 ac_cv_header_stdc=no
4888 fi
4889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4890
4891 if test $ac_cv_header_stdc = yes; then
4892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h. */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 #include <string.h>
4900
4901 _ACEOF
4902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903 $EGREP "memchr" >/dev/null 2>&1; then
4904 :
4905 else
4906 ac_cv_header_stdc=no
4907 fi
4908 rm -f conftest*
4909
4910 fi
4911
4912 if test $ac_cv_header_stdc = yes; then
4913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #include <stdlib.h>
4921
4922 _ACEOF
4923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4924 $EGREP "free" >/dev/null 2>&1; then
4925 :
4926 else
4927 ac_cv_header_stdc=no
4928 fi
4929 rm -f conftest*
4930
4931 fi
4932
4933 if test $ac_cv_header_stdc = yes; then
4934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4935 if test "$cross_compiling" = yes; then
4936 :
4937 else
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4944 #include <ctype.h>
4945 #if ((' ' & 0x0FF) == 0x020)
4946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4948 #else
4949 # define ISLOWER(c) \
4950 (('a' <= (c) && (c) <= 'i') \
4951 || ('j' <= (c) && (c) <= 'r') \
4952 || ('s' <= (c) && (c) <= 'z'))
4953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4954 #endif
4955
4956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4957 int
4958 main ()
4959 {
4960 int i;
4961 for (i = 0; i < 256; i++)
4962 if (XOR (islower (i), ISLOWER (i))
4963 || toupper (i) != TOUPPER (i))
4964 exit(2);
4965 exit (0);
4966 }
4967 _ACEOF
4968 rm -f conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 :
4980 else
4981 echo "$as_me: program exited with status $ac_status" >&5
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ( exit $ac_status )
4986 ac_cv_header_stdc=no
4987 fi
4988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4989 fi
4990 fi
4991 fi
4992 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4993 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4994 if test $ac_cv_header_stdc = yes; then
4995
4996 cat >>confdefs.h <<\_ACEOF
4997 #define STDC_HEADERS 1
4998 _ACEOF
4999
5000 fi
5001
5002
5003
5004 for ac_header in sched.h
5005 do
5006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo "$as_me:$LINENO: checking for $ac_header" >&5
5009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 fi
5013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5015 else
5016 # Is the header compilable?
5017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 #include <$ac_header>
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_header_compiler=yes
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 ac_header_compiler=no
5056 fi
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5059 echo "${ECHO_T}$ac_header_compiler" >&6
5060
5061 # Is the header present?
5062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <$ac_header>
5071 _ACEOF
5072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083 else
5084 ac_cpp_err=
5085 fi
5086 else
5087 ac_cpp_err=yes
5088 fi
5089 if test -z "$ac_cpp_err"; then
5090 ac_header_preproc=yes
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 ac_header_preproc=no
5096 fi
5097 rm -f conftest.err conftest.$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5099 echo "${ECHO_T}$ac_header_preproc" >&6
5100
5101 # So? What about this header?
5102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5103 yes:no: )
5104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5108 ac_header_preproc=yes
5109 ;;
5110 no:yes:* )
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5123 (
5124 cat <<\_ASBOX
5125 ## ----------------------------------------- ##
5126 ## Report this to the package-unused lists. ##
5127 ## ----------------------------------------- ##
5128 _ASBOX
5129 ) |
5130 sed "s/^/$as_me: WARNING: /" >&2
5131 ;;
5132 esac
5133 echo "$as_me:$LINENO: checking for $ac_header" >&5
5134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 eval "$as_ac_Header=\$ac_header_preproc"
5139 fi
5140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5142
5143 fi
5144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5145 cat >>confdefs.h <<_ACEOF
5146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5147 _ACEOF
5148
5149 fi
5150
5151 done
5152
5153
5154 # -----------
5155 # Miscellanea
5156 # -----------
5157
5158 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
5159 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
5160 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5161 echo "$as_me:$LINENO: result: $target_thread_file" >&5
5162 echo "${ECHO_T}$target_thread_file" >&6
5163
5164 if test $target_thread_file != single; then
5165
5166 cat >>confdefs.h <<\_ACEOF
5167 #define HAVE_GTHR_DEFAULT 1
5168 _ACEOF
5169
5170 fi
5171
5172
5173 echo "$as_me:$LINENO: checking for exception model to use" >&5
5174 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5175 ac_ext=c
5176 ac_cpp='$CPP $CPPFLAGS'
5177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180
5181 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5182 if test "${enable_sjlj_exceptions+set}" = set; then
5183 enableval="$enable_sjlj_exceptions"
5184 :
5185 else
5186 cat > conftest.$ac_ext << EOF
5187 #line 5187 "configure"
5188 @interface Frob
5189 @end
5190 @implementation Frob
5191 @end
5192 int proc();
5193 int foo()
5194 {
5195 @try {
5196 return proc();
5197 }
5198 @catch (Frob* ex) {
5199 return 0;
5200 }
5201 }
5202 EOF
5203 old_CFLAGS="$CFLAGS"
5204 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; then
5210 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5211 enable_sjlj_exceptions=yes
5212 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5213 enable_sjlj_exceptions=no
5214 fi
5215 fi
5216 CFLAGS="$old_CFLAGS"
5217 rm -f conftest*
5218 fi;
5219 if test x$enable_sjlj_exceptions = xyes; then
5220
5221 cat >>confdefs.h <<\_ACEOF
5222 #define SJLJ_EXCEPTIONS 1
5223 _ACEOF
5224
5225 ac_exception_model_name=sjlj
5226 elif test x$enable_sjlj_exceptions = xno; then
5227 ac_exception_model_name="call frame"
5228 else
5229 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5230 echo "$as_me: error: unable to detect exception model" >&2;}
5231 { (exit 1); exit 1; }; }
5232 fi
5233 ac_ext=c
5234 ac_cpp='$CPP $CPPFLAGS'
5235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238
5239 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5240 echo "${ECHO_T}$ac_exception_model_name" >&6
5241
5242 # ------
5243 # Output
5244 # ------
5245
5246 ac_config_files="$ac_config_files Makefile"
5247
5248
5249 ac_config_commands="$ac_config_commands default"
5250
5251
5252 cat >confcache <<\_ACEOF
5253 # This file is a shell script that caches the results of configure
5254 # tests run on this system so they can be shared between configure
5255 # scripts and configure runs, see configure's option --config-cache.
5256 # It is not useful on other systems. If it contains results you don't
5257 # want to keep, you may remove or edit it.
5258 #
5259 # config.status only pays attention to the cache file if you give it
5260 # the --recheck option to rerun configure.
5261 #
5262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5264 # following values.
5265
5266 _ACEOF
5267
5268 # The following way of writing the cache mishandles newlines in values,
5269 # but we know of no workaround that is simple, portable, and efficient.
5270 # So, don't put newlines in cache variables' values.
5271 # Ultrix sh set writes to stderr and can't be redirected directly,
5272 # and sets the high bit in the cache file unless we assign to the vars.
5273 {
5274 (set) 2>&1 |
5275 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5276 *ac_space=\ *)
5277 # `set' does not quote correctly, so add quotes (double-quote
5278 # substitution turns \\\\ into \\, and sed turns \\ into \).
5279 sed -n \
5280 "s/'/'\\\\''/g;
5281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5282 ;;
5283 *)
5284 # `set' quotes correctly as required by POSIX, so do not add quotes.
5285 sed -n \
5286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5287 ;;
5288 esac;
5289 } |
5290 sed '
5291 t clear
5292 : clear
5293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5294 t end
5295 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5296 : end' >>confcache
5297 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5298 if test -w $cache_file; then
5299 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5300 cat confcache >$cache_file
5301 else
5302 echo "not updating unwritable cache $cache_file"
5303 fi
5304 fi
5305 rm -f confcache
5306
5307 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5308 # Let make expand exec_prefix.
5309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5310
5311 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5312 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5313 # trailing colons and then remove the whole line if VPATH becomes empty
5314 # (actually we leave an empty line to preserve line numbers).
5315 if test "x$srcdir" = x.; then
5316 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5317 s/:*\$(srcdir):*/:/;
5318 s/:*\${srcdir}:*/:/;
5319 s/:*@srcdir@:*/:/;
5320 s/^\([^=]*=[ ]*\):*/\1/;
5321 s/:*$//;
5322 s/^[^=]*=[ ]*$//;
5323 }'
5324 fi
5325
5326 DEFS=-DHAVE_CONFIG_H
5327
5328 ac_libobjs=
5329 ac_ltlibobjs=
5330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5331 # 1. Remove the extension, and $U if already installed.
5332 ac_i=`echo "$ac_i" |
5333 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5334 # 2. Add them.
5335 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5336 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5337 done
5338 LIBOBJS=$ac_libobjs
5339
5340 LTLIBOBJS=$ac_ltlibobjs
5341
5342
5343 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5344 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5345 Usually this means the macro was only invoked conditionally." >&5
5346 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5347 Usually this means the macro was only invoked conditionally." >&2;}
5348 { (exit 1); exit 1; }; }
5349 fi
5350
5351 : ${CONFIG_STATUS=./config.status}
5352 ac_clean_files_save=$ac_clean_files
5353 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5354 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5355 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5356 cat >$CONFIG_STATUS <<_ACEOF
5357 #! $SHELL
5358 # Generated by $as_me.
5359 # Run this file to recreate the current configuration.
5360 # Compiler output produced by configure, useful for debugging
5361 # configure, is in config.log if it exists.
5362
5363 debug=false
5364 ac_cs_recheck=false
5365 ac_cs_silent=false
5366 SHELL=\${CONFIG_SHELL-$SHELL}
5367 _ACEOF
5368
5369 cat >>$CONFIG_STATUS <<\_ACEOF
5370 ## --------------------- ##
5371 ## M4sh Initialization. ##
5372 ## --------------------- ##
5373
5374 # Be Bourne compatible
5375 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5376 emulate sh
5377 NULLCMD=:
5378 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5379 # is contrary to our usage. Disable this feature.
5380 alias -g '${1+"$@"}'='"$@"'
5381 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5382 set -o posix
5383 fi
5384 DUALCASE=1; export DUALCASE # for MKS sh
5385
5386 # Support unset when possible.
5387 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5388 as_unset=unset
5389 else
5390 as_unset=false
5391 fi
5392
5393
5394 # Work around bugs in pre-3.0 UWIN ksh.
5395 $as_unset ENV MAIL MAILPATH
5396 PS1='$ '
5397 PS2='> '
5398 PS4='+ '
5399
5400 # NLS nuisances.
5401 for as_var in \
5402 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5403 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5404 LC_TELEPHONE LC_TIME
5405 do
5406 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5407 eval $as_var=C; export $as_var
5408 else
5409 $as_unset $as_var
5410 fi
5411 done
5412
5413 # Required to use basename.
5414 if expr a : '\(a\)' >/dev/null 2>&1; then
5415 as_expr=expr
5416 else
5417 as_expr=false
5418 fi
5419
5420 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5421 as_basename=basename
5422 else
5423 as_basename=false
5424 fi
5425
5426
5427 # Name of the executable.
5428 as_me=`$as_basename "$0" ||
5429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5430 X"$0" : 'X\(//\)$' \| \
5431 X"$0" : 'X\(/\)$' \| \
5432 . : '\(.\)' 2>/dev/null ||
5433 echo X/"$0" |
5434 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5435 /^X\/\(\/\/\)$/{ s//\1/; q; }
5436 /^X\/\(\/\).*/{ s//\1/; q; }
5437 s/.*/./; q'`
5438
5439
5440 # PATH needs CR, and LINENO needs CR and PATH.
5441 # Avoid depending upon Character Ranges.
5442 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5443 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5444 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5445 as_cr_digits='0123456789'
5446 as_cr_alnum=$as_cr_Letters$as_cr_digits
5447
5448 # The user is always right.
5449 if test "${PATH_SEPARATOR+set}" != set; then
5450 echo "#! /bin/sh" >conf$$.sh
5451 echo "exit 0" >>conf$$.sh
5452 chmod +x conf$$.sh
5453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5454 PATH_SEPARATOR=';'
5455 else
5456 PATH_SEPARATOR=:
5457 fi
5458 rm -f conf$$.sh
5459 fi
5460
5461
5462 as_lineno_1=$LINENO
5463 as_lineno_2=$LINENO
5464 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5465 test "x$as_lineno_1" != "x$as_lineno_2" &&
5466 test "x$as_lineno_3" = "x$as_lineno_2" || {
5467 # Find who we are. Look in the path if we contain no path at all
5468 # relative or not.
5469 case $0 in
5470 *[\\/]* ) as_myself=$0 ;;
5471 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5477 done
5478
5479 ;;
5480 esac
5481 # We did not find ourselves, most probably we were run as `sh COMMAND'
5482 # in which case we are not to be found in the path.
5483 if test "x$as_myself" = x; then
5484 as_myself=$0
5485 fi
5486 if test ! -f "$as_myself"; then
5487 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5488 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5489 { (exit 1); exit 1; }; }
5490 fi
5491 case $CONFIG_SHELL in
5492 '')
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5495 do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for as_base in sh bash ksh sh5; do
5499 case $as_dir in
5500 /*)
5501 if ("$as_dir/$as_base" -c '
5502 as_lineno_1=$LINENO
5503 as_lineno_2=$LINENO
5504 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5505 test "x$as_lineno_1" != "x$as_lineno_2" &&
5506 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5507 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5508 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5509 CONFIG_SHELL=$as_dir/$as_base
5510 export CONFIG_SHELL
5511 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5512 fi;;
5513 esac
5514 done
5515 done
5516 ;;
5517 esac
5518
5519 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5520 # uniformly replaced by the line number. The first 'sed' inserts a
5521 # line-number line before each line; the second 'sed' does the real
5522 # work. The second script uses 'N' to pair each line-number line
5523 # with the numbered line, and appends trailing '-' during
5524 # substitution so that $LINENO is not a special case at line end.
5525 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5526 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5527 sed '=' <$as_myself |
5528 sed '
5529 N
5530 s,$,-,
5531 : loop
5532 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5533 t loop
5534 s,-$,,
5535 s,^['$as_cr_digits']*\n,,
5536 ' >$as_me.lineno &&
5537 chmod +x $as_me.lineno ||
5538 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5539 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5540 { (exit 1); exit 1; }; }
5541
5542 # Don't try to exec as it changes $[0], causing all sort of problems
5543 # (the dirname of $[0] is not the place where we might find the
5544 # original and so on. Autoconf is especially sensible to this).
5545 . ./$as_me.lineno
5546 # Exit status is that of the last command.
5547 exit
5548 }
5549
5550
5551 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5552 *c*,-n*) ECHO_N= ECHO_C='
5553 ' ECHO_T=' ' ;;
5554 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5555 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5556 esac
5557
5558 if expr a : '\(a\)' >/dev/null 2>&1; then
5559 as_expr=expr
5560 else
5561 as_expr=false
5562 fi
5563
5564 rm -f conf$$ conf$$.exe conf$$.file
5565 echo >conf$$.file
5566 if ln -s conf$$.file conf$$ 2>/dev/null; then
5567 # We could just check for DJGPP; but this test a) works b) is more generic
5568 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5569 if test -f conf$$.exe; then
5570 # Don't use ln at all; we don't have any links
5571 as_ln_s='cp -p'
5572 else
5573 as_ln_s='ln -s'
5574 fi
5575 elif ln conf$$.file conf$$ 2>/dev/null; then
5576 as_ln_s=ln
5577 else
5578 as_ln_s='cp -p'
5579 fi
5580 rm -f conf$$ conf$$.exe conf$$.file
5581
5582 if mkdir -p . 2>/dev/null; then
5583 as_mkdir_p=:
5584 else
5585 test -d ./-p && rmdir ./-p
5586 as_mkdir_p=false
5587 fi
5588
5589 as_executable_p="test -f"
5590
5591 # Sed expression to map a string onto a valid CPP name.
5592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5593
5594 # Sed expression to map a string onto a valid variable name.
5595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5596
5597
5598 # IFS
5599 # We need space, tab and new line, in precisely that order.
5600 as_nl='
5601 '
5602 IFS=" $as_nl"
5603
5604 # CDPATH.
5605 $as_unset CDPATH
5606
5607 exec 6>&1
5608
5609 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5610 # report actual input values of CONFIG_FILES etc. instead of their
5611 # values after options handling. Logging --version etc. is OK.
5612 exec 5>>config.log
5613 {
5614 echo
5615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5616 ## Running $as_me. ##
5617 _ASBOX
5618 } >&5
5619 cat >&5 <<_CSEOF
5620
5621 This file was extended by package-unused $as_me version-unused, which was
5622 generated by GNU Autoconf 2.59. Invocation command line was
5623
5624 CONFIG_FILES = $CONFIG_FILES
5625 CONFIG_HEADERS = $CONFIG_HEADERS
5626 CONFIG_LINKS = $CONFIG_LINKS
5627 CONFIG_COMMANDS = $CONFIG_COMMANDS
5628 $ $0 $@
5629
5630 _CSEOF
5631 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5632 echo >&5
5633 _ACEOF
5634
5635 # Files that config.status was made for.
5636 if test -n "$ac_config_files"; then
5637 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5638 fi
5639
5640 if test -n "$ac_config_headers"; then
5641 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5642 fi
5643
5644 if test -n "$ac_config_links"; then
5645 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5646 fi
5647
5648 if test -n "$ac_config_commands"; then
5649 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5650 fi
5651
5652 cat >>$CONFIG_STATUS <<\_ACEOF
5653
5654 ac_cs_usage="\
5655 \`$as_me' instantiates files from templates according to the
5656 current configuration.
5657
5658 Usage: $0 [OPTIONS] [FILE]...
5659
5660 -h, --help print this help, then exit
5661 -V, --version print version number, then exit
5662 -q, --quiet do not print progress messages
5663 -d, --debug don't remove temporary files
5664 --recheck update $as_me by reconfiguring in the same conditions
5665 --file=FILE[:TEMPLATE]
5666 instantiate the configuration file FILE
5667 --header=FILE[:TEMPLATE]
5668 instantiate the configuration header FILE
5669
5670 Configuration files:
5671 $config_files
5672
5673 Configuration headers:
5674 $config_headers
5675
5676 Configuration commands:
5677 $config_commands
5678
5679 Report bugs to <bug-autoconf@gnu.org>."
5680 _ACEOF
5681
5682 cat >>$CONFIG_STATUS <<_ACEOF
5683 ac_cs_version="\\
5684 package-unused config.status version-unused
5685 configured by $0, generated by GNU Autoconf 2.59,
5686 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5687
5688 Copyright (C) 2003 Free Software Foundation, Inc.
5689 This config.status script is free software; the Free Software Foundation
5690 gives unlimited permission to copy, distribute and modify it."
5691 srcdir=$srcdir
5692 INSTALL="$INSTALL"
5693 _ACEOF
5694
5695 cat >>$CONFIG_STATUS <<\_ACEOF
5696 # If no file are specified by the user, then we need to provide default
5697 # value. By we need to know if files were specified by the user.
5698 ac_need_defaults=:
5699 while test $# != 0
5700 do
5701 case $1 in
5702 --*=*)
5703 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5704 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5705 ac_shift=:
5706 ;;
5707 -*)
5708 ac_option=$1
5709 ac_optarg=$2
5710 ac_shift=shift
5711 ;;
5712 *) # This is not an option, so the user has probably given explicit
5713 # arguments.
5714 ac_option=$1
5715 ac_need_defaults=false;;
5716 esac
5717
5718 case $ac_option in
5719 # Handling of the options.
5720 _ACEOF
5721 cat >>$CONFIG_STATUS <<\_ACEOF
5722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5723 ac_cs_recheck=: ;;
5724 --version | --vers* | -V )
5725 echo "$ac_cs_version"; exit 0 ;;
5726 --he | --h)
5727 # Conflict between --help and --header
5728 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5729 Try \`$0 --help' for more information." >&5
5730 echo "$as_me: error: ambiguous option: $1
5731 Try \`$0 --help' for more information." >&2;}
5732 { (exit 1); exit 1; }; };;
5733 --help | --hel | -h )
5734 echo "$ac_cs_usage"; exit 0 ;;
5735 --debug | --d* | -d )
5736 debug=: ;;
5737 --file | --fil | --fi | --f )
5738 $ac_shift
5739 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5740 ac_need_defaults=false;;
5741 --header | --heade | --head | --hea )
5742 $ac_shift
5743 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5744 ac_need_defaults=false;;
5745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5746 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5747 ac_cs_silent=: ;;
5748
5749 # This is an error.
5750 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5751 Try \`$0 --help' for more information." >&5
5752 echo "$as_me: error: unrecognized option: $1
5753 Try \`$0 --help' for more information." >&2;}
5754 { (exit 1); exit 1; }; } ;;
5755
5756 *) ac_config_targets="$ac_config_targets $1" ;;
5757
5758 esac
5759 shift
5760 done
5761
5762 ac_configure_extra_args=
5763
5764 if $ac_cs_silent; then
5765 exec 6>/dev/null
5766 ac_configure_extra_args="$ac_configure_extra_args --silent"
5767 fi
5768
5769 _ACEOF
5770 cat >>$CONFIG_STATUS <<_ACEOF
5771 if \$ac_cs_recheck; then
5772 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5773 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5774 fi
5775
5776 _ACEOF
5777
5778 cat >>$CONFIG_STATUS <<_ACEOF
5779 #
5780 # INIT-COMMANDS section.
5781 #
5782
5783 srcdir=${srcdir}
5784 host=${host}
5785 target=${target}
5786 with_target_subdir=${with_target_subdir}
5787 with_multisubdir=${with_multisubdir}
5788 ac_configure_args="--enable-multilib ${ac_configure_args}"
5789 toplevel_srcdir=${toplevel_srcdir}
5790 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5791 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
5792
5793
5794 _ACEOF
5795
5796
5797
5798 cat >>$CONFIG_STATUS <<\_ACEOF
5799 for ac_config_target in $ac_config_targets
5800 do
5801 case "$ac_config_target" in
5802 # Handling of arguments.
5803 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5804 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5805 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5806 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5807 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5808 { (exit 1); exit 1; }; };;
5809 esac
5810 done
5811
5812 # If the user did not use the arguments to specify the items to instantiate,
5813 # then the envvar interface is used. Set only those that are not.
5814 # We use the long form for the default assignment because of an extremely
5815 # bizarre bug on SunOS 4.1.3.
5816 if $ac_need_defaults; then
5817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5820 fi
5821
5822 # Have a temporary directory for convenience. Make it in the build tree
5823 # simply because there is no reason to put it here, and in addition,
5824 # creating and moving files from /tmp can sometimes cause problems.
5825 # Create a temporary directory, and hook for its removal unless debugging.
5826 $debug ||
5827 {
5828 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5829 trap '{ (exit 1); exit 1; }' 1 2 13 15
5830 }
5831
5832 # Create a (secure) tmp directory for tmp files.
5833
5834 {
5835 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5836 test -n "$tmp" && test -d "$tmp"
5837 } ||
5838 {
5839 tmp=./confstat$$-$RANDOM
5840 (umask 077 && mkdir $tmp)
5841 } ||
5842 {
5843 echo "$me: cannot create a temporary directory in ." >&2
5844 { (exit 1); exit 1; }
5845 }
5846
5847 _ACEOF
5848
5849 cat >>$CONFIG_STATUS <<_ACEOF
5850
5851 #
5852 # CONFIG_FILES section.
5853 #
5854
5855 # No need to generate the scripts if there are no CONFIG_FILES.
5856 # This happens for instance when ./config.status config.h
5857 if test -n "\$CONFIG_FILES"; then
5858 # Protect against being on the right side of a sed subst in config.status.
5859 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5860 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5861 s,@SHELL@,$SHELL,;t t
5862 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5863 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5864 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5865 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5866 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5867 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5868 s,@exec_prefix@,$exec_prefix,;t t
5869 s,@prefix@,$prefix,;t t
5870 s,@program_transform_name@,$program_transform_name,;t t
5871 s,@bindir@,$bindir,;t t
5872 s,@sbindir@,$sbindir,;t t
5873 s,@libexecdir@,$libexecdir,;t t
5874 s,@datadir@,$datadir,;t t
5875 s,@sysconfdir@,$sysconfdir,;t t
5876 s,@sharedstatedir@,$sharedstatedir,;t t
5877 s,@localstatedir@,$localstatedir,;t t
5878 s,@libdir@,$libdir,;t t
5879 s,@includedir@,$includedir,;t t
5880 s,@oldincludedir@,$oldincludedir,;t t
5881 s,@infodir@,$infodir,;t t
5882 s,@mandir@,$mandir,;t t
5883 s,@build_alias@,$build_alias,;t t
5884 s,@host_alias@,$host_alias,;t t
5885 s,@target_alias@,$target_alias,;t t
5886 s,@DEFS@,$DEFS,;t t
5887 s,@ECHO_C@,$ECHO_C,;t t
5888 s,@ECHO_N@,$ECHO_N,;t t
5889 s,@ECHO_T@,$ECHO_T,;t t
5890 s,@LIBS@,$LIBS,;t t
5891 s,@build@,$build,;t t
5892 s,@build_cpu@,$build_cpu,;t t
5893 s,@build_vendor@,$build_vendor,;t t
5894 s,@build_os@,$build_os,;t t
5895 s,@build_subdir@,$build_subdir,;t t
5896 s,@host_subdir@,$host_subdir,;t t
5897 s,@target_subdir@,$target_subdir,;t t
5898 s,@VERSION@,$VERSION,;t t
5899 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
5900 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
5901 s,@host@,$host,;t t
5902 s,@host_cpu@,$host_cpu,;t t
5903 s,@host_vendor@,$host_vendor,;t t
5904 s,@host_os@,$host_os,;t t
5905 s,@target@,$target,;t t
5906 s,@target_cpu@,$target_cpu,;t t
5907 s,@target_vendor@,$target_vendor,;t t
5908 s,@target_os@,$target_os,;t t
5909 s,@target_noncanonical@,$target_noncanonical,;t t
5910 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
5911 s,@toolexecdir@,$toolexecdir,;t t
5912 s,@toolexeclibdir@,$toolexeclibdir,;t t
5913 s,@includedirname@,$includedirname,;t t
5914 s,@libext@,$libext,;t t
5915 s,@CC@,$CC,;t t
5916 s,@ac_ct_CC@,$ac_ct_CC,;t t
5917 s,@EXEEXT@,$EXEEXT,;t t
5918 s,@OBJEXT@,$OBJEXT,;t t
5919 s,@CFLAGS@,$CFLAGS,;t t
5920 s,@AS@,$AS,;t t
5921 s,@ac_ct_AS@,$ac_ct_AS,;t t
5922 s,@AR@,$AR,;t t
5923 s,@ac_ct_AR@,$ac_ct_AR,;t t
5924 s,@RANLIB@,$RANLIB,;t t
5925 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5926 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5927 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5928 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5929 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5930 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5931 s,@MAINT@,$MAINT,;t t
5932 s,@LN_S@,$LN_S,;t t
5933 s,@STRIP@,$STRIP,;t t
5934 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5935 s,@LIBTOOL@,$LIBTOOL,;t t
5936 s,@SET_MAKE@,$SET_MAKE,;t t
5937 s,@CPP@,$CPP,;t t
5938 s,@CPPFLAGS@,$CPPFLAGS,;t t
5939 s,@EGREP@,$EGREP,;t t
5940 s,@LIBOBJS@,$LIBOBJS,;t t
5941 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5942 CEOF
5943
5944 _ACEOF
5945
5946 cat >>$CONFIG_STATUS <<\_ACEOF
5947 # Split the substitutions into bite-sized pieces for seds with
5948 # small command number limits, like on Digital OSF/1 and HP-UX.
5949 ac_max_sed_lines=48
5950 ac_sed_frag=1 # Number of current file.
5951 ac_beg=1 # First line for current file.
5952 ac_end=$ac_max_sed_lines # Line after last line for current file.
5953 ac_more_lines=:
5954 ac_sed_cmds=
5955 while $ac_more_lines; do
5956 if test $ac_beg -gt 1; then
5957 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5958 else
5959 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5960 fi
5961 if test ! -s $tmp/subs.frag; then
5962 ac_more_lines=false
5963 else
5964 # The purpose of the label and of the branching condition is to
5965 # speed up the sed processing (if there are no `@' at all, there
5966 # is no need to browse any of the substitutions).
5967 # These are the two extra sed commands mentioned above.
5968 (echo ':t
5969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5970 if test -z "$ac_sed_cmds"; then
5971 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5972 else
5973 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5974 fi
5975 ac_sed_frag=`expr $ac_sed_frag + 1`
5976 ac_beg=$ac_end
5977 ac_end=`expr $ac_end + $ac_max_sed_lines`
5978 fi
5979 done
5980 if test -z "$ac_sed_cmds"; then
5981 ac_sed_cmds=cat
5982 fi
5983 fi # test -n "$CONFIG_FILES"
5984
5985 _ACEOF
5986 cat >>$CONFIG_STATUS <<\_ACEOF
5987 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5988 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5989 case $ac_file in
5990 - | *:- | *:-:* ) # input from stdin
5991 cat >$tmp/stdin
5992 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5994 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5996 * ) ac_file_in=$ac_file.in ;;
5997 esac
5998
5999 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6000 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6001 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6002 X"$ac_file" : 'X\(//\)[^/]' \| \
6003 X"$ac_file" : 'X\(//\)$' \| \
6004 X"$ac_file" : 'X\(/\)' \| \
6005 . : '\(.\)' 2>/dev/null ||
6006 echo X"$ac_file" |
6007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6009 /^X\(\/\/\)$/{ s//\1/; q; }
6010 /^X\(\/\).*/{ s//\1/; q; }
6011 s/.*/./; q'`
6012 { if $as_mkdir_p; then
6013 mkdir -p "$ac_dir"
6014 else
6015 as_dir="$ac_dir"
6016 as_dirs=
6017 while test ! -d "$as_dir"; do
6018 as_dirs="$as_dir $as_dirs"
6019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6021 X"$as_dir" : 'X\(//\)[^/]' \| \
6022 X"$as_dir" : 'X\(//\)$' \| \
6023 X"$as_dir" : 'X\(/\)' \| \
6024 . : '\(.\)' 2>/dev/null ||
6025 echo X"$as_dir" |
6026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6028 /^X\(\/\/\)$/{ s//\1/; q; }
6029 /^X\(\/\).*/{ s//\1/; q; }
6030 s/.*/./; q'`
6031 done
6032 test ! -n "$as_dirs" || mkdir $as_dirs
6033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6035 { (exit 1); exit 1; }; }; }
6036
6037 ac_builddir=.
6038
6039 if test "$ac_dir" != .; then
6040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6041 # A "../" for each directory in $ac_dir_suffix.
6042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6043 else
6044 ac_dir_suffix= ac_top_builddir=
6045 fi
6046
6047 case $srcdir in
6048 .) # No --srcdir option. We are building in place.
6049 ac_srcdir=.
6050 if test -z "$ac_top_builddir"; then
6051 ac_top_srcdir=.
6052 else
6053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6054 fi ;;
6055 [\\/]* | ?:[\\/]* ) # Absolute path.
6056 ac_srcdir=$srcdir$ac_dir_suffix;
6057 ac_top_srcdir=$srcdir ;;
6058 *) # Relative path.
6059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6061 esac
6062
6063 # Do not use `cd foo && pwd` to compute absolute paths, because
6064 # the directories may not exist.
6065 case `pwd` in
6066 .) ac_abs_builddir="$ac_dir";;
6067 *)
6068 case "$ac_dir" in
6069 .) ac_abs_builddir=`pwd`;;
6070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6072 esac;;
6073 esac
6074 case $ac_abs_builddir in
6075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6076 *)
6077 case ${ac_top_builddir}. in
6078 .) ac_abs_top_builddir=$ac_abs_builddir;;
6079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6081 esac;;
6082 esac
6083 case $ac_abs_builddir in
6084 .) ac_abs_srcdir=$ac_srcdir;;
6085 *)
6086 case $ac_srcdir in
6087 .) ac_abs_srcdir=$ac_abs_builddir;;
6088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6090 esac;;
6091 esac
6092 case $ac_abs_builddir in
6093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6094 *)
6095 case $ac_top_srcdir in
6096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6099 esac;;
6100 esac
6101
6102
6103 case $INSTALL in
6104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6105 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6106 esac
6107
6108 if test x"$ac_file" != x-; then
6109 { echo "$as_me:$LINENO: creating $ac_file" >&5
6110 echo "$as_me: creating $ac_file" >&6;}
6111 rm -f "$ac_file"
6112 fi
6113 # Let's still pretend it is `configure' which instantiates (i.e., don't
6114 # use $as_me), people would be surprised to read:
6115 # /* config.h. Generated by config.status. */
6116 if test x"$ac_file" = x-; then
6117 configure_input=
6118 else
6119 configure_input="$ac_file. "
6120 fi
6121 configure_input=$configure_input"Generated from `echo $ac_file_in |
6122 sed 's,.*/,,'` by configure."
6123
6124 # First look for the input files in the build tree, otherwise in the
6125 # src tree.
6126 ac_file_inputs=`IFS=:
6127 for f in $ac_file_in; do
6128 case $f in
6129 -) echo $tmp/stdin ;;
6130 [\\/$]*)
6131 # Absolute (can't be DOS-style, as IFS=:)
6132 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6133 echo "$as_me: error: cannot find input file: $f" >&2;}
6134 { (exit 1); exit 1; }; }
6135 echo "$f";;
6136 *) # Relative
6137 if test -f "$f"; then
6138 # Build tree
6139 echo "$f"
6140 elif test -f "$srcdir/$f"; then
6141 # Source tree
6142 echo "$srcdir/$f"
6143 else
6144 # /dev/null tree
6145 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6146 echo "$as_me: error: cannot find input file: $f" >&2;}
6147 { (exit 1); exit 1; }; }
6148 fi;;
6149 esac
6150 done` || { (exit 1); exit 1; }
6151 _ACEOF
6152 cat >>$CONFIG_STATUS <<_ACEOF
6153 sed "$ac_vpsub
6154 $extrasub
6155 _ACEOF
6156 cat >>$CONFIG_STATUS <<\_ACEOF
6157 :t
6158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6159 s,@configure_input@,$configure_input,;t t
6160 s,@srcdir@,$ac_srcdir,;t t
6161 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6162 s,@top_srcdir@,$ac_top_srcdir,;t t
6163 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6164 s,@builddir@,$ac_builddir,;t t
6165 s,@abs_builddir@,$ac_abs_builddir,;t t
6166 s,@top_builddir@,$ac_top_builddir,;t t
6167 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6168 s,@INSTALL@,$ac_INSTALL,;t t
6169 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6170 rm -f $tmp/stdin
6171 if test x"$ac_file" != x-; then
6172 mv $tmp/out $ac_file
6173 else
6174 cat $tmp/out
6175 rm -f $tmp/out
6176 fi
6177
6178 done
6179 _ACEOF
6180 cat >>$CONFIG_STATUS <<\_ACEOF
6181
6182 #
6183 # CONFIG_HEADER section.
6184 #
6185
6186 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6187 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6188 #
6189 # ac_d sets the value in "#define NAME VALUE" lines.
6190 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6191 ac_dB='[ ].*$,\1#\2'
6192 ac_dC=' '
6193 ac_dD=',;t'
6194 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6195 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6196 ac_uB='$,\1#\2define\3'
6197 ac_uC=' '
6198 ac_uD=',;t'
6199
6200 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6201 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6202 case $ac_file in
6203 - | *:- | *:-:* ) # input from stdin
6204 cat >$tmp/stdin
6205 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6206 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6207 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6208 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6209 * ) ac_file_in=$ac_file.in ;;
6210 esac
6211
6212 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6213 echo "$as_me: creating $ac_file" >&6;}
6214
6215 # First look for the input files in the build tree, otherwise in the
6216 # src tree.
6217 ac_file_inputs=`IFS=:
6218 for f in $ac_file_in; do
6219 case $f in
6220 -) echo $tmp/stdin ;;
6221 [\\/$]*)
6222 # Absolute (can't be DOS-style, as IFS=:)
6223 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6224 echo "$as_me: error: cannot find input file: $f" >&2;}
6225 { (exit 1); exit 1; }; }
6226 # Do quote $f, to prevent DOS paths from being IFS'd.
6227 echo "$f";;
6228 *) # Relative
6229 if test -f "$f"; then
6230 # Build tree
6231 echo "$f"
6232 elif test -f "$srcdir/$f"; then
6233 # Source tree
6234 echo "$srcdir/$f"
6235 else
6236 # /dev/null tree
6237 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6238 echo "$as_me: error: cannot find input file: $f" >&2;}
6239 { (exit 1); exit 1; }; }
6240 fi;;
6241 esac
6242 done` || { (exit 1); exit 1; }
6243 # Remove the trailing spaces.
6244 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6245
6246 _ACEOF
6247
6248 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6249 # `conftest.undefs', that substitutes the proper values into
6250 # config.h.in to produce config.h. The first handles `#define'
6251 # templates, and the second `#undef' templates.
6252 # And first: Protect against being on the right side of a sed subst in
6253 # config.status. Protect against being in an unquoted here document
6254 # in config.status.
6255 rm -f conftest.defines conftest.undefs
6256 # Using a here document instead of a string reduces the quoting nightmare.
6257 # Putting comments in sed scripts is not portable.
6258 #
6259 # `end' is used to avoid that the second main sed command (meant for
6260 # 0-ary CPP macros) applies to n-ary macro definitions.
6261 # See the Autoconf documentation for `clear'.
6262 cat >confdef2sed.sed <<\_ACEOF
6263 s/[\\&,]/\\&/g
6264 s,[\\$`],\\&,g
6265 t clear
6266 : clear
6267 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6268 t end
6269 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6270 : end
6271 _ACEOF
6272 # If some macros were called several times there might be several times
6273 # the same #defines, which is useless. Nevertheless, we may not want to
6274 # sort them, since we want the *last* AC-DEFINE to be honored.
6275 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6276 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6277 rm -f confdef2sed.sed
6278
6279 # This sed command replaces #undef with comments. This is necessary, for
6280 # example, in the case of _POSIX_SOURCE, which is predefined and required
6281 # on some systems where configure will not decide to define it.
6282 cat >>conftest.undefs <<\_ACEOF
6283 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6284 _ACEOF
6285
6286 # Break up conftest.defines because some shells have a limit on the size
6287 # of here documents, and old seds have small limits too (100 cmds).
6288 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6289 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6290 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6291 echo ' :' >>$CONFIG_STATUS
6292 rm -f conftest.tail
6293 while grep . conftest.defines >/dev/null
6294 do
6295 # Write a limited-size here document to $tmp/defines.sed.
6296 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6297 # Speed up: don't consider the non `#define' lines.
6298 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6299 # Work around the forget-to-reset-the-flag bug.
6300 echo 't clr' >>$CONFIG_STATUS
6301 echo ': clr' >>$CONFIG_STATUS
6302 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6303 echo 'CEOF
6304 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6305 rm -f $tmp/in
6306 mv $tmp/out $tmp/in
6307 ' >>$CONFIG_STATUS
6308 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6309 rm -f conftest.defines
6310 mv conftest.tail conftest.defines
6311 done
6312 rm -f conftest.defines
6313 echo ' fi # grep' >>$CONFIG_STATUS
6314 echo >>$CONFIG_STATUS
6315
6316 # Break up conftest.undefs because some shells have a limit on the size
6317 # of here documents, and old seds have small limits too (100 cmds).
6318 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6319 rm -f conftest.tail
6320 while grep . conftest.undefs >/dev/null
6321 do
6322 # Write a limited-size here document to $tmp/undefs.sed.
6323 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6324 # Speed up: don't consider the non `#undef'
6325 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6326 # Work around the forget-to-reset-the-flag bug.
6327 echo 't clr' >>$CONFIG_STATUS
6328 echo ': clr' >>$CONFIG_STATUS
6329 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6330 echo 'CEOF
6331 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6332 rm -f $tmp/in
6333 mv $tmp/out $tmp/in
6334 ' >>$CONFIG_STATUS
6335 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6336 rm -f conftest.undefs
6337 mv conftest.tail conftest.undefs
6338 done
6339 rm -f conftest.undefs
6340
6341 cat >>$CONFIG_STATUS <<\_ACEOF
6342 # Let's still pretend it is `configure' which instantiates (i.e., don't
6343 # use $as_me), people would be surprised to read:
6344 # /* config.h. Generated by config.status. */
6345 if test x"$ac_file" = x-; then
6346 echo "/* Generated by configure. */" >$tmp/config.h
6347 else
6348 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6349 fi
6350 cat $tmp/in >>$tmp/config.h
6351 rm -f $tmp/in
6352 if test x"$ac_file" != x-; then
6353 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6354 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6355 echo "$as_me: $ac_file is unchanged" >&6;}
6356 else
6357 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6359 X"$ac_file" : 'X\(//\)[^/]' \| \
6360 X"$ac_file" : 'X\(//\)$' \| \
6361 X"$ac_file" : 'X\(/\)' \| \
6362 . : '\(.\)' 2>/dev/null ||
6363 echo X"$ac_file" |
6364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6366 /^X\(\/\/\)$/{ s//\1/; q; }
6367 /^X\(\/\).*/{ s//\1/; q; }
6368 s/.*/./; q'`
6369 { if $as_mkdir_p; then
6370 mkdir -p "$ac_dir"
6371 else
6372 as_dir="$ac_dir"
6373 as_dirs=
6374 while test ! -d "$as_dir"; do
6375 as_dirs="$as_dir $as_dirs"
6376 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6378 X"$as_dir" : 'X\(//\)[^/]' \| \
6379 X"$as_dir" : 'X\(//\)$' \| \
6380 X"$as_dir" : 'X\(/\)' \| \
6381 . : '\(.\)' 2>/dev/null ||
6382 echo X"$as_dir" |
6383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6385 /^X\(\/\/\)$/{ s//\1/; q; }
6386 /^X\(\/\).*/{ s//\1/; q; }
6387 s/.*/./; q'`
6388 done
6389 test ! -n "$as_dirs" || mkdir $as_dirs
6390 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6391 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6392 { (exit 1); exit 1; }; }; }
6393
6394 rm -f $ac_file
6395 mv $tmp/config.h $ac_file
6396 fi
6397 else
6398 cat $tmp/config.h
6399 rm -f $tmp/config.h
6400 fi
6401 done
6402 _ACEOF
6403 cat >>$CONFIG_STATUS <<\_ACEOF
6404
6405 #
6406 # CONFIG_COMMANDS section.
6407 #
6408 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6409 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6410 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6411 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6412 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6413 X"$ac_dest" : 'X\(//\)[^/]' \| \
6414 X"$ac_dest" : 'X\(//\)$' \| \
6415 X"$ac_dest" : 'X\(/\)' \| \
6416 . : '\(.\)' 2>/dev/null ||
6417 echo X"$ac_dest" |
6418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6420 /^X\(\/\/\)$/{ s//\1/; q; }
6421 /^X\(\/\).*/{ s//\1/; q; }
6422 s/.*/./; q'`
6423 { if $as_mkdir_p; then
6424 mkdir -p "$ac_dir"
6425 else
6426 as_dir="$ac_dir"
6427 as_dirs=
6428 while test ! -d "$as_dir"; do
6429 as_dirs="$as_dir $as_dirs"
6430 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6432 X"$as_dir" : 'X\(//\)[^/]' \| \
6433 X"$as_dir" : 'X\(//\)$' \| \
6434 X"$as_dir" : 'X\(/\)' \| \
6435 . : '\(.\)' 2>/dev/null ||
6436 echo X"$as_dir" |
6437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6439 /^X\(\/\/\)$/{ s//\1/; q; }
6440 /^X\(\/\).*/{ s//\1/; q; }
6441 s/.*/./; q'`
6442 done
6443 test ! -n "$as_dirs" || mkdir $as_dirs
6444 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6445 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6446 { (exit 1); exit 1; }; }; }
6447
6448 ac_builddir=.
6449
6450 if test "$ac_dir" != .; then
6451 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6452 # A "../" for each directory in $ac_dir_suffix.
6453 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6454 else
6455 ac_dir_suffix= ac_top_builddir=
6456 fi
6457
6458 case $srcdir in
6459 .) # No --srcdir option. We are building in place.
6460 ac_srcdir=.
6461 if test -z "$ac_top_builddir"; then
6462 ac_top_srcdir=.
6463 else
6464 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6465 fi ;;
6466 [\\/]* | ?:[\\/]* ) # Absolute path.
6467 ac_srcdir=$srcdir$ac_dir_suffix;
6468 ac_top_srcdir=$srcdir ;;
6469 *) # Relative path.
6470 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6471 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6472 esac
6473
6474 # Do not use `cd foo && pwd` to compute absolute paths, because
6475 # the directories may not exist.
6476 case `pwd` in
6477 .) ac_abs_builddir="$ac_dir";;
6478 *)
6479 case "$ac_dir" in
6480 .) ac_abs_builddir=`pwd`;;
6481 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6482 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6483 esac;;
6484 esac
6485 case $ac_abs_builddir in
6486 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6487 *)
6488 case ${ac_top_builddir}. in
6489 .) ac_abs_top_builddir=$ac_abs_builddir;;
6490 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6491 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6492 esac;;
6493 esac
6494 case $ac_abs_builddir in
6495 .) ac_abs_srcdir=$ac_srcdir;;
6496 *)
6497 case $ac_srcdir in
6498 .) ac_abs_srcdir=$ac_abs_builddir;;
6499 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6500 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6501 esac;;
6502 esac
6503 case $ac_abs_builddir in
6504 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6505 *)
6506 case $ac_top_srcdir in
6507 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6508 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6509 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6510 esac;;
6511 esac
6512
6513
6514 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6515 echo "$as_me: executing $ac_dest commands" >&6;}
6516 case $ac_dest in
6517 default ) if test -n "$CONFIG_FILES"; then
6518 if test -n "${with_target_subdir}"; then
6519 # FIXME: We shouldn't need to set ac_file
6520 ac_file=Makefile
6521 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6522 . ${toplevel_srcdir}/config-ml.in
6523 fi
6524 fi ;;
6525 esac
6526 done
6527 _ACEOF
6528
6529 cat >>$CONFIG_STATUS <<\_ACEOF
6530
6531 { (exit 0); exit 0; }
6532 _ACEOF
6533 chmod +x $CONFIG_STATUS
6534 ac_clean_files=$ac_clean_files_save
6535
6536
6537 # configure is writing to config.log, and then calls config.status.
6538 # config.status does its own redirection, appending to config.log.
6539 # Unfortunately, on DOS this fails, as config.log is still kept open
6540 # by configure, so config.status won't be able to write to it; its
6541 # output is simply discarded. So we exec the FD to /dev/null,
6542 # effectively closing config.log, so it can be properly (re)opened and
6543 # appended to by config.status. When coming back to configure, we
6544 # need to make the FD available again.
6545 if test "$no_create" != yes; then
6546 ac_cs_success=:
6547 ac_config_status_args=
6548 test "$silent" = yes &&
6549 ac_config_status_args="$ac_config_status_args --quiet"
6550 exec 5>/dev/null
6551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6552 exec 5>>config.log
6553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6554 # would make configure fail if this is the last instruction.
6555 $ac_cs_success || { (exit 1); exit 1; }
6556 fi
6557