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