]> git.ipfire.org Git - thirdparty/gcc.git/blob - libobjc/configure
configure.ac: Fix a typo in *-*-darwin clause.
[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
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274 $*
275 _LT_EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='package-unused'
418 PACKAGE_TARNAME='libobjc'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='package-unused version-unused'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="objc/objc.h"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 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_libsubdir build_subdir host_subdir target_subdir VERSION OBJC_BOEHM_GC OBJC_BOEHM_GC_INCLUDES multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir toolexecdir toolexeclibdir includedirname libsuffix CC ac_ct_CC EXEEXT OBJEXT extra_ldflags_libobjc 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 DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S STRIP ac_ct_STRIP lt_ECHO CPP CPPFLAGS SET_MAKE LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
790 *)
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 ;;
797
798 esac
799 done
800
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821 do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874 else
875 ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910
911 #
912 # Report the --help message.
913 #
914 if test "$ac_init_help" = "long"; then
915 # Omit some internal or obsolete options to make the list less imposing.
916 # This message is too long to be a string in the A/UX 3.1 sh.
917 cat <<_ACEOF
918 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
919
920 Usage: $0 [OPTION]... [VAR=VALUE]...
921
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE. See below for descriptions of some of the useful variables.
924
925 Defaults for the options are specified in brackets.
926
927 Configuration:
928 -h, --help display this help and exit
929 --help=short display options specific to this package
930 --help=recursive display the short help of all the included packages
931 -V, --version display version information and exit
932 -q, --quiet, --silent do not print \`checking...' messages
933 --cache-file=FILE cache test results in FILE [disabled]
934 -C, --config-cache alias for \`--cache-file=config.cache'
935 -n, --no-create do not create output files
936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
937
938 _ACEOF
939
940 cat <<_ACEOF
941 Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
943 [$ac_default_prefix]
944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
945 [PREFIX]
946
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
951
952 For better control, use the options below.
953
954 Fine tuning of the installation directories:
955 --bindir=DIR user executables [EPREFIX/bin]
956 --sbindir=DIR system admin executables [EPREFIX/sbin]
957 --libexecdir=DIR program executables [EPREFIX/libexec]
958 --datadir=DIR read-only architecture-independent data [PREFIX/share]
959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
962 --libdir=DIR object code libraries [EPREFIX/lib]
963 --includedir=DIR C header files [PREFIX/include]
964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
965 --infodir=DIR info documentation [PREFIX/info]
966 --mandir=DIR man documentation [PREFIX/man]
967 _ACEOF
968
969 cat <<\_ACEOF
970
971 System types:
972 --build=BUILD configure for building on BUILD [guessed]
973 --host=HOST cross-compile to build programs to run on HOST [BUILD]
974 --target=TARGET configure for building compilers for TARGET [HOST]
975 _ACEOF
976 fi
977
978 if test -n "$ac_init_help"; then
979 case $ac_init_help in
980 short | recursive ) echo "Configuration of package-unused version-unused:";;
981 esac
982 cat <<\_ACEOF
983
984 Optional Features:
985 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
986 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
987 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
988 --enable-objc-gc enable the use of Boehm's garbage collector with
989 the GNU Objective-C runtime.
990 --enable-multilib build many library versions (default)
991 --enable-maintainer-mode enable make rules and dependencies not useful
992 (and sometimes confusing) to the casual installer
993 --enable-shared[=PKGS]
994 build shared libraries [default=yes]
995 --enable-static[=PKGS]
996 build static libraries [default=yes]
997 --enable-fast-install[=PKGS]
998 optimize for fast installation [default=yes]
999 --disable-libtool-lock avoid locking (might break parallel builds)
1000 --enable-sjlj-exceptions
1001 force use of builtin_setjmp for exceptions
1002
1003 Optional Packages:
1004 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1005 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1006 --with-build-libsubdir=DIR Directory where to find libraries for build system
1007 --with-target-subdir=SUBDIR
1008 configuring in a subdirectory
1009 --with-cross-host=HOST configuring with a cross compiler
1010 --with-pic try to use only PIC/non-PIC objects [default=use
1011 both]
1012 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1013
1014 Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1022
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1025
1026 _ACEOF
1027 fi
1028
1029 if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1035
1036 if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041 ac_dir_suffix= ac_top_builddir=
1042 fi
1043
1044 case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1059
1060 # Do not use `cd foo && pwd` to compute absolute paths, because
1061 # the directories may not exist.
1062 case `pwd` in
1063 .) ac_abs_builddir="$ac_dir";;
1064 *)
1065 case "$ac_dir" in
1066 .) ac_abs_builddir=`pwd`;;
1067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 esac;;
1070 esac
1071 case $ac_abs_builddir in
1072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1073 *)
1074 case ${ac_top_builddir}. in
1075 .) ac_abs_top_builddir=$ac_abs_builddir;;
1076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 esac;;
1079 esac
1080 case $ac_abs_builddir in
1081 .) ac_abs_srcdir=$ac_srcdir;;
1082 *)
1083 case $ac_srcdir in
1084 .) ac_abs_srcdir=$ac_abs_builddir;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1091 *)
1092 case $ac_top_srcdir in
1093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096 esac;;
1097 esac
1098
1099 cd $ac_dir
1100 # Check for guested configure; otherwise get Cygnus style configure.
1101 if test -f $ac_srcdir/configure.gnu; then
1102 echo
1103 $SHELL $ac_srcdir/configure.gnu --help=recursive
1104 elif test -f $ac_srcdir/configure; then
1105 echo
1106 $SHELL $ac_srcdir/configure --help=recursive
1107 elif test -f $ac_srcdir/configure.ac ||
1108 test -f $ac_srcdir/configure.in; then
1109 echo
1110 $ac_configure --help
1111 else
1112 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1113 fi
1114 cd "$ac_popdir"
1115 done
1116 fi
1117
1118 test -n "$ac_init_help" && exit 0
1119 if $ac_init_version; then
1120 cat <<\_ACEOF
1121 package-unused configure version-unused
1122 generated by GNU Autoconf 2.59
1123
1124 Copyright (C) 2003 Free Software Foundation, Inc.
1125 This configure script is free software; the Free Software Foundation
1126 gives unlimited permission to copy, distribute and modify it.
1127 _ACEOF
1128 exit 0
1129 fi
1130 exec 5>config.log
1131 cat >&5 <<_ACEOF
1132 This file contains any messages produced by compilers while
1133 running configure, to aid debugging if configure makes a mistake.
1134
1135 It was created by package-unused $as_me version-unused, which was
1136 generated by GNU Autoconf 2.59. Invocation command line was
1137
1138 $ $0 $@
1139
1140 _ACEOF
1141 {
1142 cat <<_ASUNAME
1143 ## --------- ##
1144 ## Platform. ##
1145 ## --------- ##
1146
1147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1151 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1152
1153 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1154 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1155
1156 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1157 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1158 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1159 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1160 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1161 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1162 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1163
1164 _ASUNAME
1165
1166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167 for as_dir in $PATH
1168 do
1169 IFS=$as_save_IFS
1170 test -z "$as_dir" && as_dir=.
1171 echo "PATH: $as_dir"
1172 done
1173
1174 } >&5
1175
1176 cat >&5 <<_ACEOF
1177
1178
1179 ## ----------- ##
1180 ## Core tests. ##
1181 ## ----------- ##
1182
1183 _ACEOF
1184
1185
1186 # Keep a trace of the command line.
1187 # Strip out --no-create and --no-recursion so they do not pile up.
1188 # Strip out --silent because we don't want to record it for future runs.
1189 # Also quote any args containing shell meta-characters.
1190 # Make two passes to allow for proper duplicate-argument suppression.
1191 ac_configure_args=
1192 ac_configure_args0=
1193 ac_configure_args1=
1194 ac_sep=
1195 ac_must_keep_next=false
1196 for ac_pass in 1 2
1197 do
1198 for ac_arg
1199 do
1200 case $ac_arg in
1201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 continue ;;
1205 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1206 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207 esac
1208 case $ac_pass in
1209 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1210 2)
1211 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1212 if test $ac_must_keep_next = true; then
1213 ac_must_keep_next=false # Got value, back to normal.
1214 else
1215 case $ac_arg in
1216 *=* | --config-cache | -C | -disable-* | --disable-* \
1217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1219 | -with-* | --with-* | -without-* | --without-* | --x)
1220 case "$ac_configure_args0 " in
1221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222 esac
1223 ;;
1224 -* ) ac_must_keep_next=true ;;
1225 esac
1226 fi
1227 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1228 # Get rid of the leading space.
1229 ac_sep=" "
1230 ;;
1231 esac
1232 done
1233 done
1234 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1235 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1236
1237 # When interrupted or exit'd, cleanup temporary files, and complete
1238 # config.log. We remove comments because anyway the quotes in there
1239 # would cause problems or look ugly.
1240 # WARNING: Be sure not to use single quotes in there, as some shells,
1241 # such as our DU 5.0 friend, will then `close' the trap.
1242 trap 'exit_status=$?
1243 # Save into config.log some information that might help in debugging.
1244 {
1245 echo
1246
1247 cat <<\_ASBOX
1248 ## ---------------- ##
1249 ## Cache variables. ##
1250 ## ---------------- ##
1251 _ASBOX
1252 echo
1253 # The following way of writing the cache mishandles newlines in values,
1254 {
1255 (set) 2>&1 |
1256 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257 *ac_space=\ *)
1258 sed -n \
1259 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1261 ;;
1262 *)
1263 sed -n \
1264 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1265 ;;
1266 esac;
1267 }
1268 echo
1269
1270 cat <<\_ASBOX
1271 ## ----------------- ##
1272 ## Output variables. ##
1273 ## ----------------- ##
1274 _ASBOX
1275 echo
1276 for ac_var in $ac_subst_vars
1277 do
1278 eval ac_val=$`echo $ac_var`
1279 echo "$ac_var='"'"'$ac_val'"'"'"
1280 done | sort
1281 echo
1282
1283 if test -n "$ac_subst_files"; then
1284 cat <<\_ASBOX
1285 ## ------------- ##
1286 ## Output files. ##
1287 ## ------------- ##
1288 _ASBOX
1289 echo
1290 for ac_var in $ac_subst_files
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296 fi
1297
1298 if test -s confdefs.h; then
1299 cat <<\_ASBOX
1300 ## ----------- ##
1301 ## confdefs.h. ##
1302 ## ----------- ##
1303 _ASBOX
1304 echo
1305 sed "/^$/d" confdefs.h | sort
1306 echo
1307 fi
1308 test "$ac_signal" != 0 &&
1309 echo "$as_me: caught signal $ac_signal"
1310 echo "$as_me: exit $exit_status"
1311 } >&5
1312 rm -f core *.core &&
1313 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314 exit $exit_status
1315 ' 0
1316 for ac_signal in 1 2 13 15; do
1317 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318 done
1319 ac_signal=0
1320
1321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1322 rm -rf conftest* confdefs.h
1323 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324 echo >confdefs.h
1325
1326 # Predefined preprocessor variables.
1327
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_NAME "$PACKAGE_NAME"
1330 _ACEOF
1331
1332
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335 _ACEOF
1336
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1340 _ACEOF
1341
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_STRING "$PACKAGE_STRING"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350 _ACEOF
1351
1352
1353 # Let the site file select an alternate cache file if it wants to.
1354 # Prefer explicitly selected file to automatically selected ones.
1355 if test -z "$CONFIG_SITE"; then
1356 if test "x$prefix" != xNONE; then
1357 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1358 else
1359 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1360 fi
1361 fi
1362 for ac_site_file in $CONFIG_SITE; do
1363 if test -r "$ac_site_file"; then
1364 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1365 echo "$as_me: loading site script $ac_site_file" >&6;}
1366 sed 's/^/| /' "$ac_site_file" >&5
1367 . "$ac_site_file"
1368 fi
1369 done
1370
1371 if test -r "$cache_file"; then
1372 # Some versions of bash will fail to source /dev/null (special
1373 # files actually), so we avoid doing that.
1374 if test -f "$cache_file"; then
1375 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1376 echo "$as_me: loading cache $cache_file" >&6;}
1377 case $cache_file in
1378 [\\/]* | ?:[\\/]* ) . $cache_file;;
1379 *) . ./$cache_file;;
1380 esac
1381 fi
1382 else
1383 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384 echo "$as_me: creating cache $cache_file" >&6;}
1385 >$cache_file
1386 fi
1387
1388 # Check that the precious variables saved in the cache have kept the same
1389 # value.
1390 ac_cache_corrupted=false
1391 for ac_var in `(set) 2>&1 |
1392 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1394 eval ac_new_set=\$ac_env_${ac_var}_set
1395 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1396 eval ac_new_val="\$ac_env_${ac_var}_value"
1397 case $ac_old_set,$ac_new_set in
1398 set,)
1399 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1400 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1401 ac_cache_corrupted=: ;;
1402 ,set)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1404 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,);;
1407 *)
1408 if test "x$ac_old_val" != "x$ac_new_val"; then
1409 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1410 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1411 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1412 echo "$as_me: former value: $ac_old_val" >&2;}
1413 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1414 echo "$as_me: current value: $ac_new_val" >&2;}
1415 ac_cache_corrupted=:
1416 fi;;
1417 esac
1418 # Pass precious variables to config.status.
1419 if test "$ac_new_set" = set; then
1420 case $ac_new_val in
1421 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1422 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1423 *) ac_arg=$ac_var=$ac_new_val ;;
1424 esac
1425 case " $ac_configure_args " in
1426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1427 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1428 esac
1429 fi
1430 done
1431 if $ac_cache_corrupted; then
1432 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1433 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1434 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1435 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1436 { (exit 1); exit 1; }; }
1437 fi
1438
1439 ac_ext=c
1440 ac_cpp='$CPP $CPPFLAGS'
1441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
1486 fi
1487 done
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1492 fi
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520 fi
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527
1528
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
1532 esac
1533
1534 case ${host_alias} in
1535 "") host_noncanonical=${build_noncanonical} ;;
1536 *) host_noncanonical=${host_alias} ;;
1537 esac
1538
1539 case ${target_alias} in
1540 "") target_noncanonical=${host_noncanonical} ;;
1541 *) target_noncanonical=${target_alias} ;;
1542 esac
1543
1544
1545 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1546 # have matching libraries, they should use host libraries: Makefile.tpl
1547 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1548 # However, they still use the build modules, because the corresponding
1549 # host modules (e.g. bison) are only built for the host when bootstrap
1550 # finishes. So:
1551 # - build_subdir is where we find build modules, and never changes.
1552 # - build_libsubdir is where we find build libraries, and can be overridden.
1553
1554 # Prefix 'build-' so this never conflicts with target_subdir.
1555 build_subdir="build-${build_noncanonical}"
1556
1557 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1558 if test "${with_build_libsubdir+set}" = set; then
1559 withval="$with_build_libsubdir"
1560 build_libsubdir="$withval"
1561 else
1562 build_libsubdir="$build_subdir"
1563 fi;
1564 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1565 if ( test $srcdir = . && test -d gcc ) \
1566 || test -d $srcdir/../host-${host_noncanonical}; then
1567 host_subdir="host-${host_noncanonical}"
1568 else
1569 host_subdir=.
1570 fi
1571 # No prefix.
1572 target_subdir=${target_noncanonical}
1573
1574
1575 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1576 PACKAGE=libobjc
1577 # Version is pulled out to make it a bit easier to change using sed.
1578 VERSION=2:0:0
1579
1580
1581 # This works around the fact that libtool configuration may change LD
1582 # for this particular configuration, but some shells, instead of
1583 # keeping the changes in LD private, export them just because LD is
1584 # exported.
1585 ORIGINAL_LD_FOR_MULTILIBS=$LD
1586
1587 # -------
1588 # Options
1589 # -------
1590
1591 # We use these options to decide which functions to include.
1592
1593 # Check whether --with-target-subdir or --without-target-subdir was given.
1594 if test "${with_target_subdir+set}" = set; then
1595 withval="$with_target_subdir"
1596
1597 fi;
1598
1599 # Check whether --with-cross-host or --without-cross-host was given.
1600 if test "${with_cross_host+set}" = set; then
1601 withval="$with_cross_host"
1602
1603 fi;
1604
1605 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1606 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1607 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1608 if test "${enable_version_specific_runtime_libs+set}" = set; then
1609 enableval="$enable_version_specific_runtime_libs"
1610 case "$enableval" in
1611 yes) version_specific_libs=yes ;;
1612 no) version_specific_libs=no ;;
1613 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1614 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1615 { (exit 1); exit 1; }; };;
1616 esac
1617 else
1618 version_specific_libs=no
1619 fi;
1620 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1621 echo "${ECHO_T}$version_specific_libs" >&6
1622
1623 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1624 if test "${enable_objc_gc+set}" = set; then
1625 enableval="$enable_objc_gc"
1626 case $enable_objc_gc in
1627 no)
1628 OBJC_BOEHM_GC=''
1629 OBJC_BOEHM_GC_INCLUDES=''
1630 ;;
1631 *)
1632 OBJC_BOEHM_GC=libobjc_gc.la
1633 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1634 ;;
1635 esac
1636 else
1637 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
1638 fi;
1639
1640
1641
1642 # -----------
1643 # Directories
1644 # -----------
1645
1646 # Find the rest of the source tree framework.
1647 # Default to --enable-multilib
1648 # Check whether --enable-multilib or --disable-multilib was given.
1649 if test "${enable_multilib+set}" = set; then
1650 enableval="$enable_multilib"
1651 case "$enableval" in
1652 yes) multilib=yes ;;
1653 no) multilib=no ;;
1654 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1655 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1656 { (exit 1); exit 1; }; } ;;
1657 esac
1658 else
1659 multilib=yes
1660 fi;
1661
1662 # We may get other options which we leave undocumented:
1663 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1664 # See config-ml.in if you want the gory details.
1665
1666 if test "$srcdir" = "."; then
1667 if test "$with_target_subdir" != "."; then
1668 multi_basedir="$srcdir/$with_multisrctop../.."
1669 else
1670 multi_basedir="$srcdir/$with_multisrctop.."
1671 fi
1672 else
1673 multi_basedir="$srcdir/.."
1674 fi
1675
1676
1677 # Even if the default multilib is not a cross compilation,
1678 # it may be that some of the other multilibs are.
1679 if test $cross_compiling = no && test $multilib = yes \
1680 && test "x${with_multisubdir}" != x ; then
1681 cross_compiling=maybe
1682 fi
1683
1684 ac_config_commands="$ac_config_commands default-1"
1685
1686
1687 echo "$as_me:$LINENO: checking host system type" >&5
1688 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1689 if test "${ac_cv_host+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 ac_cv_host_alias=$host_alias
1693 test -z "$ac_cv_host_alias" &&
1694 ac_cv_host_alias=$ac_cv_build_alias
1695 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1696 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1697 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1698 { (exit 1); exit 1; }; }
1699
1700 fi
1701 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1702 echo "${ECHO_T}$ac_cv_host" >&6
1703 host=$ac_cv_host
1704 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1705 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1706 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1707
1708
1709 echo "$as_me:$LINENO: checking target system type" >&5
1710 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1711 if test "${ac_cv_target+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714 ac_cv_target_alias=$target_alias
1715 test "x$ac_cv_target_alias" = "x" &&
1716 ac_cv_target_alias=$ac_cv_host_alias
1717 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1718 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1719 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1720 { (exit 1); exit 1; }; }
1721
1722 fi
1723 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1724 echo "${ECHO_T}$ac_cv_target" >&6
1725 target=$ac_cv_target
1726 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1727 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1728 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1729
1730
1731 # The aliases save the names the user supplied, while $host etc.
1732 # will get canonicalized.
1733 test -n "$target_alias" &&
1734 test "$program_prefix$program_suffix$program_transform_name" = \
1735 NONENONEs,x,x, &&
1736 program_prefix=${target_alias}-
1737
1738
1739
1740 # Export source directory.
1741 # These need to be absolute paths, yet at the same time need to
1742 # canonicalize only relative paths, because then amd will not unmount
1743 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1744 case $srcdir in
1745 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1746 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1747 esac
1748
1749
1750 # Calculate toolexeclibdir
1751 # Also toolexecdir, though it's only used in toolexeclibdir
1752 case ${version_specific_libs} in
1753 yes)
1754 # Need the gcc compiler version to know where to install libraries
1755 # and header files if --enable-version-specific-runtime-libs option
1756 # is selected.
1757 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1758 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1759 ;;
1760 no)
1761 if test -n "$with_cross_host" &&
1762 test x"$with_cross_host" != x"no"; then
1763 # Install a library built with a cross compiler in tooldir, not libdir.
1764 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1765 toolexeclibdir='$(toolexecdir)/lib'
1766 else
1767 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1768 toolexeclibdir='$(libdir)'
1769 fi
1770 multi_os_directory=`$CC -print-multi-os-directory`
1771 case $multi_os_directory in
1772 .) ;; # Avoid trailing /.
1773 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1774 esac
1775 ;;
1776 esac
1777
1778
1779
1780 # Figure out if we want to name the include directory and the
1781 # library name changes differently.
1782 includedirname=include
1783 libsuffix=
1784 case "${host}" in
1785 *-darwin*)
1786 # Darwin is the only target so far that needs a different include directory.
1787 includedirname=include-gnu-runtime
1788 libsuffix=-gnu
1789 ;;
1790 esac
1791
1792
1793
1794 ac_config_headers="$ac_config_headers config.h"
1795
1796
1797 # --------
1798 # Programs
1799 # --------
1800
1801
1802
1803 # We must force CC to /not/ be a precious variable; otherwise
1804 # the wrong, non-multilib-adjusted value will be used in multilibs.
1805 # As a side effect, we have to subst CFLAGS ourselves.
1806
1807
1808 ac_ext=c
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 if test -n "$ac_tool_prefix"; then
1814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 break 2
1834 fi
1835 done
1836 done
1837
1838 fi
1839 fi
1840 CC=$ac_cv_prog_CC
1841 if test -n "$CC"; then
1842 echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1844 else
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1847 fi
1848
1849 fi
1850 if test -z "$ac_cv_prog_CC"; then
1851 ac_ct_CC=$CC
1852 # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$ac_ct_CC"; then
1860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_ac_ct_CC="gcc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1872 fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1879 if test -n "$ac_ct_CC"; then
1880 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1881 echo "${ECHO_T}$ac_ct_CC" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887 CC=$ac_ct_CC
1888 else
1889 CC="$ac_cv_prog_CC"
1890 fi
1891
1892 if test -z "$CC"; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1895 set dummy ${ac_tool_prefix}cc; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901 if test -n "$CC"; then
1902 ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_CC="${ac_tool_prefix}cc"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1914 fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 CC=$ac_cv_prog_CC
1921 if test -n "$CC"; then
1922 echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6
1924 else
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929 fi
1930 if test -z "$ac_cv_prog_CC"; then
1931 ac_ct_CC=$CC
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test -n "$ac_ct_CC"; then
1940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_CC="cc"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953 done
1954 done
1955
1956 fi
1957 fi
1958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959 if test -n "$ac_ct_CC"; then
1960 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961 echo "${ECHO_T}$ac_ct_CC" >&6
1962 else
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967 CC=$ac_ct_CC
1968 else
1969 CC="$ac_cv_prog_CC"
1970 fi
1971
1972 fi
1973 if test -z "$CC"; then
1974 # Extract the first word of "cc", so it can be a program name with args.
1975 set dummy cc; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1983 else
1984 ac_prog_rejected=no
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1993 ac_prog_rejected=yes
1994 continue
1995 fi
1996 ac_cv_prog_CC="cc"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
1999 fi
2000 done
2001 done
2002
2003 if test $ac_prog_rejected = yes; then
2004 # We found a bogon in the path, so make sure we never use it.
2005 set dummy $ac_cv_prog_CC
2006 shift
2007 if test $# != 0; then
2008 # We chose a different compiler from the bogus one.
2009 # However, it has the same basename, so the bogon will be chosen
2010 # first if we set CC to just the basename; use the full file name.
2011 shift
2012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013 fi
2014 fi
2015 fi
2016 fi
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019 echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6
2021 else
2022 echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2024 fi
2025
2026 fi
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 for ac_prog in cl
2030 do
2031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 break 2
2051 fi
2052 done
2053 done
2054
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059 echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6
2061 else
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2064 fi
2065
2066 test -n "$CC" && break
2067 done
2068 fi
2069 if test -z "$CC"; then
2070 ac_ct_CC=$CC
2071 for ac_prog in cl
2072 do
2073 # Extract the first word of "$ac_prog", so it can be a program name with args.
2074 set dummy $ac_prog; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 else
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_prog_ac_ct_CC="$ac_prog"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2093 fi
2094 done
2095 done
2096
2097 fi
2098 fi
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6
2103 else
2104 echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6
2106 fi
2107
2108 test -n "$ac_ct_CC" && break
2109 done
2110
2111 CC=$ac_ct_CC
2112 fi
2113
2114 fi
2115
2116
2117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&5
2119 echo "$as_me: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&2;}
2121 { (exit 1); exit 1; }; }
2122
2123 # Provide some information about the compiler.
2124 echo "$as_me:$LINENO:" \
2125 "checking for C compiler version" >&5
2126 ac_compiler=`set X $ac_compile; echo $2`
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2128 (eval $ac_compiler --version </dev/null >&5) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2133 (eval $ac_compiler -v </dev/null >&5) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }
2137 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2138 (eval $ac_compiler -V </dev/null >&5) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h. */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2149
2150 int
2151 main ()
2152 {
2153
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 # FIXME: Cleanup?
2159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2160 (eval $ac_link) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
2164 gcc_no_link=no
2165 else
2166 gcc_no_link=yes
2167 fi
2168
2169 if test x$gcc_no_link = xyes; then
2170 # Setting cross_compile will disable run tests; it will
2171 # also disable AC_CHECK_FILE but that's generally
2172 # correct if we can't link.
2173 cross_compiling=yes
2174 EXEEXT=
2175 else
2176 cat >conftest.$ac_ext <<_ACEOF
2177 /* confdefs.h. */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2182
2183 int
2184 main ()
2185 {
2186
2187 ;
2188 return 0;
2189 }
2190 _ACEOF
2191 ac_clean_files_save=$ac_clean_files
2192 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2193 # Try to create an executable without -o first, disregard a.out.
2194 # It will help us diagnose broken compilers, and finding out an intuition
2195 # of exeext.
2196 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2198 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2200 (eval $ac_link_default) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 # Find the output, starting from the most likely. This scheme is
2205 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2206 # resort.
2207
2208 # Be careful to initialize this variable, since it used to be cached.
2209 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2210 ac_cv_exeext=
2211 # b.out is created by i960 compilers.
2212 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2213 do
2214 test -f "$ac_file" || continue
2215 case $ac_file in
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2217 ;;
2218 conftest.$ac_ext )
2219 # This is the source file.
2220 ;;
2221 [ab].out )
2222 # We found the default executable, but exeext='' is most
2223 # certainly right.
2224 break;;
2225 *.* )
2226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # FIXME: I believe we export ac_cv_exeext for Libtool,
2228 # but it would be cool to find out if it's true. Does anybody
2229 # maintain Libtool? --akim.
2230 export ac_cv_exeext
2231 break;;
2232 * )
2233 break;;
2234 esac
2235 done
2236 else
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: C compiler cannot create executables
2243 See \`config.log' for more details." >&2;}
2244 { (exit 77); exit 77; }; }
2245 fi
2246
2247 ac_exeext=$ac_cv_exeext
2248 echo "$as_me:$LINENO: result: $ac_file" >&5
2249 echo "${ECHO_T}$ac_file" >&6
2250
2251 # Check the compiler produces executables we can run. If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256 # If not cross compiling, check that we can run a simple program.
2257 if test "$cross_compiling" != yes; then
2258 if { ac_try='./$ac_file'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 cross_compiling=no
2265 else
2266 if test "$cross_compiling" = maybe; then
2267 cross_compiling=yes
2268 else
2269 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2276 fi
2277 fi
2278 fi
2279 echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6
2281
2282 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283 ac_clean_files=$ac_clean_files_save
2284 # Check the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2288 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6
2290
2291 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294 (eval $ac_link) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303 test -f "$ac_file" || continue
2304 case $ac_file in
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307 export ac_cv_exeext
2308 break;;
2309 * ) break;;
2310 esac
2311 done
2312 else
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2318 fi
2319
2320 rm -f conftest$ac_cv_exeext
2321 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6
2323
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2326 ac_exeext=$EXEEXT
2327 fi
2328 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2330 if test "${ac_cv_objext+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h. */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2339
2340 int
2341 main ()
2342 {
2343
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.o conftest.obj
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; then
2354 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2355 case $ac_file in
2356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2358 break;;
2359 esac
2360 done
2361 else
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2366 See \`config.log' for more details." >&5
2367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&2;}
2369 { (exit 1); exit 1; }; }
2370 fi
2371
2372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2373 fi
2374 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2375 echo "${ECHO_T}$ac_cv_objext" >&6
2376 OBJEXT=$ac_cv_objext
2377 ac_objext=$OBJEXT
2378 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h. */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2389
2390 int
2391 main ()
2392 {
2393 #ifndef __GNUC__
2394 choke me
2395 #endif
2396
2397 ;
2398 return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 ac_compiler_gnu=yes
2423 else
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 ac_compiler_gnu=no
2428 fi
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2431
2432 fi
2433 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2434 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2435 GCC=`test $ac_compiler_gnu = yes && echo yes`
2436 ac_test_CFLAGS=${CFLAGS+set}
2437 ac_save_CFLAGS=$CFLAGS
2438 CFLAGS="-g"
2439 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h. */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450
2451 int
2452 main ()
2453 {
2454
2455 ;
2456 return 0;
2457 }
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>conftest.er1
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_cv_prog_cc_g=yes
2481 else
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 ac_cv_prog_cc_g=no
2486 fi
2487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488 fi
2489 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2490 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2491 if test "$ac_test_CFLAGS" = set; then
2492 CFLAGS=$ac_save_CFLAGS
2493 elif test $ac_cv_prog_cc_g = yes; then
2494 if test "$GCC" = yes; then
2495 CFLAGS="-g -O2"
2496 else
2497 CFLAGS="-g"
2498 fi
2499 else
2500 if test "$GCC" = yes; then
2501 CFLAGS="-O2"
2502 else
2503 CFLAGS=
2504 fi
2505 fi
2506 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2507 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 ac_cv_prog_cc_stdc=no
2512 ac_save_CC=$CC
2513 cat >conftest.$ac_ext <<_ACEOF
2514 /* confdefs.h. */
2515 _ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2519 #include <stdarg.h>
2520 #include <stdio.h>
2521 #include <sys/types.h>
2522 #include <sys/stat.h>
2523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2524 struct buf { int x; };
2525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2526 static char *e (p, i)
2527 char **p;
2528 int i;
2529 {
2530 return p[i];
2531 }
2532 static char *f (char * (*g) (char **, int), char **p, ...)
2533 {
2534 char *s;
2535 va_list v;
2536 va_start (v,p);
2537 s = g (p, va_arg (v,int));
2538 va_end (v);
2539 return s;
2540 }
2541
2542 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2543 function prototypes and stuff, but not '\xHH' hex character constants.
2544 These don't provoke an error unfortunately, instead are silently treated
2545 as 'x'. The following induces an error, until -std1 is added to get
2546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2547 array size at least. It's necessary to write '\x00'==0 to get something
2548 that's true only with -std1. */
2549 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2550
2551 int test (int i, double x);
2552 struct s1 {int (*f) (int a);};
2553 struct s2 {int (*f) (double a);};
2554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2555 int argc;
2556 char **argv;
2557 int
2558 main ()
2559 {
2560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565 # Don't try gcc -ansi; that turns off useful extensions and
2566 # breaks some systems' header files.
2567 # AIX -qlanglvl=ansi
2568 # Ultrix and OSF/1 -std1
2569 # HP-UX 10.20 and later -Ae
2570 # HP-UX older versions -Aa -D_HPUX_SOURCE
2571 # SVR4 -Xc -D__EXTENSIONS__
2572 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2573 do
2574 CC="$ac_save_CC $ac_arg"
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>conftest.er1
2578 ac_status=$?
2579 grep -v '^ *+' conftest.er1 >conftest.err
2580 rm -f conftest.er1
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 ac_cv_prog_cc_stdc=$ac_arg
2597 break
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602 fi
2603 rm -f conftest.err conftest.$ac_objext
2604 done
2605 rm -f conftest.$ac_ext conftest.$ac_objext
2606 CC=$ac_save_CC
2607
2608 fi
2609
2610 case "x$ac_cv_prog_cc_stdc" in
2611 x|xno)
2612 echo "$as_me:$LINENO: result: none needed" >&5
2613 echo "${ECHO_T}none needed" >&6 ;;
2614 *)
2615 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2617 CC="$CC $ac_cv_prog_cc_stdc" ;;
2618 esac
2619
2620 # Some people use a C++ compiler to compile C. Since we use `exit',
2621 # in C++ we need to declare it. In case someone uses the same compiler
2622 # for both compiling C and C++ we need to have the C++ compiler decide
2623 # the declaration of exit, since it's the most demanding environment.
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #ifndef __cplusplus
2626 choke me
2627 #endif
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>conftest.er1
2632 ac_status=$?
2633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; } &&
2644 { ac_try='test -s conftest.$ac_objext'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 for ac_declaration in \
2651 '' \
2652 'extern "C" void std::exit (int) throw (); using std::exit;' \
2653 'extern "C" void std::exit (int); using std::exit;' \
2654 'extern "C" void exit (int) throw ();' \
2655 'extern "C" void exit (int);' \
2656 'void exit (int);'
2657 do
2658 cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2664 $ac_declaration
2665 #include <stdlib.h>
2666 int
2667 main ()
2668 {
2669 exit (42);
2670 ;
2671 return 0;
2672 }
2673 _ACEOF
2674 rm -f conftest.$ac_objext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676 (eval $ac_compile) 2>conftest.er1
2677 ac_status=$?
2678 grep -v '^ *+' conftest.er1 >conftest.err
2679 rm -f conftest.er1
2680 cat conftest.err >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } &&
2683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 (eval $ac_try) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; } &&
2689 { ac_try='test -s conftest.$ac_objext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 :
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 continue
2701 fi
2702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703 cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h. */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2709 $ac_declaration
2710 int
2711 main ()
2712 {
2713 exit (42);
2714 ;
2715 return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 break
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 done
2747 rm -f conftest*
2748 if test -n "$ac_declaration"; then
2749 echo '#ifdef __cplusplus' >>confdefs.h
2750 echo $ac_declaration >>confdefs.h
2751 echo '#endif' >>confdefs.h
2752 fi
2753
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 fi
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766
2767
2768 # extra LD Flags which are required for targets
2769 case "${host}" in
2770 *-darwin*)
2771 # Darwin needs -single_module when linking libobjc
2772 extra_ldflags_libobjc=-Wl,-single_module
2773 ;;
2774 esac
2775
2776
2777
2778
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}as; ac_word=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_AS+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 if test -n "$AS"; then
2788 ac_cv_prog_AS="$AS" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_AS="${ac_tool_prefix}as"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803
2804 fi
2805 fi
2806 AS=$ac_cv_prog_AS
2807 if test -n "$AS"; then
2808 echo "$as_me:$LINENO: result: $AS" >&5
2809 echo "${ECHO_T}$AS" >&6
2810 else
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2813 fi
2814
2815 fi
2816 if test -z "$ac_cv_prog_AS"; then
2817 ac_ct_AS=$AS
2818 # Extract the first word of "as", so it can be a program name with args.
2819 set dummy as; ac_word=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825 if test -n "$ac_ct_AS"; then
2826 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_AS="as"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841
2842 fi
2843 fi
2844 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2845 if test -n "$ac_ct_AS"; then
2846 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2847 echo "${ECHO_T}$ac_ct_AS" >&6
2848 else
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2851 fi
2852
2853 AS=$ac_ct_AS
2854 else
2855 AS="$ac_cv_prog_AS"
2856 fi
2857
2858 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2860 set dummy ${ac_tool_prefix}ar; ac_word=$2
2861 echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863 if test "${ac_cv_prog_AR+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 if test -n "$AR"; then
2867 ac_cv_prog_AR="$AR" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_AR="${ac_tool_prefix}ar"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882
2883 fi
2884 fi
2885 AR=$ac_cv_prog_AR
2886 if test -n "$AR"; then
2887 echo "$as_me:$LINENO: result: $AR" >&5
2888 echo "${ECHO_T}$AR" >&6
2889 else
2890 echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2892 fi
2893
2894 fi
2895 if test -z "$ac_cv_prog_AR"; then
2896 ac_ct_AR=$AR
2897 # Extract the first word of "ar", so it can be a program name with args.
2898 set dummy ar; ac_word=$2
2899 echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2901 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 if test -n "$ac_ct_AR"; then
2905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_ac_ct_AR="ar"
2915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918 done
2919 done
2920
2921 fi
2922 fi
2923 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2924 if test -n "$ac_ct_AR"; then
2925 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2926 echo "${ECHO_T}$ac_ct_AR" >&6
2927 else
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2930 fi
2931
2932 AR=$ac_ct_AR
2933 else
2934 AR="$ac_cv_prog_AR"
2935 fi
2936
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2940 echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 if test "${ac_cv_prog_RANLIB+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945 if test -n "$RANLIB"; then
2946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961
2962 fi
2963 fi
2964 RANLIB=$ac_cv_prog_RANLIB
2965 if test -n "$RANLIB"; then
2966 echo "$as_me:$LINENO: result: $RANLIB" >&5
2967 echo "${ECHO_T}$RANLIB" >&6
2968 else
2969 echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6
2971 fi
2972
2973 fi
2974 if test -z "$ac_cv_prog_RANLIB"; then
2975 ac_ct_RANLIB=$RANLIB
2976 # Extract the first word of "ranlib", so it can be a program name with args.
2977 set dummy ranlib; ac_word=$2
2978 echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983 if test -n "$ac_ct_RANLIB"; then
2984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_ac_ct_RANLIB="ranlib"
2994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999
3000 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3001 fi
3002 fi
3003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3004 if test -n "$ac_ct_RANLIB"; then
3005 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3006 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3007 else
3008 echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6
3010 fi
3011
3012 RANLIB=$ac_ct_RANLIB
3013 else
3014 RANLIB="$ac_cv_prog_RANLIB"
3015 fi
3016
3017 # Find a good install program. We prefer a C program (faster),
3018 # so one script is as good as another. But avoid the broken or
3019 # incompatible versions:
3020 # SysV /etc/install, /usr/sbin/install
3021 # SunOS /usr/etc/install
3022 # IRIX /sbin/install
3023 # AIX /bin/install
3024 # AmigaOS /C/install, which installs bootblocks on floppy discs
3025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3028 # OS/2's system install, which has a completely different semantic
3029 # ./install, which can be erroneously created by make from ./install.sh.
3030 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3032 if test -z "$INSTALL"; then
3033 if test "${ac_cv_path_install+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 # Account for people who put trailing slashes in PATH elements.
3042 case $as_dir/ in
3043 ./ | .// | /cC/* | \
3044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3045 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3046 /usr/ucb/* ) ;;
3047 *)
3048 # OSF1 and SCO ODT 3.0 have their own names for install.
3049 # Don't use installbsd from OSF since it installs stuff as root
3050 # by default.
3051 for ac_prog in ginstall scoinst install; do
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3054 if test $ac_prog = install &&
3055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3056 # AIX install. It has an incompatible calling convention.
3057 :
3058 elif test $ac_prog = install &&
3059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3060 # program-specific install script used by HP pwplus--don't use.
3061 :
3062 else
3063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3064 break 3
3065 fi
3066 fi
3067 done
3068 done
3069 ;;
3070 esac
3071 done
3072
3073
3074 fi
3075 if test "${ac_cv_path_install+set}" = set; then
3076 INSTALL=$ac_cv_path_install
3077 else
3078 # As a last resort, use the slow shell script. We don't cache a
3079 # path for INSTALL within a source directory, because that will
3080 # break other packages using the cache if that directory is
3081 # removed, or if the path is relative.
3082 INSTALL=$ac_install_sh
3083 fi
3084 fi
3085 echo "$as_me:$LINENO: result: $INSTALL" >&5
3086 echo "${ECHO_T}$INSTALL" >&6
3087
3088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3089 # It thinks the first close brace ends the variable substitution.
3090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3091
3092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3093
3094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3095
3096
3097 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3098 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3099 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3100 if test "${enable_maintainer_mode+set}" = set; then
3101 enableval="$enable_maintainer_mode"
3102 USE_MAINTAINER_MODE=$enableval
3103 else
3104 USE_MAINTAINER_MODE=no
3105 fi;
3106 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3107 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3108
3109
3110 if test $USE_MAINTAINER_MODE = yes; then
3111 MAINTAINER_MODE_TRUE=
3112 MAINTAINER_MODE_FALSE='#'
3113 else
3114 MAINTAINER_MODE_TRUE='#'
3115 MAINTAINER_MODE_FALSE=
3116 fi
3117
3118 MAINT=$MAINTAINER_MODE_TRUE
3119
3120
3121
3122 # Enable Win32 DLL on MS Windows - FIXME
3123 enable_win32_dll=yes
3124
3125 case $host in
3126 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}as; ac_word=$2
3130 echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132 if test "${ac_cv_prog_AS+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 if test -n "$AS"; then
3136 ac_cv_prog_AS="$AS" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_AS="${ac_tool_prefix}as"
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149 done
3150 done
3151
3152 fi
3153 fi
3154 AS=$ac_cv_prog_AS
3155 if test -n "$AS"; then
3156 echo "$as_me:$LINENO: result: $AS" >&5
3157 echo "${ECHO_T}$AS" >&6
3158 else
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3161 fi
3162
3163 fi
3164 if test -z "$ac_cv_prog_AS"; then
3165 ac_ct_AS=$AS
3166 # Extract the first word of "as", so it can be a program name with args.
3167 set dummy as; ac_word=$2
3168 echo "$as_me:$LINENO: checking for $ac_word" >&5
3169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 if test -n "$ac_ct_AS"; then
3174 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_ac_ct_AS="as"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187 done
3188 done
3189
3190 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3191 fi
3192 fi
3193 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3194 if test -n "$ac_ct_AS"; then
3195 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3196 echo "${ECHO_T}$ac_ct_AS" >&6
3197 else
3198 echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3200 fi
3201
3202 AS=$ac_ct_AS
3203 else
3204 AS="$ac_cv_prog_AS"
3205 fi
3206
3207 if test -n "$ac_tool_prefix"; then
3208 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3209 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3210 echo "$as_me:$LINENO: checking for $ac_word" >&5
3211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3212 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 if test -n "$DLLTOOL"; then
3216 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3228 fi
3229 done
3230 done
3231
3232 fi
3233 fi
3234 DLLTOOL=$ac_cv_prog_DLLTOOL
3235 if test -n "$DLLTOOL"; then
3236 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3237 echo "${ECHO_T}$DLLTOOL" >&6
3238 else
3239 echo "$as_me:$LINENO: result: no" >&5
3240 echo "${ECHO_T}no" >&6
3241 fi
3242
3243 fi
3244 if test -z "$ac_cv_prog_DLLTOOL"; then
3245 ac_ct_DLLTOOL=$DLLTOOL
3246 # Extract the first word of "dlltool", so it can be a program name with args.
3247 set dummy dlltool; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253 if test -n "$ac_ct_DLLTOOL"; then
3254 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269
3270 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3271 fi
3272 fi
3273 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3274 if test -n "$ac_ct_DLLTOOL"; then
3275 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3276 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3277 else
3278 echo "$as_me:$LINENO: result: no" >&5
3279 echo "${ECHO_T}no" >&6
3280 fi
3281
3282 DLLTOOL=$ac_ct_DLLTOOL
3283 else
3284 DLLTOOL="$ac_cv_prog_DLLTOOL"
3285 fi
3286
3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3289 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295 if test -n "$OBJDUMP"; then
3296 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3308 fi
3309 done
3310 done
3311
3312 fi
3313 fi
3314 OBJDUMP=$ac_cv_prog_OBJDUMP
3315 if test -n "$OBJDUMP"; then
3316 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3317 echo "${ECHO_T}$OBJDUMP" >&6
3318 else
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3321 fi
3322
3323 fi
3324 if test -z "$ac_cv_prog_OBJDUMP"; then
3325 ac_ct_OBJDUMP=$OBJDUMP
3326 # Extract the first word of "objdump", so it can be a program name with args.
3327 set dummy objdump; ac_word=$2
3328 echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 if test -n "$ac_ct_OBJDUMP"; then
3334 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349
3350 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3351 fi
3352 fi
3353 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3354 if test -n "$ac_ct_OBJDUMP"; then
3355 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3356 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3357 else
3358 echo "$as_me:$LINENO: result: no" >&5
3359 echo "${ECHO_T}no" >&6
3360 fi
3361
3362 OBJDUMP=$ac_ct_OBJDUMP
3363 else
3364 OBJDUMP="$ac_cv_prog_OBJDUMP"
3365 fi
3366
3367 ;;
3368 esac
3369
3370 test -z "$AS" && AS=as
3371
3372
3373
3374
3375
3376 test -z "$DLLTOOL" && DLLTOOL=dlltool
3377
3378
3379
3380
3381
3382 test -z "$OBJDUMP" && OBJDUMP=objdump
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393 macro_version='2.1a'
3394 macro_revision='1.2435'
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407 ltmain="$ac_aux_dir/ltmain.sh"
3408
3409 # Set options
3410
3411 enable_dlopen=no
3412
3413
3414
3415 # Check whether --enable-shared or --disable-shared was given.
3416 if test "${enable_shared+set}" = set; then
3417 enableval="$enable_shared"
3418 p=${PACKAGE-default}
3419 case $enableval in
3420 yes) enable_shared=yes ;;
3421 no) enable_shared=no ;;
3422 *)
3423 enable_shared=no
3424 # Look at the argument we got. We use all the common list separators.
3425 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3426 for pkg in $enableval; do
3427 IFS="$lt_save_ifs"
3428 if test "X$pkg" = "X$p"; then
3429 enable_shared=yes
3430 fi
3431 done
3432 IFS="$lt_save_ifs"
3433 ;;
3434 esac
3435 else
3436 enable_shared=yes
3437 fi;
3438
3439
3440
3441
3442
3443
3444
3445
3446 # Check whether --enable-static or --disable-static was given.
3447 if test "${enable_static+set}" = set; then
3448 enableval="$enable_static"
3449 p=${PACKAGE-default}
3450 case $enableval in
3451 yes) enable_static=yes ;;
3452 no) enable_static=no ;;
3453 *)
3454 enable_static=no
3455 # Look at the argument we got. We use all the common list separators.
3456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3457 for pkg in $enableval; do
3458 IFS="$lt_save_ifs"
3459 if test "X$pkg" = "X$p"; then
3460 enable_static=yes
3461 fi
3462 done
3463 IFS="$lt_save_ifs"
3464 ;;
3465 esac
3466 else
3467 enable_static=yes
3468 fi;
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478 # Check whether --with-pic or --without-pic was given.
3479 if test "${with_pic+set}" = set; then
3480 withval="$with_pic"
3481 pic_mode="$withval"
3482 else
3483 pic_mode=default
3484 fi;
3485
3486 test -z "$pic_mode" && pic_mode=default
3487
3488
3489
3490
3491
3492
3493
3494 # Check whether --enable-fast-install or --disable-fast-install was given.
3495 if test "${enable_fast_install+set}" = set; then
3496 enableval="$enable_fast_install"
3497 p=${PACKAGE-default}
3498 case $enableval in
3499 yes) enable_fast_install=yes ;;
3500 no) enable_fast_install=no ;;
3501 *)
3502 enable_fast_install=no
3503 # Look at the argument we got. We use all the common list separators.
3504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3505 for pkg in $enableval; do
3506 IFS="$lt_save_ifs"
3507 if test "X$pkg" = "X$p"; then
3508 enable_fast_install=yes
3509 fi
3510 done
3511 IFS="$lt_save_ifs"
3512 ;;
3513 esac
3514 else
3515 enable_fast_install=yes
3516 fi;
3517
3518
3519
3520
3521
3522
3523
3524
3525 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3526 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3527 if test "${lt_cv_path_SED+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 # Loop through the user's path and test for sed and gsed.
3531 # Then use that list of sed's as ones to test for truncation.
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 lt_ac_prog in sed gsed; do
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3540 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3541 fi
3542 done
3543 done
3544 done
3545 IFS=$as_save_IFS
3546 lt_ac_max=0
3547 lt_ac_count=0
3548 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3549 # along with /bin/sed that truncates output.
3550 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3551 test ! -f $lt_ac_sed && continue
3552 cat /dev/null > conftest.in
3553 lt_ac_count=0
3554 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3555 # Check for GNU sed and select it if it is found.
3556 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3557 lt_cv_path_SED=$lt_ac_sed
3558 break
3559 fi
3560 while true; do
3561 cat conftest.in conftest.in >conftest.tmp
3562 mv conftest.tmp conftest.in
3563 cp conftest.in conftest.nl
3564 echo >>conftest.nl
3565 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3566 cmp -s conftest.out conftest.nl || break
3567 # 10000 chars as input seems more than enough
3568 test $lt_ac_count -gt 10 && break
3569 lt_ac_count=`expr $lt_ac_count + 1`
3570 if test $lt_ac_count -gt $lt_ac_max; then
3571 lt_ac_max=$lt_ac_count
3572 lt_cv_path_SED=$lt_ac_sed
3573 fi
3574 done
3575 done
3576
3577 fi
3578
3579 SED=$lt_cv_path_SED
3580
3581 echo "$as_me:$LINENO: result: $SED" >&5
3582 echo "${ECHO_T}$SED" >&6
3583
3584 test -z "$SED" && SED=sed
3585 Xsed="$SED -e 1s/^X//"
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597 echo "$as_me:$LINENO: checking for egrep" >&5
3598 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3599 if test "${ac_cv_prog_egrep+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3603 then ac_cv_prog_egrep='grep -E'
3604 else ac_cv_prog_egrep='egrep'
3605 fi
3606 fi
3607 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3608 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3609 EGREP=$ac_cv_prog_egrep
3610
3611
3612 echo "$as_me:$LINENO: checking for fgrep" >&5
3613 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3614 if test "${ac_cv_prog_fgrep+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3618 then ac_cv_prog_fgrep='grep -F'
3619 else ac_cv_prog_fgrep='fgrep'
3620 fi
3621 fi
3622 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3623 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3624 FGREP=$ac_cv_prog_fgrep
3625
3626
3627 test -z "$GREP" && GREP=grep
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3648 if test "${with_gnu_ld+set}" = set; then
3649 withval="$with_gnu_ld"
3650 test "$withval" = no || with_gnu_ld=yes
3651 else
3652 with_gnu_ld=no
3653 fi;
3654 ac_prog=ld
3655 if test "$GCC" = yes; then
3656 # Check if gcc -print-prog-name=ld gives a path.
3657 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3658 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3659 case $host in
3660 *-*-mingw*)
3661 # gcc leaves a trailing carriage return which upsets mingw
3662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3663 *)
3664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3665 esac
3666 case $ac_prog in
3667 # Accept absolute paths.
3668 [\\/]* | ?:[\\/]*)
3669 re_direlt='/[^/][^/]*/\.\./'
3670 # Canonicalize the pathname of ld
3671 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3672 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3673 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3674 done
3675 test -z "$LD" && LD="$ac_prog"
3676 ;;
3677 "")
3678 # If it fails, then pretend we aren't using GCC.
3679 ac_prog=ld
3680 ;;
3681 *)
3682 # If it is relative, then search for the first ld in PATH.
3683 with_gnu_ld=unknown
3684 ;;
3685 esac
3686 elif test "$with_gnu_ld" = yes; then
3687 echo "$as_me:$LINENO: checking for GNU ld" >&5
3688 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3689 else
3690 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3691 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3692 fi
3693 if test "${lt_cv_path_LD+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test -z "$LD"; then
3697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3698 for ac_dir in $PATH; do
3699 IFS="$lt_save_ifs"
3700 test -z "$ac_dir" && ac_dir=.
3701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3702 lt_cv_path_LD="$ac_dir/$ac_prog"
3703 # Check to see if the program is GNU ld. I'd rather use --version,
3704 # but apparently some variants of GNU ld only accept -v.
3705 # Break only if it was the GNU/non-GNU ld that we prefer.
3706 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3707 *GNU* | *'with BFD'*)
3708 test "$with_gnu_ld" != no && break
3709 ;;
3710 *)
3711 test "$with_gnu_ld" != yes && break
3712 ;;
3713 esac
3714 fi
3715 done
3716 IFS="$lt_save_ifs"
3717 else
3718 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3719 fi
3720 fi
3721
3722 LD="$lt_cv_path_LD"
3723 if test -n "$LD"; then
3724 echo "$as_me:$LINENO: result: $LD" >&5
3725 echo "${ECHO_T}$LD" >&6
3726 else
3727 echo "$as_me:$LINENO: result: no" >&5
3728 echo "${ECHO_T}no" >&6
3729 fi
3730 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3731 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3732 { (exit 1); exit 1; }; }
3733 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3734 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3735 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3739 case `$LD -v 2>&1 </dev/null` in
3740 *GNU* | *'with BFD'*)
3741 lt_cv_prog_gnu_ld=yes
3742 ;;
3743 *)
3744 lt_cv_prog_gnu_ld=no
3745 ;;
3746 esac
3747 fi
3748 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3749 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3750 with_gnu_ld=$lt_cv_prog_gnu_ld
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3762 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3763 if test "${lt_cv_path_NM+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 if test -n "$NM"; then
3767 # Let the user override the test.
3768 lt_cv_path_NM="$NM"
3769 else
3770 lt_nm_to_check="${ac_tool_prefix}nm"
3771 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3772 lt_nm_to_check="$lt_nm_to_check nm"
3773 fi
3774 for lt_tmp_nm in $lt_nm_to_check; do
3775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3776 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3777 IFS="$lt_save_ifs"
3778 test -z "$ac_dir" && ac_dir=.
3779 tmp_nm="$ac_dir/$lt_tmp_nm"
3780 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3781 # Check to see if the nm accepts a BSD-compat flag.
3782 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3783 # nm: unknown option "B" ignored
3784 # Tru64's nm complains that /dev/null is an invalid object file
3785 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3786 */dev/null* | *'Invalid file or object type'*)
3787 lt_cv_path_NM="$tmp_nm -B"
3788 break
3789 ;;
3790 *)
3791 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3792 */dev/null*)
3793 lt_cv_path_NM="$tmp_nm -p"
3794 break
3795 ;;
3796 *)
3797 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3798 continue # so that we can try to find one that supports BSD flags
3799 ;;
3800 esac
3801 ;;
3802 esac
3803 fi
3804 done
3805 IFS="$lt_save_ifs"
3806 done
3807 : ${lt_cv_path_NM=no}
3808 fi
3809 fi
3810 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3811 echo "${ECHO_T}$lt_cv_path_NM" >&6
3812 if test "$lt_cv_path_NM" != "no"; then
3813 NM="$lt_cv_path_NM"
3814 else
3815 # Didn't find any BSD compatible name lister, look for dumpbin.
3816 if test -n "$ac_tool_prefix"; then
3817 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3818 do
3819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3821 echo "$as_me:$LINENO: checking for $ac_word" >&5
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 if test -n "$DUMPBIN"; then
3827 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 break 2
3839 fi
3840 done
3841 done
3842
3843 fi
3844 fi
3845 DUMPBIN=$ac_cv_prog_DUMPBIN
3846 if test -n "$DUMPBIN"; then
3847 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3848 echo "${ECHO_T}$DUMPBIN" >&6
3849 else
3850 echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6
3852 fi
3853
3854 test -n "$DUMPBIN" && break
3855 done
3856 fi
3857 if test -z "$DUMPBIN"; then
3858 ac_ct_DUMPBIN=$DUMPBIN
3859 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3860 do
3861 # Extract the first word of "$ac_prog", so it can be a program name with args.
3862 set dummy $ac_prog; ac_word=$2
3863 echo "$as_me:$LINENO: checking for $ac_word" >&5
3864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3865 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 if test -n "$ac_ct_DUMPBIN"; then
3869 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874 IFS=$as_save_IFS
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 break 2
3881 fi
3882 done
3883 done
3884
3885 fi
3886 fi
3887 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3888 if test -n "$ac_ct_DUMPBIN"; then
3889 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3890 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3891 else
3892 echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894 fi
3895
3896 test -n "$ac_ct_DUMPBIN" && break
3897 done
3898 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3899
3900 DUMPBIN=$ac_ct_DUMPBIN
3901 fi
3902
3903
3904 if test "$DUMPBIN" != ":"; then
3905 NM="$DUMPBIN"
3906 fi
3907 fi
3908 test -z "$NM" && NM=nm
3909
3910
3911
3912
3913
3914
3915 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3916 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3917 if test "${lt_cv_nm_interface+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920 lt_cv_nm_interface="BSD nm"
3921 echo "int some_variable = 0;" > conftest.$ac_ext
3922 (eval echo "\"\$as_me:3922: $ac_compile\"" >&5)
3923 (eval "$ac_compile" 2>conftest.err)
3924 cat conftest.err >&5
3925 (eval echo "\"\$as_me:3925: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3926 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3927 cat conftest.err >&5
3928 (eval echo "\"\$as_me:3928: output\"" >&5)
3929 cat conftest.out >&5
3930 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3931 lt_cv_nm_interface="MS dumpbin"
3932 fi
3933 rm -f conftest*
3934 fi
3935 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3936 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3937
3938 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3939 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3940 LN_S=$as_ln_s
3941 if test "$LN_S" = "ln -s"; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6
3944 else
3945 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3946 echo "${ECHO_T}no, using $LN_S" >&6
3947 fi
3948
3949 # find the maximum length of command line arguments
3950 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3951 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3952 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 i=0
3956 teststring="ABCD"
3957
3958 case $build_os in
3959 msdosdjgpp*)
3960 # On DJGPP, this test can blow up pretty badly due to problems in libc
3961 # (any single argument exceeding 2000 bytes causes a buffer overrun
3962 # during glob expansion). Even if it were fixed, the result of this
3963 # check would be larger than it should be.
3964 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3965 ;;
3966
3967 gnu*)
3968 # Under GNU Hurd, this test is not required because there is
3969 # no limit to the length of command line arguments.
3970 # Libtool will interpret -1 as no limit whatsoever
3971 lt_cv_sys_max_cmd_len=-1;
3972 ;;
3973
3974 cygwin* | mingw*)
3975 # On Win9x/ME, this test blows up -- it succeeds, but takes
3976 # about 5 minutes as the teststring grows exponentially.
3977 # Worse, since 9x/ME are not pre-emptively multitasking,
3978 # you end up with a "frozen" computer, even though with patience
3979 # the test eventually succeeds (with a max line length of 256k).
3980 # Instead, let's just punt: use the minimum linelength reported by
3981 # all of the supported platforms: 8192 (on NT/2K/XP).
3982 lt_cv_sys_max_cmd_len=8192;
3983 ;;
3984
3985 amigaos*)
3986 # On AmigaOS with pdksh, this test takes hours, literally.
3987 # So we just punt and use a minimum line length of 8192.
3988 lt_cv_sys_max_cmd_len=8192;
3989 ;;
3990
3991 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3992 # This has been around since 386BSD, at least. Likely further.
3993 if test -x /sbin/sysctl; then
3994 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3995 elif test -x /usr/sbin/sysctl; then
3996 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3997 else
3998 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3999 fi
4000 # And add a safety zone
4001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4003 ;;
4004
4005 interix*)
4006 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4007 lt_cv_sys_max_cmd_len=196608
4008 ;;
4009
4010 osf*)
4011 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4012 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4013 # nice to cause kernel panics so lets avoid the loop below.
4014 # First set a reasonable default.
4015 lt_cv_sys_max_cmd_len=16384
4016 #
4017 if test -x /sbin/sysconfig; then
4018 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4019 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4020 esac
4021 fi
4022 ;;
4023 sco3.2v5*)
4024 lt_cv_sys_max_cmd_len=102400
4025 ;;
4026 sysv5* | sco5v6* | sysv4.2uw2*)
4027 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4028 if test -n "$kargmax"; then
4029 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4030 else
4031 lt_cv_sys_max_cmd_len=32768
4032 fi
4033 ;;
4034 *)
4035 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4036 if test -n $lt_cv_sys_max_cmd_len; then
4037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4039 else
4040 # Make teststring a little bigger before we do anything with it.
4041 # a 1K string should be a reasonable start.
4042 for i in 1 2 3 4 5 6 7 8 ; do
4043 teststring=$teststring$teststring
4044 done
4045 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4046 # If test is not a shell built-in, we'll probably end up computing a
4047 # maximum length that is only half of the actual maximum length, but
4048 # we can't tell.
4049 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4050 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4051 test $i != 17 # 1/2 MB should be enough
4052 do
4053 i=`expr $i + 1`
4054 teststring=$teststring$teststring
4055 done
4056 # Only check the string length outside the loop.
4057 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4058 teststring=
4059 # Add a significant safety factor because C++ compilers can tack on
4060 # massive amounts of additional arguments before passing them to the
4061 # linker. It appears as though 1/2 is a usable value.
4062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4063 fi
4064 ;;
4065 esac
4066
4067 fi
4068
4069 if test -n $lt_cv_sys_max_cmd_len ; then
4070 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4071 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4072 else
4073 echo "$as_me:$LINENO: result: none" >&5
4074 echo "${ECHO_T}none" >&6
4075 fi
4076 max_cmd_len=$lt_cv_sys_max_cmd_len
4077
4078
4079
4080
4081
4082
4083
4084 : ${CP="cp -f"}
4085 : ${MV="mv -f"}
4086 : ${RM="rm -f"}
4087
4088 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4089 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4090 # Try some XSI features
4091 xsi_shell=no
4092 ( _lt_dummy="a/b/c"
4093 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4094 = c,a/b,, ) >/dev/null 2>&1 \
4095 && xsi_shell=yes
4096 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4097 echo "${ECHO_T}$xsi_shell" >&6
4098
4099
4100 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4101 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4102 lt_shell_append=no
4103 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4104 >/dev/null 2>&1 \
4105 && lt_shell_append=yes
4106 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4107 echo "${ECHO_T}$lt_shell_append" >&6
4108
4109
4110 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4111 lt_unset=unset
4112 else
4113 lt_unset=false
4114 fi
4115
4116
4117
4118
4119
4120 # test EBCDIC or ASCII
4121 case `echo X|tr X '\101'` in
4122 A) # ASCII based system
4123 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4124 lt_SP2NL='tr \040 \012'
4125 lt_NL2SP='tr \015\012 \040\040'
4126 ;;
4127 *) # EBCDIC based system
4128 lt_SP2NL='tr \100 \n'
4129 lt_NL2SP='tr \r\n \100\100'
4130 ;;
4131 esac
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4142 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4143 if test "${lt_cv_ld_reload_flag+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 lt_cv_ld_reload_flag='-r'
4147 fi
4148 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4149 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4150 reload_flag=$lt_cv_ld_reload_flag
4151 case $reload_flag in
4152 "" | " "*) ;;
4153 *) reload_flag=" $reload_flag" ;;
4154 esac
4155 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4156 case $host_os in
4157 darwin*)
4158 if test "$GCC" = yes; then
4159 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4160 else
4161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4162 fi
4163 ;;
4164 esac
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4176 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4177 if test "${lt_cv_deplibs_check_method+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 lt_cv_file_magic_cmd='$MAGIC_CMD'
4181 lt_cv_file_magic_test_file=
4182 lt_cv_deplibs_check_method='unknown'
4183 # Need to set the preceding variable on all platforms that support
4184 # interlibrary dependencies.
4185 # 'none' -- dependencies not supported.
4186 # `unknown' -- same as none, but documents that we really don't know.
4187 # 'pass_all' -- all dependencies passed with no checks.
4188 # 'test_compile' -- check by making test program.
4189 # 'file_magic [[regex]]' -- check by looking for files in library path
4190 # which responds to the $file_magic_cmd with a given extended regex.
4191 # If you have `file' or equivalent on your system and you're not sure
4192 # whether `pass_all' will *always* work, you probably want this one.
4193
4194 case $host_os in
4195 aix4* | aix5*)
4196 lt_cv_deplibs_check_method=pass_all
4197 ;;
4198
4199 beos*)
4200 lt_cv_deplibs_check_method=pass_all
4201 ;;
4202
4203 bsdi[45]*)
4204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4205 lt_cv_file_magic_cmd='/usr/bin/file -L'
4206 lt_cv_file_magic_test_file=/shlib/libc.so
4207 ;;
4208
4209 cygwin*)
4210 # func_win32_libid is a shell function defined in ltmain.sh
4211 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4212 lt_cv_file_magic_cmd='func_win32_libid'
4213 ;;
4214
4215 mingw* | pw32*)
4216 # Base MSYS/MinGW do not provide the 'file' command needed by
4217 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4218 # unless we find 'file', for example because we are cross-compiling.
4219 if ( file / ) >/dev/null 2>&1; then
4220 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4221 lt_cv_file_magic_cmd='func_win32_libid'
4222 else
4223 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4224 lt_cv_file_magic_cmd='$OBJDUMP -f'
4225 fi
4226 ;;
4227
4228 darwin* | rhapsody*)
4229 lt_cv_deplibs_check_method=pass_all
4230 ;;
4231
4232 freebsd* | dragonfly*)
4233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4234 case $host_cpu in
4235 i*86 )
4236 # Not sure whether the presence of OpenBSD here was a mistake.
4237 # Let's accept both of them until this is cleared up.
4238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4239 lt_cv_file_magic_cmd=/usr/bin/file
4240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4241 ;;
4242 esac
4243 else
4244 lt_cv_deplibs_check_method=pass_all
4245 fi
4246 ;;
4247
4248 gnu*)
4249 lt_cv_deplibs_check_method=pass_all
4250 ;;
4251
4252 hpux10.20* | hpux11*)
4253 lt_cv_file_magic_cmd=/usr/bin/file
4254 case $host_cpu in
4255 ia64*)
4256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4257 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4258 ;;
4259 hppa*64*)
4260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4261 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4262 ;;
4263 *)
4264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4265 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4266 ;;
4267 esac
4268 ;;
4269
4270 interix[3-9]*)
4271 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4273 ;;
4274
4275 irix5* | irix6* | nonstopux*)
4276 case $LD in
4277 *-32|*"-32 ") libmagic=32-bit;;
4278 *-n32|*"-n32 ") libmagic=N32;;
4279 *-64|*"-64 ") libmagic=64-bit;;
4280 *) libmagic=never-match;;
4281 esac
4282 lt_cv_deplibs_check_method=pass_all
4283 ;;
4284
4285 # This must be Linux ELF.
4286 linux* | k*bsd*-gnu)
4287 lt_cv_deplibs_check_method=pass_all
4288 ;;
4289
4290 netbsd*)
4291 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4293 else
4294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4295 fi
4296 ;;
4297
4298 newos6*)
4299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4300 lt_cv_file_magic_cmd=/usr/bin/file
4301 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4302 ;;
4303
4304 *nto* | *qnx*)
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308 openbsd*)
4309 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4311 else
4312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4313 fi
4314 ;;
4315
4316 osf3* | osf4* | osf5*)
4317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319
4320 rdos*)
4321 lt_cv_deplibs_check_method=pass_all
4322 ;;
4323
4324 solaris*)
4325 lt_cv_deplibs_check_method=pass_all
4326 ;;
4327
4328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331
4332 sysv4 | sysv4.3*)
4333 case $host_vendor in
4334 motorola)
4335 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]'
4336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4337 ;;
4338 ncr)
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
4341 sequent)
4342 lt_cv_file_magic_cmd='/bin/file'
4343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4344 ;;
4345 sni)
4346 lt_cv_file_magic_cmd='/bin/file'
4347 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4348 lt_cv_file_magic_test_file=/lib/libc.so
4349 ;;
4350 siemens)
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353 pc)
4354 lt_cv_deplibs_check_method=pass_all
4355 ;;
4356 esac
4357 ;;
4358
4359 tpf*)
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
4362 esac
4363
4364 fi
4365 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4366 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4367 file_magic_cmd=$lt_cv_file_magic_cmd
4368 deplibs_check_method=$lt_cv_deplibs_check_method
4369 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}ar; ac_word=$2
4385 echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4387 if test "${ac_cv_prog_AR+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 if test -n "$AR"; then
4391 ac_cv_prog_AR="$AR" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_prog_AR="${ac_tool_prefix}ar"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404 done
4405 done
4406
4407 fi
4408 fi
4409 AR=$ac_cv_prog_AR
4410 if test -n "$AR"; then
4411 echo "$as_me:$LINENO: result: $AR" >&5
4412 echo "${ECHO_T}$AR" >&6
4413 else
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4416 fi
4417
4418 fi
4419 if test -z "$ac_cv_prog_AR"; then
4420 ac_ct_AR=$AR
4421 # Extract the first word of "ar", so it can be a program name with args.
4422 set dummy ar; ac_word=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 if test -n "$ac_ct_AR"; then
4429 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_ac_ct_AR="ar"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442 done
4443 done
4444
4445 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4446 fi
4447 fi
4448 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4449 if test -n "$ac_ct_AR"; then
4450 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4451 echo "${ECHO_T}$ac_ct_AR" >&6
4452 else
4453 echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4455 fi
4456
4457 AR=$ac_ct_AR
4458 else
4459 AR="$ac_cv_prog_AR"
4460 fi
4461
4462 test -z "$AR" && AR=ar
4463 test -z "$AR_FLAGS" && AR_FLAGS=cru
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475 if test -n "$ac_tool_prefix"; then
4476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4477 set dummy ${ac_tool_prefix}strip; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_STRIP+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test -n "$STRIP"; then
4484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499
4500 fi
4501 fi
4502 STRIP=$ac_cv_prog_STRIP
4503 if test -n "$STRIP"; then
4504 echo "$as_me:$LINENO: result: $STRIP" >&5
4505 echo "${ECHO_T}$STRIP" >&6
4506 else
4507 echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6
4509 fi
4510
4511 fi
4512 if test -z "$ac_cv_prog_STRIP"; then
4513 ac_ct_STRIP=$STRIP
4514 # Extract the first word of "strip", so it can be a program name with args.
4515 set dummy strip; ac_word=$2
4516 echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4518 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 if test -n "$ac_ct_STRIP"; then
4522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_prog_ac_ct_STRIP="strip"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4534 fi
4535 done
4536 done
4537
4538 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4539 fi
4540 fi
4541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4542 if test -n "$ac_ct_STRIP"; then
4543 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4544 echo "${ECHO_T}$ac_ct_STRIP" >&6
4545 else
4546 echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4548 fi
4549
4550 STRIP=$ac_ct_STRIP
4551 else
4552 STRIP="$ac_cv_prog_STRIP"
4553 fi
4554
4555 test -z "$STRIP" && STRIP=:
4556
4557
4558
4559
4560
4561
4562 if test -n "$ac_tool_prefix"; then
4563 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4564 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4565 echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567 if test "${ac_cv_prog_RANLIB+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570 if test -n "$RANLIB"; then
4571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4580 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4583 fi
4584 done
4585 done
4586
4587 fi
4588 fi
4589 RANLIB=$ac_cv_prog_RANLIB
4590 if test -n "$RANLIB"; then
4591 echo "$as_me:$LINENO: result: $RANLIB" >&5
4592 echo "${ECHO_T}$RANLIB" >&6
4593 else
4594 echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6
4596 fi
4597
4598 fi
4599 if test -z "$ac_cv_prog_RANLIB"; then
4600 ac_ct_RANLIB=$RANLIB
4601 # Extract the first word of "ranlib", so it can be a program name with args.
4602 set dummy ranlib; ac_word=$2
4603 echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608 if test -n "$ac_ct_RANLIB"; then
4609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618 ac_cv_prog_ac_ct_RANLIB="ranlib"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622 done
4623 done
4624
4625 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4626 fi
4627 fi
4628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4629 if test -n "$ac_ct_RANLIB"; then
4630 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4631 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4632 else
4633 echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4635 fi
4636
4637 RANLIB=$ac_ct_RANLIB
4638 else
4639 RANLIB="$ac_cv_prog_RANLIB"
4640 fi
4641
4642 test -z "$RANLIB" && RANLIB=:
4643
4644
4645
4646
4647
4648
4649 # Determine commands to create old-style static archives.
4650 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4651 old_postinstall_cmds='chmod 644 $oldlib'
4652 old_postuninstall_cmds=
4653
4654 if test -n "$RANLIB"; then
4655 case $host_os in
4656 openbsd*)
4657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4658 ;;
4659 *)
4660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4661 ;;
4662 esac
4663 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4664 fi
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699 # If no C compiler was specified, use CC.
4700 LTCC=${LTCC-"$CC"}
4701
4702 # If no C compiler flags were specified, use CFLAGS.
4703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4704
4705 # Allow CC to be a program name with arguments.
4706 compiler=$CC
4707
4708
4709 # Check for command to grab the raw symbol name followed by C symbol from nm.
4710 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4711 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4712 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715
4716 # These are sane defaults that work on at least a few old systems.
4717 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4718
4719 # Character class describing NM global symbol codes.
4720 symcode='[BCDEGRST]'
4721
4722 # Regexp to match symbols that can be accessed directly from C.
4723 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4724
4725 # Define system-specific variables.
4726 case $host_os in
4727 aix*)
4728 symcode='[BCDT]'
4729 ;;
4730 cygwin* | mingw* | pw32*)
4731 symcode='[ABCDGISTW]'
4732 ;;
4733 hpux*)
4734 if test "$host_cpu" = ia64; then
4735 symcode='[ABCDEGRST]'
4736 fi
4737 ;;
4738 irix* | nonstopux*)
4739 symcode='[BCDEGRST]'
4740 ;;
4741 osf*)
4742 symcode='[BCDEGQRST]'
4743 ;;
4744 solaris*)
4745 symcode='[BDRT]'
4746 ;;
4747 sco3.2v5*)
4748 symcode='[DT]'
4749 ;;
4750 sysv4.2uw2*)
4751 symcode='[DT]'
4752 ;;
4753 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4754 symcode='[ABDT]'
4755 ;;
4756 sysv4)
4757 symcode='[DFNSTU]'
4758 ;;
4759 esac
4760
4761 # If we're using GNU nm, then use its standard symbol codes.
4762 case `$NM -V 2>&1` in
4763 *GNU* | *'with BFD'*)
4764 symcode='[ABCDGIRSTW]' ;;
4765 esac
4766
4767 # Transform an extracted symbol line into a proper C declaration.
4768 # Some systems (esp. on ia64) link data and code symbols differently,
4769 # so use this general approach.
4770 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4771
4772 # Transform an extracted symbol line into symbol name and symbol address
4773 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4774
4775 # Handle CRLF in mingw tool chain
4776 opt_cr=
4777 case $build_os in
4778 mingw*)
4779 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4780 ;;
4781 esac
4782
4783 # Try without a prefix underscore, then with it.
4784 for ac_symprfx in "" "_"; do
4785
4786 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4787 symxfrm="\\1 $ac_symprfx\\2 \\2"
4788
4789 # Write the raw and C identifiers.
4790 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4791 # Fake it for dumpbin and say T for any non-static function
4792 # and D for any global variable.
4793 # Also find C++ and __fastcall symbols from MSVC++,
4794 # which start with @ or ?.
4795 lt_cv_sys_global_symbol_pipe="$AWK '"\
4796 " {last_section=section; section=\$ 3};"\
4797 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4798 " \$ 0!~/External *\|/{next};"\
4799 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4800 " {if(hide[section]) next};"\
4801 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4802 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4803 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4804 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4805 " ' prfx=^$ac_symprfx"
4806 else
4807 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4808 fi
4809
4810 # Check to see that the pipe works correctly.
4811 pipe_works=no
4812
4813 rm -f conftest*
4814 cat > conftest.$ac_ext <<_LT_EOF
4815 #ifdef __cplusplus
4816 extern "C" {
4817 #endif
4818 char nm_test_var;
4819 void nm_test_func(void);
4820 void nm_test_func(void){}
4821 #ifdef __cplusplus
4822 }
4823 #endif
4824 int main(){nm_test_var='a';nm_test_func();return(0);}
4825 _LT_EOF
4826
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; then
4832 # Now try to grab the symbols.
4833 nlist=conftest.nm
4834 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4835 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && test -s "$nlist"; then
4839 # Try sorting and uniquifying the output.
4840 if sort "$nlist" | uniq > "$nlist"T; then
4841 mv -f "$nlist"T "$nlist"
4842 else
4843 rm -f "$nlist"T
4844 fi
4845
4846 # Make sure that we snagged all the symbols we need.
4847 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4848 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4849 cat <<_LT_EOF > conftest.$ac_ext
4850 #ifdef __cplusplus
4851 extern "C" {
4852 #endif
4853
4854 _LT_EOF
4855 # Now generate the symbol file.
4856 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4857
4858 cat <<_LT_EOF >> conftest.$ac_ext
4859
4860 /* The mapping between symbol names and symbols. */
4861 const struct {
4862 const char *name;
4863 void *address;
4864 }
4865 lt__PROGRAM__LTX_preloaded_symbols[] =
4866 {
4867 { "@PROGRAM@", (void *) 0 },
4868 _LT_EOF
4869 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4870 cat <<\_LT_EOF >> conftest.$ac_ext
4871 {0, (void *) 0}
4872 };
4873
4874 /* This works around a problem in FreeBSD linker */
4875 #ifdef FREEBSD_WORKAROUND
4876 static const void *lt_preloaded_setup() {
4877 return lt__PROGRAM__LTX_preloaded_symbols;
4878 }
4879 #endif
4880
4881 #ifdef __cplusplus
4882 }
4883 #endif
4884 _LT_EOF
4885 # Now try linking the two files.
4886 mv conftest.$ac_objext conftstm.$ac_objext
4887 lt_save_LIBS="$LIBS"
4888 lt_save_CFLAGS="$CFLAGS"
4889 LIBS="conftstm.$ac_objext"
4890 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4892 (eval $ac_link) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4896 pipe_works=yes
4897 fi
4898 LIBS="$lt_save_LIBS"
4899 CFLAGS="$lt_save_CFLAGS"
4900 else
4901 echo "cannot find nm_test_func in $nlist" >&5
4902 fi
4903 else
4904 echo "cannot find nm_test_var in $nlist" >&5
4905 fi
4906 else
4907 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4908 fi
4909 else
4910 echo "$progname: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 fi
4913 rm -f conftest* conftst*
4914
4915 # Do not use the global_symbol_pipe unless it works.
4916 if test "$pipe_works" = yes; then
4917 break
4918 else
4919 lt_cv_sys_global_symbol_pipe=
4920 fi
4921 done
4922
4923 fi
4924
4925 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4926 lt_cv_sys_global_symbol_to_cdecl=
4927 fi
4928 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4929 echo "$as_me:$LINENO: result: failed" >&5
4930 echo "${ECHO_T}failed" >&6
4931 else
4932 echo "$as_me:$LINENO: result: ok" >&5
4933 echo "${ECHO_T}ok" >&6
4934 fi
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4954 if test "${enable_libtool_lock+set}" = set; then
4955 enableval="$enable_libtool_lock"
4956
4957 fi;
4958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4959
4960 # Some flags need to be propagated to the compiler or linker for good
4961 # libtool support.
4962 case $host in
4963 ia64-*-hpux*)
4964 # Find out which ABI we are using.
4965 echo 'int i;' > conftest.$ac_ext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; then
4971 case `/usr/bin/file conftest.$ac_objext` in
4972 *ELF-32*)
4973 HPUX_IA64_MODE="32"
4974 ;;
4975 *ELF-64*)
4976 HPUX_IA64_MODE="64"
4977 ;;
4978 esac
4979 fi
4980 rm -rf conftest*
4981 ;;
4982 *-*-irix6*)
4983 # Find out which ABI we are using.
4984 echo '#line 4984 "configure"' > conftest.$ac_ext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; then
4990 if test "$lt_cv_prog_gnu_ld" = yes; then
4991 case `/usr/bin/file conftest.$ac_objext` in
4992 *32-bit*)
4993 LD="${LD-ld} -melf32bsmip"
4994 ;;
4995 *N32*)
4996 LD="${LD-ld} -melf32bmipn32"
4997 ;;
4998 *64-bit*)
4999 LD="${LD-ld} -melf64bmip"
5000 ;;
5001 esac
5002 else
5003 case `/usr/bin/file conftest.$ac_objext` in
5004 *32-bit*)
5005 LD="${LD-ld} -32"
5006 ;;
5007 *N32*)
5008 LD="${LD-ld} -n32"
5009 ;;
5010 *64-bit*)
5011 LD="${LD-ld} -64"
5012 ;;
5013 esac
5014 fi
5015 fi
5016 rm -rf conftest*
5017 ;;
5018
5019 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5020 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5021 # Find out which ABI we are using.
5022 echo 'int i;' > conftest.$ac_ext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; then
5028 case `/usr/bin/file conftest.o` in
5029 *32-bit*)
5030 case $host in
5031 x86_64-*kfreebsd*-gnu)
5032 LD="${LD-ld} -m elf_i386_fbsd"
5033 ;;
5034 x86_64-*linux*)
5035 LD="${LD-ld} -m elf_i386"
5036 ;;
5037 ppc64-*linux*|powerpc64-*linux*)
5038 LD="${LD-ld} -m elf32ppclinux"
5039 ;;
5040 s390x-*linux*)
5041 LD="${LD-ld} -m elf_s390"
5042 ;;
5043 sparc64-*linux*)
5044 LD="${LD-ld} -m elf32_sparc"
5045 ;;
5046 esac
5047 ;;
5048 *64-bit*)
5049 case $host in
5050 x86_64-*kfreebsd*-gnu)
5051 LD="${LD-ld} -m elf_x86_64_fbsd"
5052 ;;
5053 x86_64-*linux*)
5054 LD="${LD-ld} -m elf_x86_64"
5055 ;;
5056 ppc*-*linux*|powerpc*-*linux*)
5057 LD="${LD-ld} -m elf64ppc"
5058 ;;
5059 s390*-*linux*|s390*-*tpf*)
5060 LD="${LD-ld} -m elf64_s390"
5061 ;;
5062 sparc*-*linux*)
5063 LD="${LD-ld} -m elf64_sparc"
5064 ;;
5065 esac
5066 ;;
5067 esac
5068 fi
5069 rm -rf conftest*
5070 ;;
5071
5072 *-*-sco3.2v5*)
5073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5074 SAVE_CFLAGS="$CFLAGS"
5075 CFLAGS="$CFLAGS -belf"
5076 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5077 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5078 if test "${lt_cv_cc_needs_belf+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086
5087 if test x$gcc_no_link = xyes; then
5088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5090 { (exit 1); exit 1; }; }
5091 fi
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098
5099 int
5100 main ()
5101 {
5102
5103 ;
5104 return 0;
5105 }
5106 _ACEOF
5107 rm -f conftest.$ac_objext conftest$ac_exeext
5108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 (eval $ac_try) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try='test -s conftest$ac_exeext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 lt_cv_cc_needs_belf=yes
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 lt_cv_cc_needs_belf=no
5134 fi
5135 rm -f conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143 fi
5144 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5145 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5146 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5147 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5148 CFLAGS="$SAVE_CFLAGS"
5149 fi
5150 ;;
5151 sparc*-*solaris*)
5152 # Find out which ABI we are using.
5153 echo 'int i;' > conftest.$ac_ext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5155 (eval $ac_compile) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; then
5159 case `/usr/bin/file conftest.o` in
5160 *64-bit*)
5161 case $lt_cv_prog_gnu_ld in
5162 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5163 *) LD="${LD-ld} -64" ;;
5164 esac
5165 ;;
5166 esac
5167 fi
5168 rm -rf conftest*
5169 ;;
5170 esac
5171
5172 need_locks="$enable_libtool_lock"
5173
5174 ac_ext=c
5175 ac_cpp='$CPP $CPPFLAGS'
5176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5180 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5181 # On Suns, sometimes $CPP names a directory.
5182 if test -n "$CPP" && test -d "$CPP"; then
5183 CPP=
5184 fi
5185 if test -z "$CPP"; then
5186 if test "${ac_cv_prog_CPP+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 # Double quotes because CPP needs to be expanded
5190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5191 do
5192 ac_preproc_ok=false
5193 for ac_c_preproc_warn_flag in '' yes
5194 do
5195 # Use a header file that comes with gcc, so configuring glibc
5196 # with a fresh cross-compiler works.
5197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198 # <limits.h> exists even on freestanding compilers.
5199 # On the NeXT, cc -E runs the code through the compiler's parser,
5200 # not just through cpp. "Syntax error" is here to catch this case.
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 #ifdef __STDC__
5208 # include <limits.h>
5209 #else
5210 # include <assert.h>
5211 #endif
5212 Syntax error
5213 _ACEOF
5214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev/null; then
5222 if test -s conftest.err; then
5223 ac_cpp_err=$ac_c_preproc_warn_flag
5224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5225 else
5226 ac_cpp_err=
5227 fi
5228 else
5229 ac_cpp_err=yes
5230 fi
5231 if test -z "$ac_cpp_err"; then
5232 :
5233 else
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 # Broken: fails on valid input.
5238 continue
5239 fi
5240 rm -f conftest.err conftest.$ac_ext
5241
5242 # OK, works on sane cases. Now check whether non-existent headers
5243 # can be detected and how.
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <ac_nonexistent.h>
5251 _ACEOF
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null; then
5260 if test -s conftest.err; then
5261 ac_cpp_err=$ac_c_preproc_warn_flag
5262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5263 else
5264 ac_cpp_err=
5265 fi
5266 else
5267 ac_cpp_err=yes
5268 fi
5269 if test -z "$ac_cpp_err"; then
5270 # Broken: success on invalid input.
5271 continue
5272 else
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 # Passes both tests.
5277 ac_preproc_ok=:
5278 break
5279 fi
5280 rm -f conftest.err conftest.$ac_ext
5281
5282 done
5283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5284 rm -f conftest.err conftest.$ac_ext
5285 if $ac_preproc_ok; then
5286 break
5287 fi
5288
5289 done
5290 ac_cv_prog_CPP=$CPP
5291
5292 fi
5293 CPP=$ac_cv_prog_CPP
5294 else
5295 ac_cv_prog_CPP=$CPP
5296 fi
5297 echo "$as_me:$LINENO: result: $CPP" >&5
5298 echo "${ECHO_T}$CPP" >&6
5299 ac_preproc_ok=false
5300 for ac_c_preproc_warn_flag in '' yes
5301 do
5302 # Use a header file that comes with gcc, so configuring glibc
5303 # with a fresh cross-compiler works.
5304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5305 # <limits.h> exists even on freestanding compilers.
5306 # On the NeXT, cc -E runs the code through the compiler's parser,
5307 # not just through cpp. "Syntax error" is here to catch this case.
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #ifdef __STDC__
5315 # include <limits.h>
5316 #else
5317 # include <assert.h>
5318 #endif
5319 Syntax error
5320 _ACEOF
5321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } >/dev/null; then
5329 if test -s conftest.err; then
5330 ac_cpp_err=$ac_c_preproc_warn_flag
5331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5332 else
5333 ac_cpp_err=
5334 fi
5335 else
5336 ac_cpp_err=yes
5337 fi
5338 if test -z "$ac_cpp_err"; then
5339 :
5340 else
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5343
5344 # Broken: fails on valid input.
5345 continue
5346 fi
5347 rm -f conftest.err conftest.$ac_ext
5348
5349 # OK, works on sane cases. Now check whether non-existent headers
5350 # can be detected and how.
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 #include <ac_nonexistent.h>
5358 _ACEOF
5359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } >/dev/null; then
5367 if test -s conftest.err; then
5368 ac_cpp_err=$ac_c_preproc_warn_flag
5369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5370 else
5371 ac_cpp_err=
5372 fi
5373 else
5374 ac_cpp_err=yes
5375 fi
5376 if test -z "$ac_cpp_err"; then
5377 # Broken: success on invalid input.
5378 continue
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 # Passes both tests.
5384 ac_preproc_ok=:
5385 break
5386 fi
5387 rm -f conftest.err conftest.$ac_ext
5388
5389 done
5390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5391 rm -f conftest.err conftest.$ac_ext
5392 if $ac_preproc_ok; then
5393 :
5394 else
5395 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5396 See \`config.log' for more details." >&5
5397 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5398 See \`config.log' for more details." >&2;}
5399 { (exit 1); exit 1; }; }
5400 fi
5401
5402 ac_ext=c
5403 ac_cpp='$CPP $CPPFLAGS'
5404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407
5408
5409 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5410 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5411 if test "${ac_cv_header_stdc+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 #include <stdlib.h>
5421 #include <stdarg.h>
5422 #include <string.h>
5423 #include <float.h>
5424
5425 int
5426 main ()
5427 {
5428
5429 ;
5430 return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try='test -s conftest.$ac_objext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 ac_cv_header_stdc=yes
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 ac_cv_header_stdc=no
5460 fi
5461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462
5463 if test $ac_cv_header_stdc = yes; then
5464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5465 cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h. */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 #include <string.h>
5472
5473 _ACEOF
5474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475 $EGREP "memchr" >/dev/null 2>&1; then
5476 :
5477 else
5478 ac_cv_header_stdc=no
5479 fi
5480 rm -f conftest*
5481
5482 fi
5483
5484 if test $ac_cv_header_stdc = yes; then
5485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 #include <stdlib.h>
5493
5494 _ACEOF
5495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496 $EGREP "free" >/dev/null 2>&1; then
5497 :
5498 else
5499 ac_cv_header_stdc=no
5500 fi
5501 rm -f conftest*
5502
5503 fi
5504
5505 if test $ac_cv_header_stdc = yes; then
5506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5507 if test "$cross_compiling" = yes; then
5508 :
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <ctype.h>
5517 #if ((' ' & 0x0FF) == 0x020)
5518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5520 #else
5521 # define ISLOWER(c) \
5522 (('a' <= (c) && (c) <= 'i') \
5523 || ('j' <= (c) && (c) <= 'r') \
5524 || ('s' <= (c) && (c) <= 'z'))
5525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5526 #endif
5527
5528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5529 int
5530 main ()
5531 {
5532 int i;
5533 for (i = 0; i < 256; i++)
5534 if (XOR (islower (i), ISLOWER (i))
5535 || toupper (i) != TOUPPER (i))
5536 exit(2);
5537 exit (0);
5538 }
5539 _ACEOF
5540 rm -f conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 :
5552 else
5553 echo "$as_me: program exited with status $ac_status" >&5
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557 ( exit $ac_status )
5558 ac_cv_header_stdc=no
5559 fi
5560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5561 fi
5562 fi
5563 fi
5564 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5565 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5566 if test $ac_cv_header_stdc = yes; then
5567
5568 cat >>confdefs.h <<\_ACEOF
5569 #define STDC_HEADERS 1
5570 _ACEOF
5571
5572 fi
5573
5574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5585 inttypes.h stdint.h unistd.h
5586 do
5587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5588 echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 $ac_includes_default
5600
5601 #include <$ac_header>
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; } &&
5618 { ac_try='test -s conftest.$ac_objext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 (eval $ac_try) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 eval "$as_ac_Header=yes"
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 eval "$as_ac_Header=no"
5630 fi
5631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5632 fi
5633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5636 cat >>confdefs.h <<_ACEOF
5637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5638 _ACEOF
5639
5640 fi
5641
5642 done
5643
5644
5645
5646 for ac_header in dlfcn.h
5647 do
5648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5649 echo "$as_me:$LINENO: checking for $ac_header" >&5
5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 $ac_includes_default
5661
5662 #include <$ac_header>
5663 _ACEOF
5664 rm -f conftest.$ac_objext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 eval "$as_ac_Header=yes"
5686 else
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690 eval "$as_ac_Header=no"
5691 fi
5692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5693 fi
5694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5697 cat >>confdefs.h <<_ACEOF
5698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5699 _ACEOF
5700
5701 fi
5702
5703 done
5704
5705
5706
5707 # This can be used to rebuild libtool when needed
5708 LIBTOOL_DEPS="$ltmain"
5709
5710 # Always use our own libtool.
5711 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737 test -z "$LN_S" && LN_S="ln -s"
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752 if test -n "${ZSH_VERSION+set}" ; then
5753 setopt NO_GLOB_SUBST
5754 fi
5755
5756 echo "$as_me:$LINENO: checking for objdir" >&5
5757 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5758 if test "${lt_cv_objdir+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 rm -f .libs 2>/dev/null
5762 mkdir .libs 2>/dev/null
5763 if test -d .libs; then
5764 lt_cv_objdir=.libs
5765 else
5766 # MS-DOS does not allow filenames that begin with a dot.
5767 lt_cv_objdir=_libs
5768 fi
5769 rmdir .libs 2>/dev/null
5770 fi
5771 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5772 echo "${ECHO_T}$lt_cv_objdir" >&6
5773 objdir=$lt_cv_objdir
5774
5775
5776
5777
5778
5779 cat >>confdefs.h <<_ACEOF
5780 #define LT_OBJDIR "$lt_cv_objdir/"
5781 _ACEOF
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 case $host_os in
5800 aix3*)
5801 # AIX sometimes has problems with the GCC collect2 program. For some
5802 # reason, if we set the COLLECT_NAMES environment variable, the problems
5803 # vanish in a puff of smoke.
5804 if test "X${COLLECT_NAMES+set}" != Xset; then
5805 COLLECT_NAMES=
5806 export COLLECT_NAMES
5807 fi
5808 ;;
5809 esac
5810
5811 # Sed substitution that helps us do robust quoting. It backslashifies
5812 # metacharacters that are still active within double-quoted strings.
5813 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5814
5815 # Same as above, but do not quote variable references.
5816 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5817
5818 # Sed substitution to delay expansion of an escaped shell variable in a
5819 # double_quote_subst'ed string.
5820 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5821
5822 # Sed substitution to delay expansion of an escaped single quote.
5823 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5824
5825 # Sed substitution to avoid accidental globbing in evaled expressions
5826 no_glob_subst='s/\*/\\\*/g'
5827
5828 # Global variables:
5829 ofile=libtool
5830 can_build_shared=yes
5831
5832 # All known linkers require a `.a' archive for static linking (except MSVC,
5833 # which needs '.lib').
5834 libext=a
5835
5836 with_gnu_ld="$lt_cv_prog_gnu_ld"
5837
5838 old_CC="$CC"
5839 old_CFLAGS="$CFLAGS"
5840
5841 # Set sane defaults for various variables
5842 test -z "$CC" && CC=cc
5843 test -z "$LTCC" && LTCC=$CC
5844 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5845 test -z "$LD" && LD=ld
5846 test -z "$ac_objext" && ac_objext=o
5847
5848 for cc_temp in $compiler""; do
5849 case $cc_temp in
5850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5852 \-*) ;;
5853 *) break;;
5854 esac
5855 done
5856 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5857
5858
5859 # Only perform the check for file, if the check method requires it
5860 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5861 case $deplibs_check_method in
5862 file_magic*)
5863 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5864 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5865 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5866 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 case $MAGIC_CMD in
5870 [\\/*] | ?:[\\/]*)
5871 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5872 ;;
5873 *)
5874 lt_save_MAGIC_CMD="$MAGIC_CMD"
5875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5876 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5877 for ac_dir in $ac_dummy; do
5878 IFS="$lt_save_ifs"
5879 test -z "$ac_dir" && ac_dir=.
5880 if test -f $ac_dir/${ac_tool_prefix}file; then
5881 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5882 if test -n "$file_magic_test_file"; then
5883 case $deplibs_check_method in
5884 "file_magic "*)
5885 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5888 $EGREP "$file_magic_regex" > /dev/null; then
5889 :
5890 else
5891 cat <<_LT_EOF 1>&2
5892
5893 *** Warning: the command libtool uses to detect shared libraries,
5894 *** $file_magic_cmd, produces output that libtool cannot recognize.
5895 *** The result is that libtool may fail to recognize shared libraries
5896 *** as such. This will affect the creation of libtool libraries that
5897 *** depend on shared libraries, but programs linked with such libtool
5898 *** libraries will work regardless of this problem. Nevertheless, you
5899 *** may want to report the problem to your system manager and/or to
5900 *** bug-libtool@gnu.org
5901
5902 _LT_EOF
5903 fi ;;
5904 esac
5905 fi
5906 break
5907 fi
5908 done
5909 IFS="$lt_save_ifs"
5910 MAGIC_CMD="$lt_save_MAGIC_CMD"
5911 ;;
5912 esac
5913 fi
5914
5915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5916 if test -n "$MAGIC_CMD"; then
5917 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5918 echo "${ECHO_T}$MAGIC_CMD" >&6
5919 else
5920 echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6
5922 fi
5923
5924
5925
5926
5927
5928 if test -z "$lt_cv_path_MAGIC_CMD"; then
5929 if test -n "$ac_tool_prefix"; then
5930 echo "$as_me:$LINENO: checking for file" >&5
5931 echo $ECHO_N "checking for file... $ECHO_C" >&6
5932 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 case $MAGIC_CMD in
5936 [\\/*] | ?:[\\/]*)
5937 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5938 ;;
5939 *)
5940 lt_save_MAGIC_CMD="$MAGIC_CMD"
5941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5942 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5943 for ac_dir in $ac_dummy; do
5944 IFS="$lt_save_ifs"
5945 test -z "$ac_dir" && ac_dir=.
5946 if test -f $ac_dir/file; then
5947 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5948 if test -n "$file_magic_test_file"; then
5949 case $deplibs_check_method in
5950 "file_magic "*)
5951 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5954 $EGREP "$file_magic_regex" > /dev/null; then
5955 :
5956 else
5957 cat <<_LT_EOF 1>&2
5958
5959 *** Warning: the command libtool uses to detect shared libraries,
5960 *** $file_magic_cmd, produces output that libtool cannot recognize.
5961 *** The result is that libtool may fail to recognize shared libraries
5962 *** as such. This will affect the creation of libtool libraries that
5963 *** depend on shared libraries, but programs linked with such libtool
5964 *** libraries will work regardless of this problem. Nevertheless, you
5965 *** may want to report the problem to your system manager and/or to
5966 *** bug-libtool@gnu.org
5967
5968 _LT_EOF
5969 fi ;;
5970 esac
5971 fi
5972 break
5973 fi
5974 done
5975 IFS="$lt_save_ifs"
5976 MAGIC_CMD="$lt_save_MAGIC_CMD"
5977 ;;
5978 esac
5979 fi
5980
5981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5982 if test -n "$MAGIC_CMD"; then
5983 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5984 echo "${ECHO_T}$MAGIC_CMD" >&6
5985 else
5986 echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5988 fi
5989
5990
5991 else
5992 MAGIC_CMD=:
5993 fi
5994 fi
5995
5996 fi
5997 ;;
5998 esac
5999
6000 # Use C for the default configuration in the libtool script
6001
6002 lt_save_CC="$CC"
6003 ac_ext=c
6004 ac_cpp='$CPP $CPPFLAGS'
6005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008
6009
6010 # Source file extension for C test sources.
6011 ac_ext=c
6012
6013 # Object file extension for compiled C test sources.
6014 objext=o
6015 objext=$objext
6016
6017 # Code to be used in simple compile tests
6018 lt_simple_compile_test_code="int some_variable = 0;"
6019
6020 # Code to be used in simple link tests
6021 lt_simple_link_test_code='int main(){return(0);}'
6022
6023
6024
6025
6026
6027
6028
6029 # If no C compiler was specified, use CC.
6030 LTCC=${LTCC-"$CC"}
6031
6032 # If no C compiler flags were specified, use CFLAGS.
6033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6034
6035 # Allow CC to be a program name with arguments.
6036 compiler=$CC
6037
6038 # Save the default compiler, since it gets overwritten when the other
6039 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6040 compiler_DEFAULT=$CC
6041
6042 # save warnings/boilerplate of simple test code
6043 ac_outfile=conftest.$ac_objext
6044 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6046 _lt_compiler_boilerplate=`cat conftest.err`
6047 $RM conftest*
6048
6049 ac_outfile=conftest.$ac_objext
6050 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6052 _lt_linker_boilerplate=`cat conftest.err`
6053 $RM conftest*
6054
6055
6056 ## CAVEAT EMPTOR:
6057 ## There is no encapsulation within the following macros, do not change
6058 ## the running order or otherwise move them around unless you know exactly
6059 ## what you are doing...
6060 if test -n "$compiler"; then
6061
6062 lt_prog_compiler_no_builtin_flag=
6063
6064 if test "$GCC" = yes; then
6065 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6066
6067 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6068 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6069 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 lt_cv_prog_compiler_rtti_exceptions=no
6073 ac_outfile=conftest.$ac_objext
6074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6075 lt_compiler_flag="-fno-rtti -fno-exceptions"
6076 # Insert the option either (1) after the last *FLAGS variable, or
6077 # (2) before a word containing "conftest.", or (3) at the end.
6078 # Note that $ac_compile itself does not contain backslashes and begins
6079 # with a dollar sign (not a hyphen), so the echo should work correctly.
6080 # The option is referenced via a variable to avoid confusing sed.
6081 lt_compile=`echo "$ac_compile" | $SED \
6082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6084 -e 's:$: $lt_compiler_flag:'`
6085 (eval echo "\"\$as_me:6085: $lt_compile\"" >&5)
6086 (eval "$lt_compile" 2>conftest.err)
6087 ac_status=$?
6088 cat conftest.err >&5
6089 echo "$as_me:6089: \$? = $ac_status" >&5
6090 if (exit $ac_status) && test -s "$ac_outfile"; then
6091 # The compiler can only warn and ignore the option if not recognized
6092 # So say no if there are warnings other than the usual output.
6093 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6096 lt_cv_prog_compiler_rtti_exceptions=yes
6097 fi
6098 fi
6099 $RM conftest*
6100
6101 fi
6102 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6103 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6104
6105 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6106 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6107 else
6108 :
6109 fi
6110
6111 fi
6112
6113
6114
6115
6116
6117
6118 lt_prog_compiler_wl=
6119 lt_prog_compiler_pic=
6120 lt_prog_compiler_static=
6121
6122 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6123 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6124
6125 if test "$GCC" = yes; then
6126 lt_prog_compiler_wl='-Wl,'
6127 lt_prog_compiler_static='-static'
6128
6129 case $host_os in
6130 aix*)
6131 # All AIX code is PIC.
6132 if test "$host_cpu" = ia64; then
6133 # AIX 5 now supports IA64 processor
6134 lt_prog_compiler_static='-Bstatic'
6135 fi
6136 ;;
6137
6138 amigaos*)
6139 if test "$host_cpu" = m68k; then
6140 # FIXME: we need at least 68020 code to build shared libraries, but
6141 # adding the `-m68020' flag to GCC prevents building anything better,
6142 # like `-m68040'.
6143 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6144 fi
6145 ;;
6146
6147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6148 # PIC is the default for these OSes.
6149 ;;
6150
6151 mingw* | cygwin* | pw32* | os2*)
6152 # This hack is so that the source file can tell whether it is being
6153 # built for inclusion in a dll (and should export symbols for example).
6154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6155 # (--disable-auto-import) libraries
6156 lt_prog_compiler_pic='-DDLL_EXPORT'
6157 ;;
6158
6159 darwin* | rhapsody*)
6160 # PIC is the default on this platform
6161 # Common symbols not allowed in MH_DYLIB files
6162 lt_prog_compiler_pic='-fno-common'
6163 ;;
6164
6165 hpux*)
6166 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6167 # not for PA HP-UX.
6168 case $host_cpu in
6169 hppa*64*|ia64*)
6170 # +Z the default
6171 ;;
6172 *)
6173 lt_prog_compiler_pic='-fPIC'
6174 ;;
6175 esac
6176 ;;
6177
6178 interix[3-9]*)
6179 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6180 # Instead, we relocate shared libraries at runtime.
6181 ;;
6182
6183 msdosdjgpp*)
6184 # Just because we use GCC doesn't mean we suddenly get shared libraries
6185 # on systems that don't support them.
6186 lt_prog_compiler_can_build_shared=no
6187 enable_shared=no
6188 ;;
6189
6190 *nto* | *qnx*)
6191 # QNX uses GNU C++, but need to define -shared option too, otherwise
6192 # it will coredump.
6193 lt_prog_compiler_pic='-fPIC -shared'
6194 ;;
6195
6196 sysv4*MP*)
6197 if test -d /usr/nec; then
6198 lt_prog_compiler_pic=-Kconform_pic
6199 fi
6200 ;;
6201
6202 *)
6203 lt_prog_compiler_pic='-fPIC'
6204 ;;
6205 esac
6206 else
6207 # PORTME Check for flag to pass linker flags through the system compiler.
6208 case $host_os in
6209 aix*)
6210 lt_prog_compiler_wl='-Wl,'
6211 if test "$host_cpu" = ia64; then
6212 # AIX 5 now supports IA64 processor
6213 lt_prog_compiler_static='-Bstatic'
6214 else
6215 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6216 fi
6217 ;;
6218 darwin*)
6219 # PIC is the default on this platform
6220 # Common symbols not allowed in MH_DYLIB files
6221 case $cc_basename in
6222 xlc*)
6223 lt_prog_compiler_pic='-qnocommon'
6224 lt_prog_compiler_wl='-Wl,'
6225 ;;
6226 esac
6227 ;;
6228
6229 mingw* | cygwin* | pw32* | os2*)
6230 # This hack is so that the source file can tell whether it is being
6231 # built for inclusion in a dll (and should export symbols for example).
6232 lt_prog_compiler_pic='-DDLL_EXPORT'
6233 ;;
6234
6235 hpux9* | hpux10* | hpux11*)
6236 lt_prog_compiler_wl='-Wl,'
6237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6238 # not for PA HP-UX.
6239 case $host_cpu in
6240 hppa*64*|ia64*)
6241 # +Z the default
6242 ;;
6243 *)
6244 lt_prog_compiler_pic='+Z'
6245 ;;
6246 esac
6247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6248 lt_prog_compiler_static='${wl}-a ${wl}archive'
6249 ;;
6250
6251 irix5* | irix6* | nonstopux*)
6252 lt_prog_compiler_wl='-Wl,'
6253 # PIC (with -KPIC) is the default.
6254 lt_prog_compiler_static='-non_shared'
6255 ;;
6256
6257 linux* | k*bsd*-gnu)
6258 case $cc_basename in
6259 icc* | ecc*)
6260 lt_prog_compiler_wl='-Wl,'
6261 lt_prog_compiler_pic='-KPIC'
6262 lt_prog_compiler_static='-static'
6263 ;;
6264 pgcc* | pgf77* | pgf90* | pgf95*)
6265 # Portland Group compilers (*not* the Pentium gcc compiler,
6266 # which looks to be a dead project)
6267 lt_prog_compiler_wl='-Wl,'
6268 lt_prog_compiler_pic='-fpic'
6269 lt_prog_compiler_static='-Bstatic'
6270 ;;
6271 ccc*)
6272 lt_prog_compiler_wl='-Wl,'
6273 # All Alpha code is PIC.
6274 lt_prog_compiler_static='-non_shared'
6275 ;;
6276 *)
6277 case `$CC -V 2>&1 | sed 5q` in
6278 *Sun\ C*)
6279 # Sun C 5.9
6280 lt_prog_compiler_pic='-KPIC'
6281 lt_prog_compiler_static='-Bstatic'
6282 lt_prog_compiler_wl='-Wl,'
6283 ;;
6284 *Sun\ F*)
6285 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6286 lt_prog_compiler_pic='-KPIC'
6287 lt_prog_compiler_static='-Bstatic'
6288 lt_prog_compiler_wl=''
6289 ;;
6290 esac
6291 ;;
6292 esac
6293 ;;
6294
6295 newsos6)
6296 lt_prog_compiler_pic='-KPIC'
6297 lt_prog_compiler_static='-Bstatic'
6298 ;;
6299
6300 *nto* | *qnx*)
6301 # QNX uses GNU C++, but need to define -shared option too, otherwise
6302 # it will coredump.
6303 lt_prog_compiler_pic='-fPIC -shared'
6304 ;;
6305
6306 osf3* | osf4* | osf5*)
6307 lt_prog_compiler_wl='-Wl,'
6308 # All OSF/1 code is PIC.
6309 lt_prog_compiler_static='-non_shared'
6310 ;;
6311
6312 rdos*)
6313 lt_prog_compiler_static='-non_shared'
6314 ;;
6315
6316 solaris*)
6317 lt_prog_compiler_pic='-KPIC'
6318 lt_prog_compiler_static='-Bstatic'
6319 case $cc_basename in
6320 f77* | f90* | f95*)
6321 lt_prog_compiler_wl='-Qoption ld ';;
6322 *)
6323 lt_prog_compiler_wl='-Wl,';;
6324 esac
6325 ;;
6326
6327 sunos4*)
6328 lt_prog_compiler_wl='-Qoption ld '
6329 lt_prog_compiler_pic='-PIC'
6330 lt_prog_compiler_static='-Bstatic'
6331 ;;
6332
6333 sysv4 | sysv4.2uw2* | sysv4.3*)
6334 lt_prog_compiler_wl='-Wl,'
6335 lt_prog_compiler_pic='-KPIC'
6336 lt_prog_compiler_static='-Bstatic'
6337 ;;
6338
6339 sysv4*MP*)
6340 if test -d /usr/nec ;then
6341 lt_prog_compiler_pic='-Kconform_pic'
6342 lt_prog_compiler_static='-Bstatic'
6343 fi
6344 ;;
6345
6346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6347 lt_prog_compiler_wl='-Wl,'
6348 lt_prog_compiler_pic='-KPIC'
6349 lt_prog_compiler_static='-Bstatic'
6350 ;;
6351
6352 unicos*)
6353 lt_prog_compiler_wl='-Wl,'
6354 lt_prog_compiler_can_build_shared=no
6355 ;;
6356
6357 uts4*)
6358 lt_prog_compiler_pic='-pic'
6359 lt_prog_compiler_static='-Bstatic'
6360 ;;
6361
6362 *)
6363 lt_prog_compiler_can_build_shared=no
6364 ;;
6365 esac
6366 fi
6367
6368 case $host_os in
6369 # For platforms which do not support PIC, -DPIC is meaningless:
6370 *djgpp*)
6371 lt_prog_compiler_pic=
6372 ;;
6373 *)
6374 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6375 ;;
6376 esac
6377 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6378 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6379
6380
6381
6382
6383
6384
6385 #
6386 # Check to make sure the PIC flag actually works.
6387 #
6388 if test -n "$lt_prog_compiler_pic"; then
6389 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6390 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6391 if test "${lt_prog_compiler_pic_works+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394 lt_prog_compiler_pic_works=no
6395 ac_outfile=conftest.$ac_objext
6396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6397 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6398 # Insert the option either (1) after the last *FLAGS variable, or
6399 # (2) before a word containing "conftest.", or (3) at the end.
6400 # Note that $ac_compile itself does not contain backslashes and begins
6401 # with a dollar sign (not a hyphen), so the echo should work correctly.
6402 # The option is referenced via a variable to avoid confusing sed.
6403 lt_compile=`echo "$ac_compile" | $SED \
6404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6406 -e 's:$: $lt_compiler_flag:'`
6407 (eval echo "\"\$as_me:6407: $lt_compile\"" >&5)
6408 (eval "$lt_compile" 2>conftest.err)
6409 ac_status=$?
6410 cat conftest.err >&5
6411 echo "$as_me:6411: \$? = $ac_status" >&5
6412 if (exit $ac_status) && test -s "$ac_outfile"; then
6413 # The compiler can only warn and ignore the option if not recognized
6414 # So say no if there are warnings other than the usual output.
6415 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6418 lt_prog_compiler_pic_works=yes
6419 fi
6420 fi
6421 $RM conftest*
6422
6423 fi
6424 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6425 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6426
6427 if test x"$lt_prog_compiler_pic_works" = xyes; then
6428 case $lt_prog_compiler_pic in
6429 "" | " "*) ;;
6430 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6431 esac
6432 else
6433 lt_prog_compiler_pic=
6434 lt_prog_compiler_can_build_shared=no
6435 fi
6436
6437 fi
6438
6439
6440
6441
6442
6443
6444 #
6445 # Check to make sure the static flag actually works.
6446 #
6447 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6448 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6449 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6450 if test "${lt_prog_compiler_static_works+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 lt_prog_compiler_static_works=no
6454 save_LDFLAGS="$LDFLAGS"
6455 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6456 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6458 # The linker can only warn and ignore the option if not recognized
6459 # So say no if there are warnings
6460 if test -s conftest.err; then
6461 # Append any errors to the config.log.
6462 cat conftest.err 1>&5
6463 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6465 if diff conftest.exp conftest.er2 >/dev/null; then
6466 lt_prog_compiler_static_works=yes
6467 fi
6468 else
6469 lt_prog_compiler_static_works=yes
6470 fi
6471 fi
6472 $RM conftest*
6473 LDFLAGS="$save_LDFLAGS"
6474
6475 fi
6476 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6477 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6478
6479 if test x"$lt_prog_compiler_static_works" = xyes; then
6480 :
6481 else
6482 lt_prog_compiler_static=
6483 fi
6484
6485
6486
6487
6488
6489
6490
6491 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6493 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 lt_cv_prog_compiler_c_o=no
6497 $RM -r conftest 2>/dev/null
6498 mkdir conftest
6499 cd conftest
6500 mkdir out
6501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6502
6503 lt_compiler_flag="-o out/conftest2.$ac_objext"
6504 # Insert the option either (1) after the last *FLAGS variable, or
6505 # (2) before a word containing "conftest.", or (3) at the end.
6506 # Note that $ac_compile itself does not contain backslashes and begins
6507 # with a dollar sign (not a hyphen), so the echo should work correctly.
6508 lt_compile=`echo "$ac_compile" | $SED \
6509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6511 -e 's:$: $lt_compiler_flag:'`
6512 (eval echo "\"\$as_me:6512: $lt_compile\"" >&5)
6513 (eval "$lt_compile" 2>out/conftest.err)
6514 ac_status=$?
6515 cat out/conftest.err >&5
6516 echo "$as_me:6516: \$? = $ac_status" >&5
6517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6518 then
6519 # The compiler can only warn and ignore the option if not recognized
6520 # So say no if there are warnings
6521 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6524 lt_cv_prog_compiler_c_o=yes
6525 fi
6526 fi
6527 chmod u+w . 2>&5
6528 $RM conftest*
6529 # SGI C++ compiler will create directory out/ii_files/ for
6530 # template instantiation
6531 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6532 $RM out/* && rmdir out
6533 cd ..
6534 $RM -r conftest
6535 $RM conftest*
6536
6537 fi
6538 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6539 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6540
6541
6542
6543
6544
6545
6546 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 lt_cv_prog_compiler_c_o=no
6552 $RM -r conftest 2>/dev/null
6553 mkdir conftest
6554 cd conftest
6555 mkdir out
6556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6557
6558 lt_compiler_flag="-o out/conftest2.$ac_objext"
6559 # Insert the option either (1) after the last *FLAGS variable, or
6560 # (2) before a word containing "conftest.", or (3) at the end.
6561 # Note that $ac_compile itself does not contain backslashes and begins
6562 # with a dollar sign (not a hyphen), so the echo should work correctly.
6563 lt_compile=`echo "$ac_compile" | $SED \
6564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6566 -e 's:$: $lt_compiler_flag:'`
6567 (eval echo "\"\$as_me:6567: $lt_compile\"" >&5)
6568 (eval "$lt_compile" 2>out/conftest.err)
6569 ac_status=$?
6570 cat out/conftest.err >&5
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6573 then
6574 # The compiler can only warn and ignore the option if not recognized
6575 # So say no if there are warnings
6576 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6579 lt_cv_prog_compiler_c_o=yes
6580 fi
6581 fi
6582 chmod u+w . 2>&5
6583 $RM conftest*
6584 # SGI C++ compiler will create directory out/ii_files/ for
6585 # template instantiation
6586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6587 $RM out/* && rmdir out
6588 cd ..
6589 $RM -r conftest
6590 $RM conftest*
6591
6592 fi
6593 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6594 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6595
6596
6597
6598
6599 hard_links="nottested"
6600 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6601 # do not overwrite the value of need_locks provided by the user
6602 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6604 hard_links=yes
6605 $RM conftest*
6606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6607 touch conftest.a
6608 ln conftest.a conftest.b 2>&5 || hard_links=no
6609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6610 echo "$as_me:$LINENO: result: $hard_links" >&5
6611 echo "${ECHO_T}$hard_links" >&6
6612 if test "$hard_links" = no; then
6613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6615 need_locks=warn
6616 fi
6617 else
6618 need_locks=no
6619 fi
6620
6621
6622
6623
6624
6625
6626 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6627 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6628
6629 runpath_var=
6630 allow_undefined_flag=
6631 always_export_symbols=no
6632 archive_cmds=
6633 archive_expsym_cmds=
6634 compiler_needs_object=no
6635 enable_shared_with_static_runtimes=no
6636 export_dynamic_flag_spec=
6637 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6638 hardcode_automatic=no
6639 hardcode_direct=no
6640 hardcode_direct_absolute=no
6641 hardcode_libdir_flag_spec=
6642 hardcode_libdir_flag_spec_ld=
6643 hardcode_libdir_separator=
6644 hardcode_minus_L=no
6645 hardcode_shlibpath_var=unsupported
6646 inherit_rpath=no
6647 link_all_deplibs=unknown
6648 module_cmds=
6649 module_expsym_cmds=
6650 old_archive_from_new_cmds=
6651 old_archive_from_expsyms_cmds=
6652 thread_safe_flag_spec=
6653 whole_archive_flag_spec=
6654 # include_expsyms should be a list of space-separated symbols to be *always*
6655 # included in the symbol list
6656 include_expsyms=
6657 # exclude_expsyms can be an extended regexp of symbols to exclude
6658 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6659 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6660 # as well as any symbol that contains `d'.
6661 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6662 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6663 # platforms (ab)use it in PIC code, but their linkers get confused if
6664 # the symbol is explicitly referenced. Since portable code cannot
6665 # rely on this symbol name, it's probably fine to never include it in
6666 # preloaded symbol tables.
6667 extract_expsyms_cmds=
6668
6669 case $host_os in
6670 cygwin* | mingw* | pw32*)
6671 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6672 # When not using gcc, we currently assume that we are using
6673 # Microsoft Visual C++.
6674 if test "$GCC" != yes; then
6675 with_gnu_ld=no
6676 fi
6677 ;;
6678 interix*)
6679 # we just hope/assume this is gcc and not c89 (= MSVC++)
6680 with_gnu_ld=yes
6681 ;;
6682 openbsd*)
6683 with_gnu_ld=no
6684 ;;
6685 esac
6686
6687 ld_shlibs=yes
6688 if test "$with_gnu_ld" = yes; then
6689 # If archive_cmds runs LD, not CC, wlarc should be empty
6690 wlarc='${wl}'
6691
6692 # Set some defaults for GNU ld with shared library support. These
6693 # are reset later if shared libraries are not supported. Putting them
6694 # here allows them to be overridden if necessary.
6695 runpath_var=LD_RUN_PATH
6696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6697 export_dynamic_flag_spec='${wl}--export-dynamic'
6698 # ancient GNU ld didn't support --whole-archive et. al.
6699 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6700 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6701 else
6702 whole_archive_flag_spec=
6703 fi
6704 supports_anon_versioning=no
6705 case `$LD -v 2>&1` in
6706 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6707 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6708 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6709 *\ 2.11.*) ;; # other 2.11 versions
6710 *) supports_anon_versioning=yes ;;
6711 esac
6712
6713 # See if GNU ld supports shared libraries.
6714 case $host_os in
6715 aix3* | aix4* | aix5*)
6716 # On AIX/PPC, the GNU linker is very broken
6717 if test "$host_cpu" != ia64; then
6718 ld_shlibs=no
6719 cat <<_LT_EOF 1>&2
6720
6721 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6722 *** to be unable to reliably create shared libraries on AIX.
6723 *** Therefore, libtool is disabling shared libraries support. If you
6724 *** really care for shared libraries, you may want to modify your PATH
6725 *** so that a non-GNU linker is found, and then restart.
6726
6727 _LT_EOF
6728 fi
6729 ;;
6730
6731 amigaos*)
6732 if test "$host_cpu" = m68k; then
6733 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6734 hardcode_libdir_flag_spec='-L$libdir'
6735 hardcode_minus_L=yes
6736 fi
6737
6738 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6739 # that the semantics of dynamic libraries on AmigaOS, at least up
6740 # to version 4, is to share data among multiple programs linked
6741 # with the same dynamic library. Since this doesn't match the
6742 # behavior of shared libraries on other platforms, we can't use
6743 # them.
6744 ld_shlibs=no
6745 ;;
6746
6747 beos*)
6748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6749 allow_undefined_flag=unsupported
6750 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6751 # support --undefined. This deserves some investigation. FIXME
6752 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6753 else
6754 ld_shlibs=no
6755 fi
6756 ;;
6757
6758 cygwin* | mingw* | pw32*)
6759 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6760 # as there is no search path for DLLs.
6761 hardcode_libdir_flag_spec='-L$libdir'
6762 allow_undefined_flag=unsupported
6763 always_export_symbols=no
6764 enable_shared_with_static_runtimes=yes
6765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6766
6767 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6769 # If the export-symbols file already is a .def file (1st line
6770 # is EXPORTS), use it as is; otherwise, prepend...
6771 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6772 cp $export_symbols $output_objdir/$soname.def;
6773 else
6774 echo EXPORTS > $output_objdir/$soname.def;
6775 cat $export_symbols >> $output_objdir/$soname.def;
6776 fi~
6777 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6778 else
6779 ld_shlibs=no
6780 fi
6781 ;;
6782
6783 interix[3-9]*)
6784 hardcode_direct=no
6785 hardcode_shlibpath_var=no
6786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6787 export_dynamic_flag_spec='${wl}-E'
6788 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6789 # Instead, shared libraries are loaded at an image base (0x10000000 by
6790 # default) and relocated if they conflict, which is a slow very memory
6791 # consuming and fragmenting process. To avoid this, we pick a random,
6792 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6793 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6794 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6795 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6796 ;;
6797
6798 gnu* | linux* | tpf* | k*bsd*-gnu)
6799 tmp_diet=no
6800 if test "$host_os" = linux-dietlibc; then
6801 case $cc_basename in
6802 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6803 esac
6804 fi
6805 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6806 && test "$tmp_diet" = no
6807 then
6808 tmp_addflag=
6809 case $cc_basename,$host_cpu in
6810 pgcc*) # Portland Group C compiler
6811 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6812 tmp_addflag=' $pic_flag'
6813 ;;
6814 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6815 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6816 tmp_addflag=' $pic_flag -Mnomain' ;;
6817 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6818 tmp_addflag=' -i_dynamic' ;;
6819 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6820 tmp_addflag=' -i_dynamic -nofor_main' ;;
6821 ifc* | ifort*) # Intel Fortran compiler
6822 tmp_addflag=' -nofor_main' ;;
6823 esac
6824 case `$CC -V 2>&1 | sed 5q` in
6825 *Sun\ C*) # Sun C 5.9
6826 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6827 compiler_needs_object=yes
6828 tmp_sharedflag='-G' ;;
6829 *Sun\ F*) # Sun Fortran 8.3
6830 tmp_sharedflag='-G' ;;
6831 *)
6832 tmp_sharedflag='-shared' ;;
6833 esac
6834 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6835
6836 if test "x$supports_anon_versioning" = xyes; then
6837 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6838 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6839 echo "local: *; };" >> $output_objdir/$libname.ver~
6840 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6841 fi
6842 else
6843 ld_shlibs=no
6844 fi
6845 ;;
6846
6847 netbsd*)
6848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6849 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6850 wlarc=
6851 else
6852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6853 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6854 fi
6855 ;;
6856
6857 solaris*)
6858 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6859 ld_shlibs=no
6860 cat <<_LT_EOF 1>&2
6861
6862 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6863 *** create shared libraries on Solaris systems. Therefore, libtool
6864 *** is disabling shared libraries support. We urge you to upgrade GNU
6865 *** binutils to release 2.9.1 or newer. Another option is to modify
6866 *** your PATH or compiler configuration so that the native linker is
6867 *** used, and then restart.
6868
6869 _LT_EOF
6870 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6873 else
6874 ld_shlibs=no
6875 fi
6876 ;;
6877
6878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6879 case `$LD -v 2>&1` in
6880 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6881 ld_shlibs=no
6882 cat <<_LT_EOF 1>&2
6883
6884 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6885 *** reliably create shared libraries on SCO systems. Therefore, libtool
6886 *** is disabling shared libraries support. We urge you to upgrade GNU
6887 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6888 *** your PATH or compiler configuration so that the native linker is
6889 *** used, and then restart.
6890
6891 _LT_EOF
6892 ;;
6893 *)
6894 # For security reasons, it is highly recommended that you always
6895 # use absolute paths for naming shared libraries, and exclude the
6896 # DT_RUNPATH tag from executables and libraries. But doing so
6897 # requires that you compile everything twice, which is a pain.
6898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6902 else
6903 ld_shlibs=no
6904 fi
6905 ;;
6906 esac
6907 ;;
6908
6909 sunos4*)
6910 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6911 wlarc=
6912 hardcode_direct=yes
6913 hardcode_shlibpath_var=no
6914 ;;
6915
6916 *)
6917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6919 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6920 else
6921 ld_shlibs=no
6922 fi
6923 ;;
6924 esac
6925
6926 if test "$ld_shlibs" = no; then
6927 runpath_var=
6928 hardcode_libdir_flag_spec=
6929 export_dynamic_flag_spec=
6930 whole_archive_flag_spec=
6931 fi
6932 else
6933 # PORTME fill in a description of your system's linker (not GNU ld)
6934 case $host_os in
6935 aix3*)
6936 allow_undefined_flag=unsupported
6937 always_export_symbols=yes
6938 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6939 # Note: this linker hardcodes the directories in LIBPATH if there
6940 # are no directories specified by -L.
6941 hardcode_minus_L=yes
6942 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6943 # Neither direct hardcoding nor static linking is supported with a
6944 # broken collect2.
6945 hardcode_direct=unsupported
6946 fi
6947 ;;
6948
6949 aix4* | aix5*)
6950 if test "$host_cpu" = ia64; then
6951 # On IA64, the linker does run time linking by default, so we don't
6952 # have to do anything special.
6953 aix_use_runtimelinking=no
6954 exp_sym_flag='-Bexport'
6955 no_entry_flag=""
6956 else
6957 # If we're using GNU nm, then we don't want the "-C" option.
6958 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6959 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6960 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6961 else
6962 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6963 fi
6964 aix_use_runtimelinking=no
6965
6966 # Test if we are trying to use run time linking or normal
6967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6968 # need to do runtime linking.
6969 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6970 for ld_flag in $LDFLAGS; do
6971 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6972 aix_use_runtimelinking=yes
6973 break
6974 fi
6975 done
6976 ;;
6977 esac
6978
6979 exp_sym_flag='-bexport'
6980 no_entry_flag='-bnoentry'
6981 fi
6982
6983 # When large executables or shared objects are built, AIX ld can
6984 # have problems creating the table of contents. If linking a library
6985 # or program results in "error TOC overflow" add -mminimal-toc to
6986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6988
6989 archive_cmds=''
6990 hardcode_direct=yes
6991 hardcode_direct_absolute=yes
6992 hardcode_libdir_separator=':'
6993 link_all_deplibs=yes
6994 file_list_spec='${wl}-f,'
6995
6996 if test "$GCC" = yes; then
6997 case $host_os in aix4.[012]|aix4.[012].*)
6998 # We only want to do this on AIX 4.2 and lower, the check
6999 # below for broken collect2 doesn't work under 4.3+
7000 collect2name=`${CC} -print-prog-name=collect2`
7001 if test -f "$collect2name" &&
7002 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7003 then
7004 # We have reworked collect2
7005 :
7006 else
7007 # We have old collect2
7008 hardcode_direct=unsupported
7009 # It fails to find uninstalled libraries when the uninstalled
7010 # path is not listed in the libpath. Setting hardcode_minus_L
7011 # to unsupported forces relinking
7012 hardcode_minus_L=yes
7013 hardcode_libdir_flag_spec='-L$libdir'
7014 hardcode_libdir_separator=
7015 fi
7016 ;;
7017 esac
7018 shared_flag='-shared'
7019 if test "$aix_use_runtimelinking" = yes; then
7020 shared_flag="$shared_flag "'${wl}-G'
7021 fi
7022 else
7023 # not using gcc
7024 if test "$host_cpu" = ia64; then
7025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7026 # chokes on -Wl,-G. The following line is correct:
7027 shared_flag='-G'
7028 else
7029 if test "$aix_use_runtimelinking" = yes; then
7030 shared_flag='${wl}-G'
7031 else
7032 shared_flag='${wl}-bM:SRE'
7033 fi
7034 fi
7035 fi
7036
7037 # It seems that -bexpall does not export symbols beginning with
7038 # underscore (_), so it is better to generate a list of symbols to export.
7039 always_export_symbols=yes
7040 if test "$aix_use_runtimelinking" = yes; then
7041 # Warning - without using the other runtime loading flags (-brtl),
7042 # -berok will link without error, but may produce a broken library.
7043 allow_undefined_flag='-berok'
7044 # Determine the default libpath from the value encoded in an
7045 # empty executable.
7046 if test x$gcc_no_link = xyes; then
7047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7049 { (exit 1); exit 1; }; }
7050 fi
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057
7058 int
7059 main ()
7060 {
7061
7062 ;
7063 return 0;
7064 }
7065 _ACEOF
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest$ac_exeext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087
7088 lt_aix_libpath_sed='
7089 /Import File Strings/,/^$/ {
7090 /^0/ {
7091 s/^0 *\(.*\)$/\1/
7092 p
7093 }
7094 }'
7095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7096 # Check for a 64-bit object if we didn't find anything.
7097 if test -z "$aix_libpath"; then
7098 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7099 fi
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7103
7104 fi
7105 rm -f conftest.err conftest.$ac_objext \
7106 conftest$ac_exeext conftest.$ac_ext
7107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7108
7109 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7110 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7111 else
7112 if test "$host_cpu" = ia64; then
7113 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7114 allow_undefined_flag="-z nodefs"
7115 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7116 else
7117 # Determine the default libpath from the value encoded in an
7118 # empty executable.
7119 if test x$gcc_no_link = xyes; then
7120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7122 { (exit 1); exit 1; }; }
7123 fi
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130
7131 int
7132 main ()
7133 {
7134
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest$ac_exeext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160
7161 lt_aix_libpath_sed='
7162 /Import File Strings/,/^$/ {
7163 /^0/ {
7164 s/^0 *\(.*\)$/\1/
7165 p
7166 }
7167 }'
7168 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7169 # Check for a 64-bit object if we didn't find anything.
7170 if test -z "$aix_libpath"; then
7171 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7172 fi
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177 fi
7178 rm -f conftest.err conftest.$ac_objext \
7179 conftest$ac_exeext conftest.$ac_ext
7180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7181
7182 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7183 # Warning - without using the other run time loading flags,
7184 # -berok will link without error, but may produce a broken library.
7185 no_undefined_flag=' ${wl}-bernotok'
7186 allow_undefined_flag=' ${wl}-berok'
7187 # Exported symbols can be pulled into shared objects from archives
7188 whole_archive_flag_spec='$convenience'
7189 archive_cmds_need_lc=yes
7190 # This is similar to how AIX traditionally builds its shared libraries.
7191 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7192 fi
7193 fi
7194 ;;
7195
7196 amigaos*)
7197 if test "$host_cpu" = m68k; then
7198 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7199 hardcode_libdir_flag_spec='-L$libdir'
7200 hardcode_minus_L=yes
7201 fi
7202 # see comment about different semantics on the GNU ld section
7203 ld_shlibs=no
7204 ;;
7205
7206 bsdi[45]*)
7207 export_dynamic_flag_spec=-rdynamic
7208 ;;
7209
7210 cygwin* | mingw* | pw32*)
7211 # When not using gcc, we currently assume that we are using
7212 # Microsoft Visual C++.
7213 # hardcode_libdir_flag_spec is actually meaningless, as there is
7214 # no search path for DLLs.
7215 hardcode_libdir_flag_spec=' '
7216 allow_undefined_flag=unsupported
7217 # Tell ltmain to make .lib files, not .a files.
7218 libext=lib
7219 # Tell ltmain to make .dll files, not .so files.
7220 shrext_cmds=".dll"
7221 # FIXME: Setting linknames here is a bad hack.
7222 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7223 # The linker will automatically build a .lib file if we build a DLL.
7224 old_archive_from_new_cmds='true'
7225 # FIXME: Should let the user specify the lib program.
7226 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7227 fix_srcfile_path='`cygpath -w "$srcfile"`'
7228 enable_shared_with_static_runtimes=yes
7229 ;;
7230
7231 darwin* | rhapsody*)
7232 case $host_os in
7233 rhapsody* | darwin1.[012])
7234 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7235 ;;
7236 *) # Darwin 1.3 on
7237 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7238 10.[012])
7239 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7240 ;;
7241 10.*)
7242 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7243 ;;
7244 esac
7245 ;;
7246 esac
7247 archive_cmds_need_lc=no
7248 hardcode_direct=no
7249 hardcode_automatic=yes
7250 hardcode_shlibpath_var=unsupported
7251 whole_archive_flag_spec=''
7252 link_all_deplibs=yes
7253 if test "$GCC" = yes ; then
7254 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 lt_cv_apple_cc_single_mod=no
7258 if test -z "${LT_MULTI_MODULE}"; then
7259 # By default we will add the -single_module flag. You can override
7260 # by either setting the environment variable LT_MULTI_MODULE
7261 # non-empty at configure time, or by adding -multi-module to the
7262 # link flags.
7263 echo "int foo(void){return 1;}" > conftest.c
7264 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7265 -dynamiclib ${wl}-single_module conftest.c
7266 if test -f libconftest.dylib; then
7267 lt_cv_apple_cc_single_mod=yes
7268 rm libconftest.dylib
7269 fi
7270 rm conftest.$ac_ext
7271 fi
7272 fi
7273
7274 output_verbose_link_cmd=echo
7275 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7276 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7277 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7278 else
7279 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7280 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7281 fi
7282 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7283 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7284 else
7285 case $cc_basename in
7286 xlc*)
7287 output_verbose_link_cmd=echo
7288 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7289 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7290 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7291 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7292 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7293 ;;
7294 *)
7295 ld_shlibs=no
7296 ;;
7297 esac
7298 fi
7299 ;;
7300
7301 dgux*)
7302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7303 hardcode_libdir_flag_spec='-L$libdir'
7304 hardcode_shlibpath_var=no
7305 ;;
7306
7307 freebsd1*)
7308 ld_shlibs=no
7309 ;;
7310
7311 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7312 # support. Future versions do this automatically, but an explicit c++rt0.o
7313 # does not break anything, and helps significantly (at the cost of a little
7314 # extra space).
7315 freebsd2.2*)
7316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7317 hardcode_libdir_flag_spec='-R$libdir'
7318 hardcode_direct=yes
7319 hardcode_shlibpath_var=no
7320 ;;
7321
7322 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7323 freebsd2*)
7324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7325 hardcode_direct=yes
7326 hardcode_minus_L=yes
7327 hardcode_shlibpath_var=no
7328 ;;
7329
7330 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7331 freebsd* | dragonfly*)
7332 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7333 hardcode_libdir_flag_spec='-R$libdir'
7334 hardcode_direct=yes
7335 hardcode_shlibpath_var=no
7336 ;;
7337
7338 hpux9*)
7339 if test "$GCC" = yes; then
7340 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7341 else
7342 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7343 fi
7344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7345 hardcode_libdir_separator=:
7346 hardcode_direct=yes
7347
7348 # hardcode_minus_L: Not really in the search PATH,
7349 # but as the default location of the library.
7350 hardcode_minus_L=yes
7351 export_dynamic_flag_spec='${wl}-E'
7352 ;;
7353
7354 hpux10*)
7355 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7357 else
7358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7359 fi
7360 if test "$with_gnu_ld" = no; then
7361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7362 hardcode_libdir_flag_spec_ld='+b $libdir'
7363 hardcode_libdir_separator=:
7364 hardcode_direct=yes
7365 hardcode_direct_absolute=yes
7366 export_dynamic_flag_spec='${wl}-E'
7367 # hardcode_minus_L: Not really in the search PATH,
7368 # but as the default location of the library.
7369 hardcode_minus_L=yes
7370 fi
7371 ;;
7372
7373 hpux11*)
7374 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7375 case $host_cpu in
7376 hppa*64*)
7377 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7378 ;;
7379 ia64*)
7380 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7381 ;;
7382 *)
7383 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7384 ;;
7385 esac
7386 else
7387 case $host_cpu in
7388 hppa*64*)
7389 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7390 ;;
7391 ia64*)
7392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7393 ;;
7394 *)
7395 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7396 ;;
7397 esac
7398 fi
7399 if test "$with_gnu_ld" = no; then
7400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7401 hardcode_libdir_separator=:
7402
7403 case $host_cpu in
7404 hppa*64*|ia64*)
7405 hardcode_direct=no
7406 hardcode_shlibpath_var=no
7407 ;;
7408 *)
7409 hardcode_direct=yes
7410 hardcode_direct_absolute=yes
7411 export_dynamic_flag_spec='${wl}-E'
7412
7413 # hardcode_minus_L: Not really in the search PATH,
7414 # but as the default location of the library.
7415 hardcode_minus_L=yes
7416 ;;
7417 esac
7418 fi
7419 ;;
7420
7421 irix5* | irix6* | nonstopux*)
7422 if test "$GCC" = yes; then
7423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7424 # Try to use the -exported_symbol ld option, if it does not
7425 # work, assume that -exports_file does not work either and
7426 # implicitly export all symbols.
7427 save_LDFLAGS="$LDFLAGS"
7428 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7429 if test x$gcc_no_link = xyes; then
7430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7432 { (exit 1); exit 1; }; }
7433 fi
7434 cat >conftest.$ac_ext <<_ACEOF
7435 int foo(void) {}
7436 _ACEOF
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } &&
7446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 (eval $ac_try) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; } &&
7452 { ac_try='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7459
7460 else
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 fi
7465 rm -f conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467 LDFLAGS="$save_LDFLAGS"
7468 else
7469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7471 fi
7472 archive_cmds_need_lc='no'
7473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7474 hardcode_libdir_separator=:
7475 inherit_rpath=yes
7476 link_all_deplibs=yes
7477 ;;
7478
7479 netbsd*)
7480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7481 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7482 else
7483 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7484 fi
7485 hardcode_libdir_flag_spec='-R$libdir'
7486 hardcode_direct=yes
7487 hardcode_shlibpath_var=no
7488 ;;
7489
7490 newsos6)
7491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7492 hardcode_direct=yes
7493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7494 hardcode_libdir_separator=:
7495 hardcode_shlibpath_var=no
7496 ;;
7497
7498 *nto* | *qnx*)
7499 ;;
7500
7501 openbsd*)
7502 hardcode_direct=yes
7503 hardcode_shlibpath_var=no
7504 hardcode_direct_absolute=yes
7505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7507 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7509 export_dynamic_flag_spec='${wl}-E'
7510 else
7511 case $host_os in
7512 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7514 hardcode_libdir_flag_spec='-R$libdir'
7515 ;;
7516 *)
7517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7519 ;;
7520 esac
7521 fi
7522 ;;
7523
7524 os2*)
7525 hardcode_libdir_flag_spec='-L$libdir'
7526 hardcode_minus_L=yes
7527 allow_undefined_flag=unsupported
7528 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7529 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7530 ;;
7531
7532 osf3*)
7533 if test "$GCC" = yes; then
7534 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7535 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7536 else
7537 allow_undefined_flag=' -expect_unresolved \*'
7538 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7539 fi
7540 archive_cmds_need_lc='no'
7541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7542 hardcode_libdir_separator=:
7543 ;;
7544
7545 osf4* | osf5*) # as osf3* with the addition of -msym flag
7546 if test "$GCC" = yes; then
7547 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7548 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7550 else
7551 allow_undefined_flag=' -expect_unresolved \*'
7552 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7553 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7554 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7555
7556 # Both c and cxx compiler support -rpath directly
7557 hardcode_libdir_flag_spec='-rpath $libdir'
7558 fi
7559 archive_cmds_need_lc='no'
7560 hardcode_libdir_separator=:
7561 ;;
7562
7563 solaris*)
7564 no_undefined_flag=' -z defs'
7565 if test "$GCC" = yes; then
7566 wlarc='${wl}'
7567 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7569 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7570 else
7571 case `$CC -V 2>&1` in
7572 *"Compilers 5.0"*)
7573 wlarc=''
7574 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7575 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7577 ;;
7578 *)
7579 wlarc='${wl}'
7580 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7581 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7582 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7583 ;;
7584 esac
7585 fi
7586 hardcode_libdir_flag_spec='-R$libdir'
7587 hardcode_shlibpath_var=no
7588 case $host_os in
7589 solaris2.[0-5] | solaris2.[0-5].*) ;;
7590 *)
7591 # The compiler driver will combine and reorder linker options,
7592 # but understands `-z linker_flag'. GCC discards it without `$wl',
7593 # but is careful enough not to reorder.
7594 # Supported since Solaris 2.6 (maybe 2.5.1?)
7595 if test "$GCC" = yes; then
7596 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7597 else
7598 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7599 fi
7600 ;;
7601 esac
7602 link_all_deplibs=yes
7603 ;;
7604
7605 sunos4*)
7606 if test "x$host_vendor" = xsequent; then
7607 # Use $CC to link under sequent, because it throws in some extra .o
7608 # files that make .init and .fini sections work.
7609 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7610 else
7611 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7612 fi
7613 hardcode_libdir_flag_spec='-L$libdir'
7614 hardcode_direct=yes
7615 hardcode_minus_L=yes
7616 hardcode_shlibpath_var=no
7617 ;;
7618
7619 sysv4)
7620 case $host_vendor in
7621 sni)
7622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7623 hardcode_direct=yes # is this really true???
7624 ;;
7625 siemens)
7626 ## LD is ld it makes a PLAMLIB
7627 ## CC just makes a GrossModule.
7628 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7629 reload_cmds='$CC -r -o $output$reload_objs'
7630 hardcode_direct=no
7631 ;;
7632 motorola)
7633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7634 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7635 ;;
7636 esac
7637 runpath_var='LD_RUN_PATH'
7638 hardcode_shlibpath_var=no
7639 ;;
7640
7641 sysv4.3*)
7642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7643 hardcode_shlibpath_var=no
7644 export_dynamic_flag_spec='-Bexport'
7645 ;;
7646
7647 sysv4*MP*)
7648 if test -d /usr/nec; then
7649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7650 hardcode_shlibpath_var=no
7651 runpath_var=LD_RUN_PATH
7652 hardcode_runpath_var=yes
7653 ld_shlibs=yes
7654 fi
7655 ;;
7656
7657 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7658 no_undefined_flag='${wl}-z,text'
7659 archive_cmds_need_lc=no
7660 hardcode_shlibpath_var=no
7661 runpath_var='LD_RUN_PATH'
7662
7663 if test "$GCC" = yes; then
7664 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7665 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7666 else
7667 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7668 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7669 fi
7670 ;;
7671
7672 sysv5* | sco3.2v5* | sco5v6*)
7673 # Note: We can NOT use -z defs as we might desire, because we do not
7674 # link with -lc, and that would cause any symbols used from libc to
7675 # always be unresolved, which means just about no library would
7676 # ever link correctly. If we're not using GNU ld we use -z text
7677 # though, which does catch some bad symbols but isn't as heavy-handed
7678 # as -z defs.
7679 no_undefined_flag='${wl}-z,text'
7680 allow_undefined_flag='${wl}-z,nodefs'
7681 archive_cmds_need_lc=no
7682 hardcode_shlibpath_var=no
7683 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7684 hardcode_libdir_separator=':'
7685 link_all_deplibs=yes
7686 export_dynamic_flag_spec='${wl}-Bexport'
7687 runpath_var='LD_RUN_PATH'
7688
7689 if test "$GCC" = yes; then
7690 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7691 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7692 else
7693 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7694 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7695 fi
7696 ;;
7697
7698 uts4*)
7699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7700 hardcode_libdir_flag_spec='-L$libdir'
7701 hardcode_shlibpath_var=no
7702 ;;
7703
7704 *)
7705 ld_shlibs=no
7706 ;;
7707 esac
7708
7709 if test x$host_vendor = xsni; then
7710 case $host in
7711 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7712 export_dynamic_flag_spec='${wl}-Blargedynsym'
7713 ;;
7714 esac
7715 fi
7716 fi
7717
7718 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7719 echo "${ECHO_T}$ld_shlibs" >&6
7720 test "$ld_shlibs" = no && can_build_shared=no
7721
7722 with_gnu_ld=$with_gnu_ld
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738 #
7739 # Do we need to explicitly link libc?
7740 #
7741 case "x$archive_cmds_need_lc" in
7742 x|xyes)
7743 # Assume -lc should be added
7744 archive_cmds_need_lc=yes
7745
7746 if test "$enable_shared" = yes && test "$GCC" = yes; then
7747 case $archive_cmds in
7748 *'~'*)
7749 # FIXME: we may have to deal with multi-command sequences.
7750 ;;
7751 '$CC '*)
7752 # Test whether the compiler implicitly links with -lc since on some
7753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7754 # to ld, don't add -lc before -lgcc.
7755 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7756 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7757 $RM conftest*
7758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7759
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } 2>conftest.err; then
7765 soname=conftest
7766 lib=conftest
7767 libobjs=conftest.$ac_objext
7768 deplibs=
7769 wl=$lt_prog_compiler_wl
7770 pic_flag=$lt_prog_compiler_pic
7771 compiler_flags=-v
7772 linker_flags=-v
7773 verstring=
7774 output_objdir=.
7775 libname=conftest
7776 lt_save_allow_undefined_flag=$allow_undefined_flag
7777 allow_undefined_flag=
7778 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7779 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }
7783 then
7784 archive_cmds_need_lc=no
7785 else
7786 archive_cmds_need_lc=yes
7787 fi
7788 allow_undefined_flag=$lt_save_allow_undefined_flag
7789 else
7790 cat conftest.err 1>&5
7791 fi
7792 $RM conftest*
7793 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7794 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7795 ;;
7796 esac
7797 fi
7798 ;;
7799 esac
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7958 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7959 withGCC=$GCC
7960 if test "$withGCC" = yes; then
7961 case $host_os in
7962 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7963 *) lt_awk_arg="/^libraries:/" ;;
7964 esac
7965 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7966 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7967 # if the path contains ";" then we assume it to be the separator
7968 # otherwise default to the standard path separator (i.e. ":") - it is
7969 # assumed that no part of a normal pathname contains ";" but that should
7970 # okay in the real world where ";" in dirpaths is itself problematic.
7971 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7972 else
7973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7974 fi
7975 # Ok, now we have the path, separated by spaces, we can step through it
7976 # and add multilib dir if necessary.
7977 lt_tmp_lt_search_path_spec=
7978 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7979 for lt_sys_path in $lt_search_path_spec; do
7980 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7981 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7982 else
7983 test -d "$lt_sys_path" && \
7984 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7985 fi
7986 done
7987 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7988 BEGIN {RS=" "; FS="/|\n";} {
7989 lt_foo="";
7990 lt_count=0;
7991 for (lt_i = NF; lt_i > 0; lt_i--) {
7992 if ($lt_i != "" && $lt_i != ".") {
7993 if ($lt_i == "..") {
7994 lt_count++;
7995 } else {
7996 if (lt_count == 0) {
7997 lt_foo="/" $lt_i lt_foo;
7998 } else {
7999 lt_count--;
8000 }
8001 }
8002 }
8003 }
8004 if (lt_foo != "") { lt_freq[lt_foo]++; }
8005 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8006 }'`
8007 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8008 else
8009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8010 fi
8011 library_names_spec=
8012 libname_spec='lib$name'
8013 soname_spec=
8014 shrext_cmds=".so"
8015 postinstall_cmds=
8016 postuninstall_cmds=
8017 finish_cmds=
8018 finish_eval=
8019 shlibpath_var=
8020 shlibpath_overrides_runpath=unknown
8021 version_type=none
8022 dynamic_linker="$host_os ld.so"
8023 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8024 need_lib_prefix=unknown
8025 hardcode_into_libs=no
8026
8027 # when you set need_version to no, make sure it does not cause -set_version
8028 # flags to be left without arguments
8029 need_version=unknown
8030
8031 case $host_os in
8032 aix3*)
8033 version_type=linux
8034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8035 shlibpath_var=LIBPATH
8036
8037 # AIX 3 has no versioning support, so we append a major version to the name.
8038 soname_spec='${libname}${release}${shared_ext}$major'
8039 ;;
8040
8041 aix4* | aix5*)
8042 version_type=linux
8043 need_lib_prefix=no
8044 need_version=no
8045 hardcode_into_libs=yes
8046 if test "$host_cpu" = ia64; then
8047 # AIX 5 supports IA64
8048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8049 shlibpath_var=LD_LIBRARY_PATH
8050 else
8051 # With GCC up to 2.95.x, collect2 would create an import file
8052 # for dependence libraries. The import file would start with
8053 # the line `#! .'. This would cause the generated library to
8054 # depend on `.', always an invalid library. This was fixed in
8055 # development snapshots of GCC prior to 3.0.
8056 case $host_os in
8057 aix4 | aix4.[01] | aix4.[01].*)
8058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8059 echo ' yes '
8060 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8061 :
8062 else
8063 can_build_shared=no
8064 fi
8065 ;;
8066 esac
8067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8068 # soname into executable. Probably we can add versioning support to
8069 # collect2, so additional links can be useful in future.
8070 if test "$aix_use_runtimelinking" = yes; then
8071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8072 # instead of lib<name>.a to let people know that these are not
8073 # typical AIX shared libraries.
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075 else
8076 # We preserve .a as extension for shared libraries through AIX4.2
8077 # and later when we are not doing run time linking.
8078 library_names_spec='${libname}${release}.a $libname.a'
8079 soname_spec='${libname}${release}${shared_ext}$major'
8080 fi
8081 shlibpath_var=LIBPATH
8082 fi
8083 ;;
8084
8085 amigaos*)
8086 if test "$host_cpu" = m68k; then
8087 library_names_spec='$libname.ixlibrary $libname.a'
8088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8089 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8090 else
8091 dynamic_linker=no
8092 fi
8093 ;;
8094
8095 beos*)
8096 library_names_spec='${libname}${shared_ext}'
8097 dynamic_linker="$host_os ld.so"
8098 shlibpath_var=LIBRARY_PATH
8099 ;;
8100
8101 bsdi[45]*)
8102 version_type=linux
8103 need_version=no
8104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8105 soname_spec='${libname}${release}${shared_ext}$major'
8106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8107 shlibpath_var=LD_LIBRARY_PATH
8108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8110 # the default ld.so.conf also contains /usr/contrib/lib and
8111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8112 # libtool to hard-code these into programs
8113 ;;
8114
8115 cygwin* | mingw* | pw32*)
8116 version_type=windows
8117 shrext_cmds=".dll"
8118 need_version=no
8119 need_lib_prefix=no
8120
8121 case $withGCC,$host_os in
8122 yes,cygwin* | yes,mingw* | yes,pw32*)
8123 library_names_spec='$libname.dll.a'
8124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8125 postinstall_cmds='base_file=`basename \${file}`~
8126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8127 dldir=$destdir/`dirname \$dlpath`~
8128 test -d \$dldir || mkdir -p \$dldir~
8129 $install_prog $dir/$dlname \$dldir/$dlname~
8130 chmod a+x \$dldir/$dlname~
8131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8133 fi'
8134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8135 dlpath=$dir/\$dldll~
8136 $RM \$dlpath'
8137 shlibpath_overrides_runpath=yes
8138
8139 case $host_os in
8140 cygwin*)
8141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8143 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8144 ;;
8145 mingw*)
8146 # MinGW DLLs use traditional 'lib' prefix
8147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8148 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8149 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8150 # It is most probably a Windows format PATH printed by
8151 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8152 # path with ; separators, and with drive letters. We can handle the
8153 # drive letters (cygwin fileutils understands them), so leave them,
8154 # especially as we might pass files found there to a mingw objdump,
8155 # which wouldn't understand a cygwinified path. Ahh.
8156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8157 else
8158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8159 fi
8160 ;;
8161 pw32*)
8162 # pw32 DLLs use 'pw' prefix rather than 'lib'
8163 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8164 ;;
8165 esac
8166 ;;
8167
8168 *)
8169 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8170 ;;
8171 esac
8172 dynamic_linker='Win32 ld.exe'
8173 # FIXME: first we should search . and the directory the executable is in
8174 shlibpath_var=PATH
8175 ;;
8176
8177 darwin* | rhapsody*)
8178 dynamic_linker="$host_os dyld"
8179 version_type=darwin
8180 need_lib_prefix=no
8181 need_version=no
8182 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8183 soname_spec='${libname}${release}${major}$shared_ext'
8184 shlibpath_overrides_runpath=yes
8185 shlibpath_var=DYLD_LIBRARY_PATH
8186 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8187
8188 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8189 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8190 ;;
8191
8192 dgux*)
8193 version_type=linux
8194 need_lib_prefix=no
8195 need_version=no
8196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8197 soname_spec='${libname}${release}${shared_ext}$major'
8198 shlibpath_var=LD_LIBRARY_PATH
8199 ;;
8200
8201 freebsd1*)
8202 dynamic_linker=no
8203 ;;
8204
8205 freebsd* | dragonfly*)
8206 # DragonFly does not have aout. When/if they implement a new
8207 # versioning mechanism, adjust this.
8208 if test -x /usr/bin/objformat; then
8209 objformat=`/usr/bin/objformat`
8210 else
8211 case $host_os in
8212 freebsd[123]*) objformat=aout ;;
8213 *) objformat=elf ;;
8214 esac
8215 fi
8216 version_type=freebsd-$objformat
8217 case $version_type in
8218 freebsd-elf*)
8219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8220 need_version=no
8221 need_lib_prefix=no
8222 ;;
8223 freebsd-*)
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8225 need_version=yes
8226 ;;
8227 esac
8228 shlibpath_var=LD_LIBRARY_PATH
8229 case $host_os in
8230 freebsd2*)
8231 shlibpath_overrides_runpath=yes
8232 ;;
8233 freebsd3.[01]* | freebsdelf3.[01]*)
8234 shlibpath_overrides_runpath=yes
8235 hardcode_into_libs=yes
8236 ;;
8237 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8238 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8239 shlibpath_overrides_runpath=no
8240 hardcode_into_libs=yes
8241 ;;
8242 *) # from 4.6 on, and DragonFly
8243 shlibpath_overrides_runpath=yes
8244 hardcode_into_libs=yes
8245 ;;
8246 esac
8247 ;;
8248
8249 gnu*)
8250 version_type=linux
8251 need_lib_prefix=no
8252 need_version=no
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8254 soname_spec='${libname}${release}${shared_ext}$major'
8255 shlibpath_var=LD_LIBRARY_PATH
8256 hardcode_into_libs=yes
8257 ;;
8258
8259 hpux9* | hpux10* | hpux11*)
8260 # Give a soname corresponding to the major version so that dld.sl refuses to
8261 # link against other versions.
8262 version_type=sunos
8263 need_lib_prefix=no
8264 need_version=no
8265 case $host_cpu in
8266 ia64*)
8267 shrext_cmds='.so'
8268 hardcode_into_libs=yes
8269 dynamic_linker="$host_os dld.so"
8270 shlibpath_var=LD_LIBRARY_PATH
8271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273 soname_spec='${libname}${release}${shared_ext}$major'
8274 if test "X$HPUX_IA64_MODE" = X32; then
8275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8276 else
8277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8278 fi
8279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8280 ;;
8281 hppa*64*)
8282 shrext_cmds='.sl'
8283 hardcode_into_libs=yes
8284 dynamic_linker="$host_os dld.sl"
8285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8288 soname_spec='${libname}${release}${shared_ext}$major'
8289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8291 ;;
8292 *)
8293 shrext_cmds='.sl'
8294 dynamic_linker="$host_os dld.sl"
8295 shlibpath_var=SHLIB_PATH
8296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 ;;
8300 esac
8301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8302 postinstall_cmds='chmod 555 $lib'
8303 ;;
8304
8305 interix[3-9]*)
8306 version_type=linux
8307 need_lib_prefix=no
8308 need_version=no
8309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8310 soname_spec='${libname}${release}${shared_ext}$major'
8311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8312 shlibpath_var=LD_LIBRARY_PATH
8313 shlibpath_overrides_runpath=no
8314 hardcode_into_libs=yes
8315 ;;
8316
8317 irix5* | irix6* | nonstopux*)
8318 case $host_os in
8319 nonstopux*) version_type=nonstopux ;;
8320 *)
8321 if test "$lt_cv_prog_gnu_ld" = yes; then
8322 version_type=linux
8323 else
8324 version_type=irix
8325 fi ;;
8326 esac
8327 need_lib_prefix=no
8328 need_version=no
8329 soname_spec='${libname}${release}${shared_ext}$major'
8330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8331 case $host_os in
8332 irix5* | nonstopux*)
8333 libsuff= shlibsuff=
8334 ;;
8335 *)
8336 case $LD in # libtool.m4 will add one of these switches to LD
8337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8338 libsuff= shlibsuff= libmagic=32-bit;;
8339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8340 libsuff=32 shlibsuff=N32 libmagic=N32;;
8341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8343 *) libsuff= shlibsuff= libmagic=never-match;;
8344 esac
8345 ;;
8346 esac
8347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8348 shlibpath_overrides_runpath=no
8349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8351 hardcode_into_libs=yes
8352 ;;
8353
8354 # No shared lib support for Linux oldld, aout, or coff.
8355 linux*oldld* | linux*aout* | linux*coff*)
8356 dynamic_linker=no
8357 ;;
8358
8359 # This must be Linux ELF.
8360 linux* | k*bsd*-gnu)
8361 version_type=linux
8362 need_lib_prefix=no
8363 need_version=no
8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8365 soname_spec='${libname}${release}${shared_ext}$major'
8366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8367 shlibpath_var=LD_LIBRARY_PATH
8368 shlibpath_overrides_runpath=no
8369 # Some binutils ld are patched to set DT_RUNPATH
8370 save_LDFLAGS=$LDFLAGS
8371 save_libdir=$libdir
8372 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8373 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8374 if test x$gcc_no_link = xyes; then
8375 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8376 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8377 { (exit 1); exit 1; }; }
8378 fi
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385
8386 int
8387 main ()
8388 {
8389
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8416 shlibpath_overrides_runpath=yes
8417 fi
8418
8419 else
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423 fi
8424 rm -f conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext conftest.$ac_ext
8426 LDFLAGS=$save_LDFLAGS
8427 libdir=$save_libdir
8428
8429 # This implies no fast_install, which is unacceptable.
8430 # Some rework will be needed to allow for fast_install
8431 # before this can be enabled.
8432 hardcode_into_libs=yes
8433
8434 # Append ld.so.conf contents to the search path
8435 if test -f /etc/ld.so.conf; then
8436 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8438 fi
8439
8440 # We used to test for /lib/ld.so.1 and disable shared libraries on
8441 # powerpc, because MkLinux only supported shared libraries with the
8442 # GNU dynamic linker. Since this was broken with cross compilers,
8443 # most powerpc-linux boxes support dynamic linking these days and
8444 # people can always --disable-shared, the test was removed, and we
8445 # assume the GNU/Linux dynamic linker is in use.
8446 dynamic_linker='GNU/Linux ld.so'
8447 ;;
8448
8449 netbsd*)
8450 version_type=sunos
8451 need_lib_prefix=no
8452 need_version=no
8453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8456 dynamic_linker='NetBSD (a.out) ld.so'
8457 else
8458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8459 soname_spec='${libname}${release}${shared_ext}$major'
8460 dynamic_linker='NetBSD ld.elf_so'
8461 fi
8462 shlibpath_var=LD_LIBRARY_PATH
8463 shlibpath_overrides_runpath=yes
8464 hardcode_into_libs=yes
8465 ;;
8466
8467 newsos6)
8468 version_type=linux
8469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8470 shlibpath_var=LD_LIBRARY_PATH
8471 shlibpath_overrides_runpath=yes
8472 ;;
8473
8474 *nto* | *qnx*)
8475 version_type=qnx
8476 need_lib_prefix=no
8477 need_version=no
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8479 soname_spec='${libname}${release}${shared_ext}$major'
8480 shlibpath_var=LD_LIBRARY_PATH
8481 shlibpath_overrides_runpath=no
8482 hardcode_into_libs=yes
8483 dynamic_linker='ldqnx.so'
8484 ;;
8485
8486 openbsd*)
8487 version_type=sunos
8488 sys_lib_dlsearch_path_spec="/usr/lib"
8489 need_lib_prefix=no
8490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8491 case $host_os in
8492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8493 *) need_version=no ;;
8494 esac
8495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8497 shlibpath_var=LD_LIBRARY_PATH
8498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8499 case $host_os in
8500 openbsd2.[89] | openbsd2.[89].*)
8501 shlibpath_overrides_runpath=no
8502 ;;
8503 *)
8504 shlibpath_overrides_runpath=yes
8505 ;;
8506 esac
8507 else
8508 shlibpath_overrides_runpath=yes
8509 fi
8510 ;;
8511
8512 os2*)
8513 libname_spec='$name'
8514 shrext_cmds=".dll"
8515 need_lib_prefix=no
8516 library_names_spec='$libname${shared_ext} $libname.a'
8517 dynamic_linker='OS/2 ld.exe'
8518 shlibpath_var=LIBPATH
8519 ;;
8520
8521 osf3* | osf4* | osf5*)
8522 version_type=osf
8523 need_lib_prefix=no
8524 need_version=no
8525 soname_spec='${libname}${release}${shared_ext}$major'
8526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527 shlibpath_var=LD_LIBRARY_PATH
8528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8530 ;;
8531
8532 rdos*)
8533 dynamic_linker=no
8534 ;;
8535
8536 solaris*)
8537 version_type=linux
8538 need_lib_prefix=no
8539 need_version=no
8540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8541 soname_spec='${libname}${release}${shared_ext}$major'
8542 shlibpath_var=LD_LIBRARY_PATH
8543 shlibpath_overrides_runpath=yes
8544 hardcode_into_libs=yes
8545 # ldd complains unless libraries are executable
8546 postinstall_cmds='chmod +x $lib'
8547 ;;
8548
8549 sunos4*)
8550 version_type=sunos
8551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8553 shlibpath_var=LD_LIBRARY_PATH
8554 shlibpath_overrides_runpath=yes
8555 if test "$with_gnu_ld" = yes; then
8556 need_lib_prefix=no
8557 fi
8558 need_version=yes
8559 ;;
8560
8561 sysv4 | sysv4.3*)
8562 version_type=linux
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8564 soname_spec='${libname}${release}${shared_ext}$major'
8565 shlibpath_var=LD_LIBRARY_PATH
8566 case $host_vendor in
8567 sni)
8568 shlibpath_overrides_runpath=no
8569 need_lib_prefix=no
8570 runpath_var=LD_RUN_PATH
8571 ;;
8572 siemens)
8573 need_lib_prefix=no
8574 ;;
8575 motorola)
8576 need_lib_prefix=no
8577 need_version=no
8578 shlibpath_overrides_runpath=no
8579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8580 ;;
8581 esac
8582 ;;
8583
8584 sysv4*MP*)
8585 if test -d /usr/nec ;then
8586 version_type=linux
8587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8588 soname_spec='$libname${shared_ext}.$major'
8589 shlibpath_var=LD_LIBRARY_PATH
8590 fi
8591 ;;
8592
8593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8594 version_type=freebsd-elf
8595 need_lib_prefix=no
8596 need_version=no
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8598 soname_spec='${libname}${release}${shared_ext}$major'
8599 shlibpath_var=LD_LIBRARY_PATH
8600 shlibpath_overrides_runpath=yes
8601 hardcode_into_libs=yes
8602 if test "$with_gnu_ld" = yes; then
8603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8604 else
8605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8606 case $host_os in
8607 sco3.2v5*)
8608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8609 ;;
8610 esac
8611 fi
8612 sys_lib_dlsearch_path_spec='/usr/lib'
8613 ;;
8614
8615 tpf*)
8616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8617 version_type=linux
8618 need_lib_prefix=no
8619 need_version=no
8620 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8621 shlibpath_var=LD_LIBRARY_PATH
8622 shlibpath_overrides_runpath=no
8623 hardcode_into_libs=yes
8624 ;;
8625
8626 uts4*)
8627 version_type=linux
8628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8629 soname_spec='${libname}${release}${shared_ext}$major'
8630 shlibpath_var=LD_LIBRARY_PATH
8631 ;;
8632
8633 *)
8634 dynamic_linker=no
8635 ;;
8636 esac
8637 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8638 echo "${ECHO_T}$dynamic_linker" >&6
8639 test "$dynamic_linker" = no && can_build_shared=no
8640
8641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8642 if test "$GCC" = yes; then
8643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8644 fi
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8733 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8734 hardcode_action=
8735 if test -n "$hardcode_libdir_flag_spec" ||
8736 test -n "$runpath_var" ||
8737 test "X$hardcode_automatic" = "Xyes" ; then
8738
8739 # We can hardcode non-existent directories.
8740 if test "$hardcode_direct" != no &&
8741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8742 # have to relink, otherwise we might link with an installed library
8743 # when we should be linking with a yet-to-be-installed one
8744 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8745 test "$hardcode_minus_L" != no; then
8746 # Linking always hardcodes the temporary library directory.
8747 hardcode_action=relink
8748 else
8749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8750 hardcode_action=immediate
8751 fi
8752 else
8753 # We cannot hardcode anything, or else we can only hardcode existing
8754 # directories.
8755 hardcode_action=unsupported
8756 fi
8757 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8758 echo "${ECHO_T}$hardcode_action" >&6
8759
8760 if test "$hardcode_action" = relink ||
8761 test "$inherit_rpath" = yes; then
8762 # Fast installation is not supported
8763 enable_fast_install=no
8764 elif test "$shlibpath_overrides_runpath" = yes ||
8765 test "$enable_shared" = no; then
8766 # Fast installation is not necessary
8767 enable_fast_install=needless
8768 fi
8769
8770
8771
8772
8773
8774
8775 if test "x$enable_dlopen" != xyes; then
8776 enable_dlopen=unknown
8777 enable_dlopen_self=unknown
8778 enable_dlopen_self_static=unknown
8779 else
8780 lt_cv_dlopen=no
8781 lt_cv_dlopen_libs=
8782
8783 case $host_os in
8784 beos*)
8785 lt_cv_dlopen="load_add_on"
8786 lt_cv_dlopen_libs=
8787 lt_cv_dlopen_self=yes
8788 ;;
8789
8790 mingw* | pw32*)
8791 lt_cv_dlopen="LoadLibrary"
8792 lt_cv_dlopen_libs=
8793 ;;
8794
8795 cygwin*)
8796 lt_cv_dlopen="dlopen"
8797 lt_cv_dlopen_libs=
8798 ;;
8799
8800 darwin*)
8801 # if libdl is installed we need to link against it
8802 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8803 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8804 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807 ac_check_lib_save_LIBS=$LIBS
8808 LIBS="-ldl $LIBS"
8809 if test x$gcc_no_link = xyes; then
8810 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8812 { (exit 1); exit 1; }; }
8813 fi
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h. */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820
8821 /* Override any gcc2 internal prototype to avoid an error. */
8822 #ifdef __cplusplus
8823 extern "C"
8824 #endif
8825 /* We use char because int might match the return type of a gcc2
8826 builtin and then its argument prototype would still apply. */
8827 char dlopen ();
8828 int
8829 main ()
8830 {
8831 dlopen ();
8832 ;
8833 return 0;
8834 }
8835 _ACEOF
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838 (eval $ac_link) 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 (eval $ac_try) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; } &&
8851 { ac_try='test -s conftest$ac_exeext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 ac_cv_lib_dl_dlopen=yes
8858 else
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862 ac_cv_lib_dl_dlopen=no
8863 fi
8864 rm -f conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
8866 LIBS=$ac_check_lib_save_LIBS
8867 fi
8868 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8869 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8870 if test $ac_cv_lib_dl_dlopen = yes; then
8871 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8872 else
8873
8874 lt_cv_dlopen="dyld"
8875 lt_cv_dlopen_libs=
8876 lt_cv_dlopen_self=yes
8877
8878 fi
8879
8880 ;;
8881
8882 *)
8883 echo "$as_me:$LINENO: checking for shl_load" >&5
8884 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8885 if test "${ac_cv_func_shl_load+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888 if test x$gcc_no_link = xyes; then
8889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8891 { (exit 1); exit 1; }; }
8892 fi
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8901 #define shl_load innocuous_shl_load
8902
8903 /* System header to define __stub macros and hopefully few prototypes,
8904 which can conflict with char shl_load (); below.
8905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906 <limits.h> exists even on freestanding compilers. */
8907
8908 #ifdef __STDC__
8909 # include <limits.h>
8910 #else
8911 # include <assert.h>
8912 #endif
8913
8914 #undef shl_load
8915
8916 /* Override any gcc2 internal prototype to avoid an error. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 {
8920 #endif
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8923 char shl_load ();
8924 /* The GNU C library defines this for functions which it implements
8925 to always fail with ENOSYS. Some functions are actually named
8926 something starting with __ and the normal name is an alias. */
8927 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8928 choke me
8929 #else
8930 char (*f) () = shl_load;
8931 #endif
8932 #ifdef __cplusplus
8933 }
8934 #endif
8935
8936 int
8937 main ()
8938 {
8939 return f != shl_load;
8940 ;
8941 return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; } &&
8959 { ac_try='test -s conftest$ac_exeext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 (eval $ac_try) 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 ac_cv_func_shl_load=yes
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970 ac_cv_func_shl_load=no
8971 fi
8972 rm -f conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8974 fi
8975 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8976 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8977 if test $ac_cv_func_shl_load = yes; then
8978 lt_cv_dlopen="shl_load"
8979 else
8980 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8981 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8982 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985 ac_check_lib_save_LIBS=$LIBS
8986 LIBS="-ldld $LIBS"
8987 if test x$gcc_no_link = xyes; then
8988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8990 { (exit 1); exit 1; }; }
8991 fi
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h. */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998
8999 /* Override any gcc2 internal prototype to avoid an error. */
9000 #ifdef __cplusplus
9001 extern "C"
9002 #endif
9003 /* We use char because int might match the return type of a gcc2
9004 builtin and then its argument prototype would still apply. */
9005 char shl_load ();
9006 int
9007 main ()
9008 {
9009 shl_load ();
9010 ;
9011 return 0;
9012 }
9013 _ACEOF
9014 rm -f conftest.$ac_objext conftest$ac_exeext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9016 (eval $ac_link) 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } &&
9023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; } &&
9029 { ac_try='test -s conftest$ac_exeext'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 (eval $ac_try) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; }; then
9035 ac_cv_lib_dld_shl_load=yes
9036 else
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9039
9040 ac_cv_lib_dld_shl_load=no
9041 fi
9042 rm -f conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9044 LIBS=$ac_check_lib_save_LIBS
9045 fi
9046 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9047 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9048 if test $ac_cv_lib_dld_shl_load = yes; then
9049 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9050 else
9051 echo "$as_me:$LINENO: checking for dlopen" >&5
9052 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9053 if test "${ac_cv_func_dlopen+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056 if test x$gcc_no_link = xyes; then
9057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9059 { (exit 1); exit 1; }; }
9060 fi
9061 cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9069 #define dlopen innocuous_dlopen
9070
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char dlopen (); below.
9073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9074 <limits.h> exists even on freestanding compilers. */
9075
9076 #ifdef __STDC__
9077 # include <limits.h>
9078 #else
9079 # include <assert.h>
9080 #endif
9081
9082 #undef dlopen
9083
9084 /* Override any gcc2 internal prototype to avoid an error. */
9085 #ifdef __cplusplus
9086 extern "C"
9087 {
9088 #endif
9089 /* We use char because int might match the return type of a gcc2
9090 builtin and then its argument prototype would still apply. */
9091 char dlopen ();
9092 /* The GNU C library defines this for functions which it implements
9093 to always fail with ENOSYS. Some functions are actually named
9094 something starting with __ and the normal name is an alias. */
9095 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9096 choke me
9097 #else
9098 char (*f) () = dlopen;
9099 #endif
9100 #ifdef __cplusplus
9101 }
9102 #endif
9103
9104 int
9105 main ()
9106 {
9107 return f != dlopen;
9108 ;
9109 return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114 (eval $ac_link) 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_func_dlopen=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ac_cv_func_dlopen=no
9139 fi
9140 rm -f conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 fi
9143 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9144 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9145 if test $ac_cv_func_dlopen = yes; then
9146 lt_cv_dlopen="dlopen"
9147 else
9148 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9149 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 ac_check_lib_save_LIBS=$LIBS
9154 LIBS="-ldl $LIBS"
9155 if test x$gcc_no_link = xyes; then
9156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9158 { (exit 1); exit 1; }; }
9159 fi
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h. */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9166
9167 /* Override any gcc2 internal prototype to avoid an error. */
9168 #ifdef __cplusplus
9169 extern "C"
9170 #endif
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9173 char dlopen ();
9174 int
9175 main ()
9176 {
9177 dlopen ();
9178 ;
9179 return 0;
9180 }
9181 _ACEOF
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest$ac_exeext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203 ac_cv_lib_dl_dlopen=yes
9204 else
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 ac_cv_lib_dl_dlopen=no
9209 fi
9210 rm -f conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 LIBS=$ac_check_lib_save_LIBS
9213 fi
9214 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9215 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9216 if test $ac_cv_lib_dl_dlopen = yes; then
9217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9218 else
9219 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9220 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9221 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224 ac_check_lib_save_LIBS=$LIBS
9225 LIBS="-lsvld $LIBS"
9226 if test x$gcc_no_link = xyes; then
9227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9229 { (exit 1); exit 1; }; }
9230 fi
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237
9238 /* Override any gcc2 internal prototype to avoid an error. */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 /* We use char because int might match the return type of a gcc2
9243 builtin and then its argument prototype would still apply. */
9244 char dlopen ();
9245 int
9246 main ()
9247 {
9248 dlopen ();
9249 ;
9250 return 0;
9251 }
9252 _ACEOF
9253 rm -f conftest.$ac_objext conftest$ac_exeext
9254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255 (eval $ac_link) 2>conftest.er1
9256 ac_status=$?
9257 grep -v '^ *+' conftest.er1 >conftest.err
9258 rm -f conftest.er1
9259 cat conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } &&
9262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; } &&
9268 { ac_try='test -s conftest$ac_exeext'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 (eval $ac_try) 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_lib_svld_dlopen=yes
9275 else
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9278
9279 ac_cv_lib_svld_dlopen=no
9280 fi
9281 rm -f conftest.err conftest.$ac_objext \
9282 conftest$ac_exeext conftest.$ac_ext
9283 LIBS=$ac_check_lib_save_LIBS
9284 fi
9285 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9286 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9287 if test $ac_cv_lib_svld_dlopen = yes; then
9288 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9289 else
9290 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9291 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9292 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295 ac_check_lib_save_LIBS=$LIBS
9296 LIBS="-ldld $LIBS"
9297 if test x$gcc_no_link = xyes; then
9298 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9300 { (exit 1); exit 1; }; }
9301 fi
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h. */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308
9309 /* Override any gcc2 internal prototype to avoid an error. */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 /* We use char because int might match the return type of a gcc2
9314 builtin and then its argument prototype would still apply. */
9315 char dld_link ();
9316 int
9317 main ()
9318 {
9319 dld_link ();
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest$ac_exeext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_lib_dld_dld_link=yes
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_cv_lib_dld_dld_link=no
9351 fi
9352 rm -f conftest.err conftest.$ac_objext \
9353 conftest$ac_exeext conftest.$ac_ext
9354 LIBS=$ac_check_lib_save_LIBS
9355 fi
9356 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9357 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9358 if test $ac_cv_lib_dld_dld_link = yes; then
9359 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9360 fi
9361
9362
9363 fi
9364
9365
9366 fi
9367
9368
9369 fi
9370
9371
9372 fi
9373
9374
9375 fi
9376
9377 ;;
9378 esac
9379
9380 if test "x$lt_cv_dlopen" != xno; then
9381 enable_dlopen=yes
9382 else
9383 enable_dlopen=no
9384 fi
9385
9386 case $lt_cv_dlopen in
9387 dlopen)
9388 save_CPPFLAGS="$CPPFLAGS"
9389 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9390
9391 save_LDFLAGS="$LDFLAGS"
9392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9393
9394 save_LIBS="$LIBS"
9395 LIBS="$lt_cv_dlopen_libs $LIBS"
9396
9397 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9398 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9399 if test "${lt_cv_dlopen_self+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402 if test "$cross_compiling" = yes; then :
9403 lt_cv_dlopen_self=cross
9404 else
9405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9406 lt_status=$lt_dlunknown
9407 cat > conftest.$ac_ext <<_LT_EOF
9408 #line 9408 "configure"
9409 #include "confdefs.h"
9410
9411 #if HAVE_DLFCN_H
9412 #include <dlfcn.h>
9413 #endif
9414
9415 #include <stdio.h>
9416
9417 #ifdef RTLD_GLOBAL
9418 # define LT_DLGLOBAL RTLD_GLOBAL
9419 #else
9420 # ifdef DL_GLOBAL
9421 # define LT_DLGLOBAL DL_GLOBAL
9422 # else
9423 # define LT_DLGLOBAL 0
9424 # endif
9425 #endif
9426
9427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9428 find out it does not work in some platform. */
9429 #ifndef LT_DLLAZY_OR_NOW
9430 # ifdef RTLD_LAZY
9431 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9432 # else
9433 # ifdef DL_LAZY
9434 # define LT_DLLAZY_OR_NOW DL_LAZY
9435 # else
9436 # ifdef RTLD_NOW
9437 # define LT_DLLAZY_OR_NOW RTLD_NOW
9438 # else
9439 # ifdef DL_NOW
9440 # define LT_DLLAZY_OR_NOW DL_NOW
9441 # else
9442 # define LT_DLLAZY_OR_NOW 0
9443 # endif
9444 # endif
9445 # endif
9446 # endif
9447 #endif
9448
9449 #ifdef __cplusplus
9450 extern "C" void exit (int);
9451 #endif
9452
9453 void fnord() { int i=42;}
9454 int main ()
9455 {
9456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9457 int status = $lt_dlunknown;
9458
9459 if (self)
9460 {
9461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9462 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9463 /* dlclose (self); */
9464 }
9465 else
9466 puts (dlerror ());
9467
9468 exit (status);
9469 }
9470 _LT_EOF
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9476 (./conftest; exit; ) >&5 2>/dev/null
9477 lt_status=$?
9478 case x$lt_status in
9479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9481 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9482 esac
9483 else :
9484 # compilation failed
9485 lt_cv_dlopen_self=no
9486 fi
9487 fi
9488 rm -fr conftest*
9489
9490
9491 fi
9492 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9493 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9494
9495 if test "x$lt_cv_dlopen_self" = xyes; then
9496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9497 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9498 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9499 if test "${lt_cv_dlopen_self_static+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502 if test "$cross_compiling" = yes; then :
9503 lt_cv_dlopen_self_static=cross
9504 else
9505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9506 lt_status=$lt_dlunknown
9507 cat > conftest.$ac_ext <<_LT_EOF
9508 #line 9508 "configure"
9509 #include "confdefs.h"
9510
9511 #if HAVE_DLFCN_H
9512 #include <dlfcn.h>
9513 #endif
9514
9515 #include <stdio.h>
9516
9517 #ifdef RTLD_GLOBAL
9518 # define LT_DLGLOBAL RTLD_GLOBAL
9519 #else
9520 # ifdef DL_GLOBAL
9521 # define LT_DLGLOBAL DL_GLOBAL
9522 # else
9523 # define LT_DLGLOBAL 0
9524 # endif
9525 #endif
9526
9527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9528 find out it does not work in some platform. */
9529 #ifndef LT_DLLAZY_OR_NOW
9530 # ifdef RTLD_LAZY
9531 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9532 # else
9533 # ifdef DL_LAZY
9534 # define LT_DLLAZY_OR_NOW DL_LAZY
9535 # else
9536 # ifdef RTLD_NOW
9537 # define LT_DLLAZY_OR_NOW RTLD_NOW
9538 # else
9539 # ifdef DL_NOW
9540 # define LT_DLLAZY_OR_NOW DL_NOW
9541 # else
9542 # define LT_DLLAZY_OR_NOW 0
9543 # endif
9544 # endif
9545 # endif
9546 # endif
9547 #endif
9548
9549 #ifdef __cplusplus
9550 extern "C" void exit (int);
9551 #endif
9552
9553 void fnord() { int i=42;}
9554 int main ()
9555 {
9556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9557 int status = $lt_dlunknown;
9558
9559 if (self)
9560 {
9561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9562 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9563 /* dlclose (self); */
9564 }
9565 else
9566 puts (dlerror ());
9567
9568 exit (status);
9569 }
9570 _LT_EOF
9571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9576 (./conftest; exit; ) >&5 2>/dev/null
9577 lt_status=$?
9578 case x$lt_status in
9579 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9580 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9581 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9582 esac
9583 else :
9584 # compilation failed
9585 lt_cv_dlopen_self_static=no
9586 fi
9587 fi
9588 rm -fr conftest*
9589
9590
9591 fi
9592 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9593 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9594 fi
9595
9596 CPPFLAGS="$save_CPPFLAGS"
9597 LDFLAGS="$save_LDFLAGS"
9598 LIBS="$save_LIBS"
9599 ;;
9600 esac
9601
9602 case $lt_cv_dlopen_self in
9603 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9604 *) enable_dlopen_self=unknown ;;
9605 esac
9606
9607 case $lt_cv_dlopen_self_static in
9608 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9609 *) enable_dlopen_self_static=unknown ;;
9610 esac
9611 fi
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629 striplib=
9630 old_striplib=
9631 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9632 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9633 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9634 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9635 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9636 echo "$as_me:$LINENO: result: yes" >&5
9637 echo "${ECHO_T}yes" >&6
9638 else
9639 # FIXME - insert some real tests, host_os isn't really good enough
9640 case $host_os in
9641 darwin*)
9642 if test -n "$STRIP" ; then
9643 striplib="$STRIP -x"
9644 old_striplib="$STRIP -S"
9645 echo "$as_me:$LINENO: result: yes" >&5
9646 echo "${ECHO_T}yes" >&6
9647 else
9648 echo "$as_me:$LINENO: result: no" >&5
9649 echo "${ECHO_T}no" >&6
9650 fi
9651 ;;
9652 *)
9653 echo "$as_me:$LINENO: result: no" >&5
9654 echo "${ECHO_T}no" >&6
9655 ;;
9656 esac
9657 fi
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670 # Report which library types will actually be built
9671 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9672 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9673 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9674 echo "${ECHO_T}$can_build_shared" >&6
9675
9676 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9677 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9678 test "$can_build_shared" = "no" && enable_shared=no
9679
9680 # On AIX, shared libraries and static libraries use the same namespace, and
9681 # are all built from PIC.
9682 case $host_os in
9683 aix3*)
9684 test "$enable_shared" = yes && enable_static=no
9685 if test -n "$RANLIB"; then
9686 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9687 postinstall_cmds='$RANLIB $lib'
9688 fi
9689 ;;
9690
9691 aix4* | aix5*)
9692 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9693 test "$enable_shared" = yes && enable_static=no
9694 fi
9695 ;;
9696 esac
9697 echo "$as_me:$LINENO: result: $enable_shared" >&5
9698 echo "${ECHO_T}$enable_shared" >&6
9699
9700 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9701 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9702 # Make sure either enable_shared or enable_static is yes.
9703 test "$enable_shared" = yes || enable_static=yes
9704 echo "$as_me:$LINENO: result: $enable_static" >&5
9705 echo "${ECHO_T}$enable_static" >&6
9706
9707
9708
9709
9710 fi
9711 ac_ext=c
9712 ac_cpp='$CPP $CPPFLAGS'
9713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9716
9717 CC="$lt_save_CC"
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731 ac_config_commands="$ac_config_commands libtool"
9732
9733
9734
9735
9736 # Only expand once:
9737
9738
9739
9740 if test "x$CC" != xcc; then
9741 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
9742 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
9743 else
9744 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
9745 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
9746 fi
9747 set dummy $CC; ac_cc=`echo $2 |
9748 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
9749 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758
9759 int
9760 main ()
9761 {
9762
9763 ;
9764 return 0;
9765 }
9766 _ACEOF
9767 # Make sure it works both with $CC and with simple cc.
9768 # We do the test twice because some compilers refuse to overwrite an
9769 # existing .o file with -o, though they will create one.
9770 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
9771 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); };
9781 then
9782 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
9783 if test "x$CC" != xcc; then
9784 # Test first that cc exists at all.
9785 if { ac_try='cc -c conftest.$ac_ext >&5'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
9792 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 (eval $ac_try) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); };
9802 then
9803 # cc works too.
9804 :
9805 else
9806 # cc exists but doesn't like -o.
9807 eval ac_cv_prog_cc_${ac_cc}_c_o=no
9808 fi
9809 fi
9810 fi
9811 else
9812 eval ac_cv_prog_cc_${ac_cc}_c_o=no
9813 fi
9814 rm -f conftest*
9815
9816 fi
9817 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
9818 echo "$as_me:$LINENO: result: yes" >&5
9819 echo "${ECHO_T}yes" >&6
9820 else
9821 echo "$as_me:$LINENO: result: no" >&5
9822 echo "${ECHO_T}no" >&6
9823
9824 cat >>confdefs.h <<\_ACEOF
9825 #define NO_MINUS_C_MINUS_O 1
9826 _ACEOF
9827
9828 fi
9829
9830 # expand $ac_aux_dir to an absolute path
9831 am_aux_dir=`cd $ac_aux_dir && pwd`
9832
9833 # FIXME: we rely on the cache variable name because
9834 # there is no other way.
9835 set dummy $CC
9836 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
9837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
9838 # Losing compiler, so override with the script.
9839 # FIXME: It is wrong to rewrite CC.
9840 # But if we don't then we get into trouble of one sort or another.
9841 # A longer-term fix would be to have automake use am__CC in this case,
9842 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9843 CC="$am_aux_dir/compile $CC"
9844 fi
9845
9846
9847 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9848 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9849 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9850 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 cat >conftest.make <<\_ACEOF
9854 all:
9855 @echo 'ac_maketemp="$(MAKE)"'
9856 _ACEOF
9857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9858 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9859 if test -n "$ac_maketemp"; then
9860 eval ac_cv_prog_make_${ac_make}_set=yes
9861 else
9862 eval ac_cv_prog_make_${ac_make}_set=no
9863 fi
9864 rm -f conftest.make
9865 fi
9866 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9867 echo "$as_me:$LINENO: result: yes" >&5
9868 echo "${ECHO_T}yes" >&6
9869 SET_MAKE=
9870 else
9871 echo "$as_me:$LINENO: result: no" >&5
9872 echo "${ECHO_T}no" >&6
9873 SET_MAKE="MAKE=${MAKE-make}"
9874 fi
9875
9876
9877 # -------
9878 # Headers
9879 # -------
9880
9881 # Sanity check for the cross-compilation case:
9882 if test "${ac_cv_header_stdio_h+set}" = set; then
9883 echo "$as_me:$LINENO: checking for stdio.h" >&5
9884 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
9885 if test "${ac_cv_header_stdio_h+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 fi
9888 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
9889 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
9890 else
9891 # Is the header compilable?
9892 echo "$as_me:$LINENO: checking stdio.h usability" >&5
9893 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h. */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 $ac_includes_default
9901 #include <stdio.h>
9902 _ACEOF
9903 rm -f conftest.$ac_objext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9905 (eval $ac_compile) 2>conftest.er1
9906 ac_status=$?
9907 grep -v '^ *+' conftest.er1 >conftest.err
9908 rm -f conftest.er1
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 (eval $ac_try) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; } &&
9918 { ac_try='test -s conftest.$ac_objext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_header_compiler=yes
9925 else
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 ac_header_compiler=no
9930 fi
9931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9933 echo "${ECHO_T}$ac_header_compiler" >&6
9934
9935 # Is the header present?
9936 echo "$as_me:$LINENO: checking stdio.h presence" >&5
9937 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h. */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9944 #include <stdio.h>
9945 _ACEOF
9946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } >/dev/null; then
9954 if test -s conftest.err; then
9955 ac_cpp_err=$ac_c_preproc_warn_flag
9956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9957 else
9958 ac_cpp_err=
9959 fi
9960 else
9961 ac_cpp_err=yes
9962 fi
9963 if test -z "$ac_cpp_err"; then
9964 ac_header_preproc=yes
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9968
9969 ac_header_preproc=no
9970 fi
9971 rm -f conftest.err conftest.$ac_ext
9972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9973 echo "${ECHO_T}$ac_header_preproc" >&6
9974
9975 # So? What about this header?
9976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9977 yes:no: )
9978 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9979 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
9981 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
9982 ac_header_preproc=yes
9983 ;;
9984 no:yes:* )
9985 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
9986 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
9988 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
9990 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
9992 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
9994 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
9996 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
9997 (
9998 cat <<\_ASBOX
9999 ## ----------------------------------------- ##
10000 ## Report this to the package-unused lists. ##
10001 ## ----------------------------------------- ##
10002 _ASBOX
10003 ) |
10004 sed "s/^/$as_me: WARNING: /" >&2
10005 ;;
10006 esac
10007 echo "$as_me:$LINENO: checking for stdio.h" >&5
10008 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10009 if test "${ac_cv_header_stdio_h+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012 ac_cv_header_stdio_h=$ac_header_preproc
10013 fi
10014 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10015 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10016
10017 fi
10018 if test $ac_cv_header_stdio_h = yes; then
10019 :
10020 else
10021 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
10022 You must have a usable C system for the target already installed, at least
10023 including headers and, preferably, the library, before you can configure
10024 the Objective C runtime system. If necessary, install gcc now with
10025 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
10026 echo "$as_me: error: Can't find stdio.h.
10027 You must have a usable C system for the target already installed, at least
10028 including headers and, preferably, the library, before you can configure
10029 the Objective C runtime system. If necessary, install gcc now with
10030 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
10031 { (exit 1); exit 1; }; }
10032 fi
10033
10034
10035
10036 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10038 if test "${ac_cv_header_stdc+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 #include <stdlib.h>
10048 #include <stdarg.h>
10049 #include <string.h>
10050 #include <float.h>
10051
10052 int
10053 main ()
10054 {
10055
10056 ;
10057 return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062 (eval $ac_compile) 2>conftest.er1
10063 ac_status=$?
10064 grep -v '^ *+' conftest.er1 >conftest.err
10065 rm -f conftest.er1
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest.$ac_objext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_header_stdc=yes
10082 else
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086 ac_cv_header_stdc=no
10087 fi
10088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10089
10090 if test $ac_cv_header_stdc = yes; then
10091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 #include <string.h>
10099
10100 _ACEOF
10101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10102 $EGREP "memchr" >/dev/null 2>&1; then
10103 :
10104 else
10105 ac_cv_header_stdc=no
10106 fi
10107 rm -f conftest*
10108
10109 fi
10110
10111 if test $ac_cv_header_stdc = yes; then
10112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 #include <stdlib.h>
10120
10121 _ACEOF
10122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10123 $EGREP "free" >/dev/null 2>&1; then
10124 :
10125 else
10126 ac_cv_header_stdc=no
10127 fi
10128 rm -f conftest*
10129
10130 fi
10131
10132 if test $ac_cv_header_stdc = yes; then
10133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10134 if test "$cross_compiling" = yes; then
10135 :
10136 else
10137 cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h. */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10143 #include <ctype.h>
10144 #if ((' ' & 0x0FF) == 0x020)
10145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10147 #else
10148 # define ISLOWER(c) \
10149 (('a' <= (c) && (c) <= 'i') \
10150 || ('j' <= (c) && (c) <= 'r') \
10151 || ('s' <= (c) && (c) <= 'z'))
10152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10153 #endif
10154
10155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10156 int
10157 main ()
10158 {
10159 int i;
10160 for (i = 0; i < 256; i++)
10161 if (XOR (islower (i), ISLOWER (i))
10162 || toupper (i) != TOUPPER (i))
10163 exit(2);
10164 exit (0);
10165 }
10166 _ACEOF
10167 rm -f conftest$ac_exeext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 :
10179 else
10180 echo "$as_me: program exited with status $ac_status" >&5
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184 ( exit $ac_status )
10185 ac_cv_header_stdc=no
10186 fi
10187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10188 fi
10189 fi
10190 fi
10191 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10192 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10193 if test $ac_cv_header_stdc = yes; then
10194
10195 cat >>confdefs.h <<\_ACEOF
10196 #define STDC_HEADERS 1
10197 _ACEOF
10198
10199 fi
10200
10201
10202
10203 for ac_header in sched.h
10204 do
10205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10207 echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 fi
10212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10214 else
10215 # Is the header compilable?
10216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224 $ac_includes_default
10225 #include <$ac_header>
10226 _ACEOF
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest.$ac_objext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 ac_header_compiler=yes
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10252
10253 ac_header_compiler=no
10254 fi
10255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10257 echo "${ECHO_T}$ac_header_compiler" >&6
10258
10259 # Is the header present?
10260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10262 cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h. */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 #include <$ac_header>
10269 _ACEOF
10270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10272 ac_status=$?
10273 grep -v '^ *+' conftest.er1 >conftest.err
10274 rm -f conftest.er1
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } >/dev/null; then
10278 if test -s conftest.err; then
10279 ac_cpp_err=$ac_c_preproc_warn_flag
10280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10281 else
10282 ac_cpp_err=
10283 fi
10284 else
10285 ac_cpp_err=yes
10286 fi
10287 if test -z "$ac_cpp_err"; then
10288 ac_header_preproc=yes
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 ac_header_preproc=no
10294 fi
10295 rm -f conftest.err conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10297 echo "${ECHO_T}$ac_header_preproc" >&6
10298
10299 # So? What about this header?
10300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10301 yes:no: )
10302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10306 ac_header_preproc=yes
10307 ;;
10308 no:yes:* )
10309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10321 (
10322 cat <<\_ASBOX
10323 ## ----------------------------------------- ##
10324 ## Report this to the package-unused lists. ##
10325 ## ----------------------------------------- ##
10326 _ASBOX
10327 ) |
10328 sed "s/^/$as_me: WARNING: /" >&2
10329 ;;
10330 esac
10331 echo "$as_me:$LINENO: checking for $ac_header" >&5
10332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336 eval "$as_ac_Header=\$ac_header_preproc"
10337 fi
10338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10340
10341 fi
10342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10343 cat >>confdefs.h <<_ACEOF
10344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10345 _ACEOF
10346
10347 fi
10348
10349 done
10350
10351
10352 # -----------
10353 # Miscellanea
10354 # -----------
10355
10356 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
10357 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
10358 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
10359 echo "$as_me:$LINENO: result: $target_thread_file" >&5
10360 echo "${ECHO_T}$target_thread_file" >&6
10361
10362 if test $target_thread_file != single; then
10363
10364 cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_GTHR_DEFAULT 1
10366 _ACEOF
10367
10368 fi
10369
10370
10371 echo "$as_me:$LINENO: checking for exception model to use" >&5
10372 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
10373 ac_ext=c
10374 ac_cpp='$CPP $CPPFLAGS'
10375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10378
10379 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
10380 if test "${enable_sjlj_exceptions+set}" = set; then
10381 enableval="$enable_sjlj_exceptions"
10382 :
10383 else
10384 cat > conftest.$ac_ext << EOF
10385 #line 10385 "configure"
10386 @interface Frob
10387 @end
10388 @implementation Frob
10389 @end
10390 int proc();
10391 int foo()
10392 {
10393 @try {
10394 return proc();
10395 }
10396 @catch (Frob* ex) {
10397 return 0;
10398 }
10399 }
10400 EOF
10401 old_CFLAGS="$CFLAGS"
10402 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; then
10408 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
10409 enable_sjlj_exceptions=yes
10410 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
10411 enable_sjlj_exceptions=no
10412 fi
10413 fi
10414 CFLAGS="$old_CFLAGS"
10415 rm -f conftest*
10416 fi;
10417 if test x$enable_sjlj_exceptions = xyes; then
10418
10419 cat >>confdefs.h <<\_ACEOF
10420 #define SJLJ_EXCEPTIONS 1
10421 _ACEOF
10422
10423 ac_exception_model_name=sjlj
10424 elif test x$enable_sjlj_exceptions = xno; then
10425 ac_exception_model_name="call frame"
10426 else
10427 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
10428 echo "$as_me: error: unable to detect exception model" >&2;}
10429 { (exit 1); exit 1; }; }
10430 fi
10431 ac_ext=c
10432 ac_cpp='$CPP $CPPFLAGS'
10433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10436
10437 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
10438 echo "${ECHO_T}$ac_exception_model_name" >&6
10439
10440 # ------
10441 # Output
10442 # ------
10443
10444 ac_config_files="$ac_config_files Makefile"
10445
10446
10447 ac_config_commands="$ac_config_commands default"
10448
10449
10450 cat >confcache <<\_ACEOF
10451 # This file is a shell script that caches the results of configure
10452 # tests run on this system so they can be shared between configure
10453 # scripts and configure runs, see configure's option --config-cache.
10454 # It is not useful on other systems. If it contains results you don't
10455 # want to keep, you may remove or edit it.
10456 #
10457 # config.status only pays attention to the cache file if you give it
10458 # the --recheck option to rerun configure.
10459 #
10460 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10461 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10462 # following values.
10463
10464 _ACEOF
10465
10466 # The following way of writing the cache mishandles newlines in values,
10467 # but we know of no workaround that is simple, portable, and efficient.
10468 # So, don't put newlines in cache variables' values.
10469 # Ultrix sh set writes to stderr and can't be redirected directly,
10470 # and sets the high bit in the cache file unless we assign to the vars.
10471 {
10472 (set) 2>&1 |
10473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10474 *ac_space=\ *)
10475 # `set' does not quote correctly, so add quotes (double-quote
10476 # substitution turns \\\\ into \\, and sed turns \\ into \).
10477 sed -n \
10478 "s/'/'\\\\''/g;
10479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10480 ;;
10481 *)
10482 # `set' quotes correctly as required by POSIX, so do not add quotes.
10483 sed -n \
10484 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10485 ;;
10486 esac;
10487 } |
10488 sed '
10489 t clear
10490 : clear
10491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10492 t end
10493 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10494 : end' >>confcache
10495 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10496 if test -w $cache_file; then
10497 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10498 cat confcache >$cache_file
10499 else
10500 echo "not updating unwritable cache $cache_file"
10501 fi
10502 fi
10503 rm -f confcache
10504
10505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10506 # Let make expand exec_prefix.
10507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10508
10509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10511 # trailing colons and then remove the whole line if VPATH becomes empty
10512 # (actually we leave an empty line to preserve line numbers).
10513 if test "x$srcdir" = x.; then
10514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10515 s/:*\$(srcdir):*/:/;
10516 s/:*\${srcdir}:*/:/;
10517 s/:*@srcdir@:*/:/;
10518 s/^\([^=]*=[ ]*\):*/\1/;
10519 s/:*$//;
10520 s/^[^=]*=[ ]*$//;
10521 }'
10522 fi
10523
10524 DEFS=-DHAVE_CONFIG_H
10525
10526 ac_libobjs=
10527 ac_ltlibobjs=
10528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10529 # 1. Remove the extension, and $U if already installed.
10530 ac_i=`echo "$ac_i" |
10531 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10532 # 2. Add them.
10533 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10534 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10535 done
10536 LIBOBJS=$ac_libobjs
10537
10538 LTLIBOBJS=$ac_ltlibobjs
10539
10540
10541 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10542 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10543 Usually this means the macro was only invoked conditionally." >&5
10544 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10545 Usually this means the macro was only invoked conditionally." >&2;}
10546 { (exit 1); exit 1; }; }
10547 fi
10548
10549 : ${CONFIG_STATUS=./config.status}
10550 ac_clean_files_save=$ac_clean_files
10551 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10552 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10553 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10554 cat >$CONFIG_STATUS <<_ACEOF
10555 #! $SHELL
10556 # Generated by $as_me.
10557 # Run this file to recreate the current configuration.
10558 # Compiler output produced by configure, useful for debugging
10559 # configure, is in config.log if it exists.
10560
10561 debug=false
10562 ac_cs_recheck=false
10563 ac_cs_silent=false
10564 SHELL=\${CONFIG_SHELL-$SHELL}
10565 _ACEOF
10566
10567 cat >>$CONFIG_STATUS <<\_ACEOF
10568 ## --------------------- ##
10569 ## M4sh Initialization. ##
10570 ## --------------------- ##
10571
10572 # Be Bourne compatible
10573 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10574 emulate sh
10575 NULLCMD=:
10576 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10577 # is contrary to our usage. Disable this feature.
10578 alias -g '${1+"$@"}'='"$@"'
10579 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10580 set -o posix
10581 fi
10582 DUALCASE=1; export DUALCASE # for MKS sh
10583
10584 # Support unset when possible.
10585 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10586 as_unset=unset
10587 else
10588 as_unset=false
10589 fi
10590
10591
10592 # Work around bugs in pre-3.0 UWIN ksh.
10593 $as_unset ENV MAIL MAILPATH
10594 PS1='$ '
10595 PS2='> '
10596 PS4='+ '
10597
10598 # NLS nuisances.
10599 for as_var in \
10600 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10601 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10602 LC_TELEPHONE LC_TIME
10603 do
10604 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10605 eval $as_var=C; export $as_var
10606 else
10607 $as_unset $as_var
10608 fi
10609 done
10610
10611 # Required to use basename.
10612 if expr a : '\(a\)' >/dev/null 2>&1; then
10613 as_expr=expr
10614 else
10615 as_expr=false
10616 fi
10617
10618 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10619 as_basename=basename
10620 else
10621 as_basename=false
10622 fi
10623
10624
10625 # Name of the executable.
10626 as_me=`$as_basename "$0" ||
10627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10628 X"$0" : 'X\(//\)$' \| \
10629 X"$0" : 'X\(/\)$' \| \
10630 . : '\(.\)' 2>/dev/null ||
10631 echo X/"$0" |
10632 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10633 /^X\/\(\/\/\)$/{ s//\1/; q; }
10634 /^X\/\(\/\).*/{ s//\1/; q; }
10635 s/.*/./; q'`
10636
10637
10638 # PATH needs CR, and LINENO needs CR and PATH.
10639 # Avoid depending upon Character Ranges.
10640 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10641 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10642 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10643 as_cr_digits='0123456789'
10644 as_cr_alnum=$as_cr_Letters$as_cr_digits
10645
10646 # The user is always right.
10647 if test "${PATH_SEPARATOR+set}" != set; then
10648 echo "#! /bin/sh" >conf$$.sh
10649 echo "exit 0" >>conf$$.sh
10650 chmod +x conf$$.sh
10651 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10652 PATH_SEPARATOR=';'
10653 else
10654 PATH_SEPARATOR=:
10655 fi
10656 rm -f conf$$.sh
10657 fi
10658
10659
10660 as_lineno_1=$LINENO
10661 as_lineno_2=$LINENO
10662 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10663 test "x$as_lineno_1" != "x$as_lineno_2" &&
10664 test "x$as_lineno_3" = "x$as_lineno_2" || {
10665 # Find who we are. Look in the path if we contain no path at all
10666 # relative or not.
10667 case $0 in
10668 *[\\/]* ) as_myself=$0 ;;
10669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10671 do
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10675 done
10676
10677 ;;
10678 esac
10679 # We did not find ourselves, most probably we were run as `sh COMMAND'
10680 # in which case we are not to be found in the path.
10681 if test "x$as_myself" = x; then
10682 as_myself=$0
10683 fi
10684 if test ! -f "$as_myself"; then
10685 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10686 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10687 { (exit 1); exit 1; }; }
10688 fi
10689 case $CONFIG_SHELL in
10690 '')
10691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10692 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10693 do
10694 IFS=$as_save_IFS
10695 test -z "$as_dir" && as_dir=.
10696 for as_base in sh bash ksh sh5; do
10697 case $as_dir in
10698 /*)
10699 if ("$as_dir/$as_base" -c '
10700 as_lineno_1=$LINENO
10701 as_lineno_2=$LINENO
10702 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10703 test "x$as_lineno_1" != "x$as_lineno_2" &&
10704 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10705 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10706 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10707 CONFIG_SHELL=$as_dir/$as_base
10708 export CONFIG_SHELL
10709 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10710 fi;;
10711 esac
10712 done
10713 done
10714 ;;
10715 esac
10716
10717 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10718 # uniformly replaced by the line number. The first 'sed' inserts a
10719 # line-number line before each line; the second 'sed' does the real
10720 # work. The second script uses 'N' to pair each line-number line
10721 # with the numbered line, and appends trailing '-' during
10722 # substitution so that $LINENO is not a special case at line end.
10723 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10724 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10725 sed '=' <$as_myself |
10726 sed '
10727 N
10728 s,$,-,
10729 : loop
10730 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10731 t loop
10732 s,-$,,
10733 s,^['$as_cr_digits']*\n,,
10734 ' >$as_me.lineno &&
10735 chmod +x $as_me.lineno ||
10736 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10737 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10738 { (exit 1); exit 1; }; }
10739
10740 # Don't try to exec as it changes $[0], causing all sort of problems
10741 # (the dirname of $[0] is not the place where we might find the
10742 # original and so on. Autoconf is especially sensible to this).
10743 . ./$as_me.lineno
10744 # Exit status is that of the last command.
10745 exit
10746 }
10747
10748
10749 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10750 *c*,-n*) ECHO_N= ECHO_C='
10751 ' ECHO_T=' ' ;;
10752 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10753 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10754 esac
10755
10756 if expr a : '\(a\)' >/dev/null 2>&1; then
10757 as_expr=expr
10758 else
10759 as_expr=false
10760 fi
10761
10762 rm -f conf$$ conf$$.exe conf$$.file
10763 echo >conf$$.file
10764 if ln -s conf$$.file conf$$ 2>/dev/null; then
10765 # We could just check for DJGPP; but this test a) works b) is more generic
10766 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10767 if test -f conf$$.exe; then
10768 # Don't use ln at all; we don't have any links
10769 as_ln_s='cp -p'
10770 else
10771 as_ln_s='ln -s'
10772 fi
10773 elif ln conf$$.file conf$$ 2>/dev/null; then
10774 as_ln_s=ln
10775 else
10776 as_ln_s='cp -p'
10777 fi
10778 rm -f conf$$ conf$$.exe conf$$.file
10779
10780 if mkdir -p . 2>/dev/null; then
10781 as_mkdir_p=:
10782 else
10783 test -d ./-p && rmdir ./-p
10784 as_mkdir_p=false
10785 fi
10786
10787 as_executable_p="test -f"
10788
10789 # Sed expression to map a string onto a valid CPP name.
10790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10791
10792 # Sed expression to map a string onto a valid variable name.
10793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10794
10795
10796 # IFS
10797 # We need space, tab and new line, in precisely that order.
10798 as_nl='
10799 '
10800 IFS=" $as_nl"
10801
10802 # CDPATH.
10803 $as_unset CDPATH
10804
10805 exec 6>&1
10806
10807 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10808 # report actual input values of CONFIG_FILES etc. instead of their
10809 # values after options handling. Logging --version etc. is OK.
10810 exec 5>>config.log
10811 {
10812 echo
10813 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10814 ## Running $as_me. ##
10815 _ASBOX
10816 } >&5
10817 cat >&5 <<_CSEOF
10818
10819 This file was extended by package-unused $as_me version-unused, which was
10820 generated by GNU Autoconf 2.59. Invocation command line was
10821
10822 CONFIG_FILES = $CONFIG_FILES
10823 CONFIG_HEADERS = $CONFIG_HEADERS
10824 CONFIG_LINKS = $CONFIG_LINKS
10825 CONFIG_COMMANDS = $CONFIG_COMMANDS
10826 $ $0 $@
10827
10828 _CSEOF
10829 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10830 echo >&5
10831 _ACEOF
10832
10833 # Files that config.status was made for.
10834 if test -n "$ac_config_files"; then
10835 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10836 fi
10837
10838 if test -n "$ac_config_headers"; then
10839 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10840 fi
10841
10842 if test -n "$ac_config_links"; then
10843 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10844 fi
10845
10846 if test -n "$ac_config_commands"; then
10847 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10848 fi
10849
10850 cat >>$CONFIG_STATUS <<\_ACEOF
10851
10852 ac_cs_usage="\
10853 \`$as_me' instantiates files from templates according to the
10854 current configuration.
10855
10856 Usage: $0 [OPTIONS] [FILE]...
10857
10858 -h, --help print this help, then exit
10859 -V, --version print version number, then exit
10860 -q, --quiet do not print progress messages
10861 -d, --debug don't remove temporary files
10862 --recheck update $as_me by reconfiguring in the same conditions
10863 --file=FILE[:TEMPLATE]
10864 instantiate the configuration file FILE
10865 --header=FILE[:TEMPLATE]
10866 instantiate the configuration header FILE
10867
10868 Configuration files:
10869 $config_files
10870
10871 Configuration headers:
10872 $config_headers
10873
10874 Configuration commands:
10875 $config_commands
10876
10877 Report bugs to <bug-autoconf@gnu.org>."
10878 _ACEOF
10879
10880 cat >>$CONFIG_STATUS <<_ACEOF
10881 ac_cs_version="\\
10882 package-unused config.status version-unused
10883 configured by $0, generated by GNU Autoconf 2.59,
10884 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10885
10886 Copyright (C) 2003 Free Software Foundation, Inc.
10887 This config.status script is free software; the Free Software Foundation
10888 gives unlimited permission to copy, distribute and modify it."
10889 srcdir=$srcdir
10890 INSTALL="$INSTALL"
10891 _ACEOF
10892
10893 cat >>$CONFIG_STATUS <<\_ACEOF
10894 # If no file are specified by the user, then we need to provide default
10895 # value. By we need to know if files were specified by the user.
10896 ac_need_defaults=:
10897 while test $# != 0
10898 do
10899 case $1 in
10900 --*=*)
10901 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10902 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10903 ac_shift=:
10904 ;;
10905 -*)
10906 ac_option=$1
10907 ac_optarg=$2
10908 ac_shift=shift
10909 ;;
10910 *) # This is not an option, so the user has probably given explicit
10911 # arguments.
10912 ac_option=$1
10913 ac_need_defaults=false;;
10914 esac
10915
10916 case $ac_option in
10917 # Handling of the options.
10918 _ACEOF
10919 cat >>$CONFIG_STATUS <<\_ACEOF
10920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10921 ac_cs_recheck=: ;;
10922 --version | --vers* | -V )
10923 echo "$ac_cs_version"; exit 0 ;;
10924 --he | --h)
10925 # Conflict between --help and --header
10926 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10927 Try \`$0 --help' for more information." >&5
10928 echo "$as_me: error: ambiguous option: $1
10929 Try \`$0 --help' for more information." >&2;}
10930 { (exit 1); exit 1; }; };;
10931 --help | --hel | -h )
10932 echo "$ac_cs_usage"; exit 0 ;;
10933 --debug | --d* | -d )
10934 debug=: ;;
10935 --file | --fil | --fi | --f )
10936 $ac_shift
10937 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10938 ac_need_defaults=false;;
10939 --header | --heade | --head | --hea )
10940 $ac_shift
10941 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10942 ac_need_defaults=false;;
10943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10944 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10945 ac_cs_silent=: ;;
10946
10947 # This is an error.
10948 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10949 Try \`$0 --help' for more information." >&5
10950 echo "$as_me: error: unrecognized option: $1
10951 Try \`$0 --help' for more information." >&2;}
10952 { (exit 1); exit 1; }; } ;;
10953
10954 *) ac_config_targets="$ac_config_targets $1" ;;
10955
10956 esac
10957 shift
10958 done
10959
10960 ac_configure_extra_args=
10961
10962 if $ac_cs_silent; then
10963 exec 6>/dev/null
10964 ac_configure_extra_args="$ac_configure_extra_args --silent"
10965 fi
10966
10967 _ACEOF
10968 cat >>$CONFIG_STATUS <<_ACEOF
10969 if \$ac_cs_recheck; then
10970 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10971 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10972 fi
10973
10974 _ACEOF
10975
10976 cat >>$CONFIG_STATUS <<_ACEOF
10977 #
10978 # INIT-COMMANDS section.
10979 #
10980
10981
10982 srcdir="$srcdir"
10983 host="$host"
10984 target="$target"
10985 with_multisubdir="$with_multisubdir"
10986 with_multisrctop="$with_multisrctop"
10987 with_target_subdir="$with_target_subdir"
10988 ac_configure_args="${multilib_arg} ${ac_configure_args}"
10989 multi_basedir="$multi_basedir"
10990 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10991 CC="$CC"
10992
10993
10994 # The HP-UX ksh and POSIX shell print the target directory to stdout
10995 # if CDPATH is set.
10996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10997
10998 sed_quote_subst='$sed_quote_subst'
10999 double_quote_subst='$double_quote_subst'
11000 delay_variable_subst='$delay_variable_subst'
11001 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11002 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11003 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11004 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11005 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11006 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11007 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11008 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11009 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11010 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11011 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11012 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11013 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11014 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11015 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11016 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11017 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11018 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11019 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11020 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11021 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11022 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11023 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11024 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11025 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11026 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11027 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11028 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11029 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11030 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11031 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11032 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11033 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11034 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11035 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11036 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11037 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11038 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11039 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11040 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11041 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11042 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11043 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11044 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11045 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11046 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11047 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11048 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11049 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11050 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11051 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11052 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11053 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11054 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11055 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11056 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11057 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11058 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11059 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11060 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11061 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11062 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11063 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11064 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11065 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11066 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11067 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11068 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11069 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11070 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11071 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11072 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11073 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11074 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11075 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11076 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11077 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11078 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11079 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11080 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11081 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11082 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11083 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11084 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11085 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11086 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11087 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11088 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11089 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11090 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11091 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11092 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11093 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11094 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11095 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11096 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11097 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11098 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11099 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11100 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11101 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11102 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11103 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11104 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11105 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11106 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11107 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11108 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11109 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11110 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11111 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11112 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11113 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11114 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11115
11116 LTCC='$LTCC'
11117 LTCFLAGS='$LTCFLAGS'
11118 compiler='$compiler_DEFAULT'
11119
11120 # Quote evaled strings.
11121 for var in SED \
11122 GREP \
11123 EGREP \
11124 FGREP \
11125 LD \
11126 NM \
11127 LN_S \
11128 lt_SP2NL \
11129 lt_NL2SP \
11130 reload_flag \
11131 deplibs_check_method \
11132 file_magic_cmd \
11133 AR \
11134 AR_FLAGS \
11135 STRIP \
11136 RANLIB \
11137 CC \
11138 CFLAGS \
11139 compiler \
11140 lt_cv_sys_global_symbol_pipe \
11141 lt_cv_sys_global_symbol_to_cdecl \
11142 lt_cv_sys_global_symbol_to_c_name_address \
11143 SHELL \
11144 ECHO \
11145 lt_prog_compiler_no_builtin_flag \
11146 lt_prog_compiler_wl \
11147 lt_prog_compiler_pic \
11148 lt_prog_compiler_static \
11149 lt_cv_prog_compiler_c_o \
11150 need_locks \
11151 shrext_cmds \
11152 export_dynamic_flag_spec \
11153 whole_archive_flag_spec \
11154 compiler_needs_object \
11155 with_gnu_ld \
11156 allow_undefined_flag \
11157 no_undefined_flag \
11158 hardcode_libdir_flag_spec \
11159 hardcode_libdir_flag_spec_ld \
11160 hardcode_libdir_separator \
11161 fix_srcfile_path \
11162 exclude_expsyms \
11163 include_expsyms \
11164 file_list_spec \
11165 variables_saved_for_relink \
11166 libname_spec \
11167 library_names_spec \
11168 soname_spec \
11169 finish_eval \
11170 old_striplib \
11171 striplib; do
11172 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11173 *[\\\\\\\`\\"\\\$]*)
11174 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11175 ;;
11176 *)
11177 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11178 ;;
11179 esac
11180 done
11181
11182 # Double-quote double-evaled strings.
11183 for var in reload_cmds \
11184 old_postinstall_cmds \
11185 old_postuninstall_cmds \
11186 old_archive_cmds \
11187 extract_expsyms_cmds \
11188 old_archive_from_new_cmds \
11189 old_archive_from_expsyms_cmds \
11190 archive_cmds \
11191 archive_expsym_cmds \
11192 module_cmds \
11193 module_expsym_cmds \
11194 export_symbols_cmds \
11195 prelink_cmds \
11196 postinstall_cmds \
11197 postuninstall_cmds \
11198 finish_cmds \
11199 sys_lib_search_path_spec \
11200 sys_lib_dlsearch_path_spec; do
11201 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11202 *[\\\\\\\`\\"\\\$]*)
11203 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11204 ;;
11205 *)
11206 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11207 ;;
11208 esac
11209 done
11210
11211 # Fix-up fallback echo if it was mangled by the above quoting rules.
11212 case \$lt_ECHO in
11213 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11214 ;;
11215 esac
11216
11217 ac_aux_dir='$ac_aux_dir'
11218 xsi_shell='$xsi_shell'
11219 lt_shell_append='$lt_shell_append'
11220
11221 # See if we are running on zsh, and set the options which allow our
11222 # commands through without removal of \ escapes INIT.
11223 if test -n "\${ZSH_VERSION+set}" ; then
11224 setopt NO_GLOB_SUBST
11225 fi
11226
11227
11228 PACKAGE='$PACKAGE'
11229 VERSION='$VERSION'
11230 TIMESTAMP='$TIMESTAMP'
11231 RM='$RM'
11232 ofile='$ofile'
11233
11234
11235
11236 srcdir=${srcdir}
11237 host=${host}
11238 target=${target}
11239 with_target_subdir=${with_target_subdir}
11240 with_multisubdir=${with_multisubdir}
11241 ac_configure_args="--enable-multilib ${ac_configure_args}"
11242 multi_basedir=${multi_basedir}
11243 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11244 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
11245
11246
11247 _ACEOF
11248
11249
11250
11251 cat >>$CONFIG_STATUS <<\_ACEOF
11252 for ac_config_target in $ac_config_targets
11253 do
11254 case "$ac_config_target" in
11255 # Handling of arguments.
11256 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11257 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11258 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11259 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11260 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11261 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11262 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11263 { (exit 1); exit 1; }; };;
11264 esac
11265 done
11266
11267 # If the user did not use the arguments to specify the items to instantiate,
11268 # then the envvar interface is used. Set only those that are not.
11269 # We use the long form for the default assignment because of an extremely
11270 # bizarre bug on SunOS 4.1.3.
11271 if $ac_need_defaults; then
11272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11275 fi
11276
11277 # Have a temporary directory for convenience. Make it in the build tree
11278 # simply because there is no reason to put it here, and in addition,
11279 # creating and moving files from /tmp can sometimes cause problems.
11280 # Create a temporary directory, and hook for its removal unless debugging.
11281 $debug ||
11282 {
11283 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11284 trap '{ (exit 1); exit 1; }' 1 2 13 15
11285 }
11286
11287 # Create a (secure) tmp directory for tmp files.
11288
11289 {
11290 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11291 test -n "$tmp" && test -d "$tmp"
11292 } ||
11293 {
11294 tmp=./confstat$$-$RANDOM
11295 (umask 077 && mkdir $tmp)
11296 } ||
11297 {
11298 echo "$me: cannot create a temporary directory in ." >&2
11299 { (exit 1); exit 1; }
11300 }
11301
11302 _ACEOF
11303
11304 cat >>$CONFIG_STATUS <<_ACEOF
11305
11306 #
11307 # CONFIG_FILES section.
11308 #
11309
11310 # No need to generate the scripts if there are no CONFIG_FILES.
11311 # This happens for instance when ./config.status config.h
11312 if test -n "\$CONFIG_FILES"; then
11313 # Protect against being on the right side of a sed subst in config.status.
11314 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11315 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11316 s,@SHELL@,$SHELL,;t t
11317 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11318 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11319 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11320 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11321 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11322 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11323 s,@exec_prefix@,$exec_prefix,;t t
11324 s,@prefix@,$prefix,;t t
11325 s,@program_transform_name@,$program_transform_name,;t t
11326 s,@bindir@,$bindir,;t t
11327 s,@sbindir@,$sbindir,;t t
11328 s,@libexecdir@,$libexecdir,;t t
11329 s,@datadir@,$datadir,;t t
11330 s,@sysconfdir@,$sysconfdir,;t t
11331 s,@sharedstatedir@,$sharedstatedir,;t t
11332 s,@localstatedir@,$localstatedir,;t t
11333 s,@libdir@,$libdir,;t t
11334 s,@includedir@,$includedir,;t t
11335 s,@oldincludedir@,$oldincludedir,;t t
11336 s,@infodir@,$infodir,;t t
11337 s,@mandir@,$mandir,;t t
11338 s,@build_alias@,$build_alias,;t t
11339 s,@host_alias@,$host_alias,;t t
11340 s,@target_alias@,$target_alias,;t t
11341 s,@DEFS@,$DEFS,;t t
11342 s,@ECHO_C@,$ECHO_C,;t t
11343 s,@ECHO_N@,$ECHO_N,;t t
11344 s,@ECHO_T@,$ECHO_T,;t t
11345 s,@LIBS@,$LIBS,;t t
11346 s,@build@,$build,;t t
11347 s,@build_cpu@,$build_cpu,;t t
11348 s,@build_vendor@,$build_vendor,;t t
11349 s,@build_os@,$build_os,;t t
11350 s,@build_libsubdir@,$build_libsubdir,;t t
11351 s,@build_subdir@,$build_subdir,;t t
11352 s,@host_subdir@,$host_subdir,;t t
11353 s,@target_subdir@,$target_subdir,;t t
11354 s,@VERSION@,$VERSION,;t t
11355 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
11356 s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
11357 s,@multi_basedir@,$multi_basedir,;t t
11358 s,@host@,$host,;t t
11359 s,@host_cpu@,$host_cpu,;t t
11360 s,@host_vendor@,$host_vendor,;t t
11361 s,@host_os@,$host_os,;t t
11362 s,@target@,$target,;t t
11363 s,@target_cpu@,$target_cpu,;t t
11364 s,@target_vendor@,$target_vendor,;t t
11365 s,@target_os@,$target_os,;t t
11366 s,@target_noncanonical@,$target_noncanonical,;t t
11367 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
11368 s,@toolexecdir@,$toolexecdir,;t t
11369 s,@toolexeclibdir@,$toolexeclibdir,;t t
11370 s,@includedirname@,$includedirname,;t t
11371 s,@libsuffix@,$libsuffix,;t t
11372 s,@CC@,$CC,;t t
11373 s,@ac_ct_CC@,$ac_ct_CC,;t t
11374 s,@EXEEXT@,$EXEEXT,;t t
11375 s,@OBJEXT@,$OBJEXT,;t t
11376 s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
11377 s,@CFLAGS@,$CFLAGS,;t t
11378 s,@AS@,$AS,;t t
11379 s,@ac_ct_AS@,$ac_ct_AS,;t t
11380 s,@AR@,$AR,;t t
11381 s,@ac_ct_AR@,$ac_ct_AR,;t t
11382 s,@RANLIB@,$RANLIB,;t t
11383 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11384 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11385 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11386 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11387 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11388 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11389 s,@MAINT@,$MAINT,;t t
11390 s,@DLLTOOL@,$DLLTOOL,;t t
11391 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
11392 s,@OBJDUMP@,$OBJDUMP,;t t
11393 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
11394 s,@LIBTOOL@,$LIBTOOL,;t t
11395 s,@SED@,$SED,;t t
11396 s,@EGREP@,$EGREP,;t t
11397 s,@FGREP@,$FGREP,;t t
11398 s,@GREP@,$GREP,;t t
11399 s,@LD@,$LD,;t t
11400 s,@DUMPBIN@,$DUMPBIN,;t t
11401 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11402 s,@NM@,$NM,;t t
11403 s,@LN_S@,$LN_S,;t t
11404 s,@STRIP@,$STRIP,;t t
11405 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11406 s,@lt_ECHO@,$lt_ECHO,;t t
11407 s,@CPP@,$CPP,;t t
11408 s,@CPPFLAGS@,$CPPFLAGS,;t t
11409 s,@SET_MAKE@,$SET_MAKE,;t t
11410 s,@LIBOBJS@,$LIBOBJS,;t t
11411 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11412 CEOF
11413
11414 _ACEOF
11415
11416 cat >>$CONFIG_STATUS <<\_ACEOF
11417 # Split the substitutions into bite-sized pieces for seds with
11418 # small command number limits, like on Digital OSF/1 and HP-UX.
11419 ac_max_sed_lines=48
11420 ac_sed_frag=1 # Number of current file.
11421 ac_beg=1 # First line for current file.
11422 ac_end=$ac_max_sed_lines # Line after last line for current file.
11423 ac_more_lines=:
11424 ac_sed_cmds=
11425 while $ac_more_lines; do
11426 if test $ac_beg -gt 1; then
11427 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11428 else
11429 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11430 fi
11431 if test ! -s $tmp/subs.frag; then
11432 ac_more_lines=false
11433 else
11434 # The purpose of the label and of the branching condition is to
11435 # speed up the sed processing (if there are no `@' at all, there
11436 # is no need to browse any of the substitutions).
11437 # These are the two extra sed commands mentioned above.
11438 (echo ':t
11439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11440 if test -z "$ac_sed_cmds"; then
11441 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11442 else
11443 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11444 fi
11445 ac_sed_frag=`expr $ac_sed_frag + 1`
11446 ac_beg=$ac_end
11447 ac_end=`expr $ac_end + $ac_max_sed_lines`
11448 fi
11449 done
11450 if test -z "$ac_sed_cmds"; then
11451 ac_sed_cmds=cat
11452 fi
11453 fi # test -n "$CONFIG_FILES"
11454
11455 _ACEOF
11456 cat >>$CONFIG_STATUS <<\_ACEOF
11457 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11459 case $ac_file in
11460 - | *:- | *:-:* ) # input from stdin
11461 cat >$tmp/stdin
11462 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11464 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11466 * ) ac_file_in=$ac_file.in ;;
11467 esac
11468
11469 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11470 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11472 X"$ac_file" : 'X\(//\)[^/]' \| \
11473 X"$ac_file" : 'X\(//\)$' \| \
11474 X"$ac_file" : 'X\(/\)' \| \
11475 . : '\(.\)' 2>/dev/null ||
11476 echo X"$ac_file" |
11477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11479 /^X\(\/\/\)$/{ s//\1/; q; }
11480 /^X\(\/\).*/{ s//\1/; q; }
11481 s/.*/./; q'`
11482 { if $as_mkdir_p; then
11483 mkdir -p "$ac_dir"
11484 else
11485 as_dir="$ac_dir"
11486 as_dirs=
11487 while test ! -d "$as_dir"; do
11488 as_dirs="$as_dir $as_dirs"
11489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11491 X"$as_dir" : 'X\(//\)[^/]' \| \
11492 X"$as_dir" : 'X\(//\)$' \| \
11493 X"$as_dir" : 'X\(/\)' \| \
11494 . : '\(.\)' 2>/dev/null ||
11495 echo X"$as_dir" |
11496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11498 /^X\(\/\/\)$/{ s//\1/; q; }
11499 /^X\(\/\).*/{ s//\1/; q; }
11500 s/.*/./; q'`
11501 done
11502 test ! -n "$as_dirs" || mkdir $as_dirs
11503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11505 { (exit 1); exit 1; }; }; }
11506
11507 ac_builddir=.
11508
11509 if test "$ac_dir" != .; then
11510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11511 # A "../" for each directory in $ac_dir_suffix.
11512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11513 else
11514 ac_dir_suffix= ac_top_builddir=
11515 fi
11516
11517 case $srcdir in
11518 .) # No --srcdir option. We are building in place.
11519 ac_srcdir=.
11520 if test -z "$ac_top_builddir"; then
11521 ac_top_srcdir=.
11522 else
11523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11524 fi ;;
11525 [\\/]* | ?:[\\/]* ) # Absolute path.
11526 ac_srcdir=$srcdir$ac_dir_suffix;
11527 ac_top_srcdir=$srcdir ;;
11528 *) # Relative path.
11529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11531 esac
11532
11533 # Do not use `cd foo && pwd` to compute absolute paths, because
11534 # the directories may not exist.
11535 case `pwd` in
11536 .) ac_abs_builddir="$ac_dir";;
11537 *)
11538 case "$ac_dir" in
11539 .) ac_abs_builddir=`pwd`;;
11540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11542 esac;;
11543 esac
11544 case $ac_abs_builddir in
11545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11546 *)
11547 case ${ac_top_builddir}. in
11548 .) ac_abs_top_builddir=$ac_abs_builddir;;
11549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11551 esac;;
11552 esac
11553 case $ac_abs_builddir in
11554 .) ac_abs_srcdir=$ac_srcdir;;
11555 *)
11556 case $ac_srcdir in
11557 .) ac_abs_srcdir=$ac_abs_builddir;;
11558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11560 esac;;
11561 esac
11562 case $ac_abs_builddir in
11563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11564 *)
11565 case $ac_top_srcdir in
11566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11569 esac;;
11570 esac
11571
11572
11573 case $INSTALL in
11574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11575 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11576 esac
11577
11578 # Let's still pretend it is `configure' which instantiates (i.e., don't
11579 # use $as_me), people would be surprised to read:
11580 # /* config.h. Generated by config.status. */
11581 if test x"$ac_file" = x-; then
11582 configure_input=
11583 else
11584 configure_input="$ac_file. "
11585 fi
11586 configure_input=$configure_input"Generated from `echo $ac_file_in |
11587 sed 's,.*/,,'` by configure."
11588
11589 # First look for the input files in the build tree, otherwise in the
11590 # src tree.
11591 ac_file_inputs=`IFS=:
11592 for f in $ac_file_in; do
11593 case $f in
11594 -) echo $tmp/stdin ;;
11595 [\\/$]*)
11596 # Absolute (can't be DOS-style, as IFS=:)
11597 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11598 echo "$as_me: error: cannot find input file: $f" >&2;}
11599 { (exit 1); exit 1; }; }
11600 echo "$f";;
11601 *) # Relative
11602 if test -f "$f"; then
11603 # Build tree
11604 echo "$f"
11605 elif test -f "$srcdir/$f"; then
11606 # Source tree
11607 echo "$srcdir/$f"
11608 else
11609 # /dev/null tree
11610 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11611 echo "$as_me: error: cannot find input file: $f" >&2;}
11612 { (exit 1); exit 1; }; }
11613 fi;;
11614 esac
11615 done` || { (exit 1); exit 1; }
11616
11617 if test x"$ac_file" != x-; then
11618 { echo "$as_me:$LINENO: creating $ac_file" >&5
11619 echo "$as_me: creating $ac_file" >&6;}
11620 rm -f "$ac_file"
11621 fi
11622 _ACEOF
11623 cat >>$CONFIG_STATUS <<_ACEOF
11624 sed "$ac_vpsub
11625 $extrasub
11626 _ACEOF
11627 cat >>$CONFIG_STATUS <<\_ACEOF
11628 :t
11629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11630 s,@configure_input@,$configure_input,;t t
11631 s,@srcdir@,$ac_srcdir,;t t
11632 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11633 s,@top_srcdir@,$ac_top_srcdir,;t t
11634 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11635 s,@builddir@,$ac_builddir,;t t
11636 s,@abs_builddir@,$ac_abs_builddir,;t t
11637 s,@top_builddir@,$ac_top_builddir,;t t
11638 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11639 s,@INSTALL@,$ac_INSTALL,;t t
11640 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11641 rm -f $tmp/stdin
11642 if test x"$ac_file" != x-; then
11643 mv $tmp/out $ac_file
11644 else
11645 cat $tmp/out
11646 rm -f $tmp/out
11647 fi
11648
11649 done
11650 _ACEOF
11651 cat >>$CONFIG_STATUS <<\_ACEOF
11652
11653 #
11654 # CONFIG_HEADER section.
11655 #
11656
11657 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11658 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11659 #
11660 # ac_d sets the value in "#define NAME VALUE" lines.
11661 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11662 ac_dB='[ ].*$,\1#\2'
11663 ac_dC=' '
11664 ac_dD=',;t'
11665 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11666 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11667 ac_uB='$,\1#\2define\3'
11668 ac_uC=' '
11669 ac_uD=',;t'
11670
11671 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11672 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11673 case $ac_file in
11674 - | *:- | *:-:* ) # input from stdin
11675 cat >$tmp/stdin
11676 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11677 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11678 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11679 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11680 * ) ac_file_in=$ac_file.in ;;
11681 esac
11682
11683 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11684 echo "$as_me: creating $ac_file" >&6;}
11685
11686 # First look for the input files in the build tree, otherwise in the
11687 # src tree.
11688 ac_file_inputs=`IFS=:
11689 for f in $ac_file_in; do
11690 case $f in
11691 -) echo $tmp/stdin ;;
11692 [\\/$]*)
11693 # Absolute (can't be DOS-style, as IFS=:)
11694 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11695 echo "$as_me: error: cannot find input file: $f" >&2;}
11696 { (exit 1); exit 1; }; }
11697 # Do quote $f, to prevent DOS paths from being IFS'd.
11698 echo "$f";;
11699 *) # Relative
11700 if test -f "$f"; then
11701 # Build tree
11702 echo "$f"
11703 elif test -f "$srcdir/$f"; then
11704 # Source tree
11705 echo "$srcdir/$f"
11706 else
11707 # /dev/null tree
11708 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11709 echo "$as_me: error: cannot find input file: $f" >&2;}
11710 { (exit 1); exit 1; }; }
11711 fi;;
11712 esac
11713 done` || { (exit 1); exit 1; }
11714 # Remove the trailing spaces.
11715 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11716
11717 _ACEOF
11718
11719 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11720 # `conftest.undefs', that substitutes the proper values into
11721 # config.h.in to produce config.h. The first handles `#define'
11722 # templates, and the second `#undef' templates.
11723 # And first: Protect against being on the right side of a sed subst in
11724 # config.status. Protect against being in an unquoted here document
11725 # in config.status.
11726 rm -f conftest.defines conftest.undefs
11727 # Using a here document instead of a string reduces the quoting nightmare.
11728 # Putting comments in sed scripts is not portable.
11729 #
11730 # `end' is used to avoid that the second main sed command (meant for
11731 # 0-ary CPP macros) applies to n-ary macro definitions.
11732 # See the Autoconf documentation for `clear'.
11733 cat >confdef2sed.sed <<\_ACEOF
11734 s/[\\&,]/\\&/g
11735 s,[\\$`],\\&,g
11736 t clear
11737 : clear
11738 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11739 t end
11740 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11741 : end
11742 _ACEOF
11743 # If some macros were called several times there might be several times
11744 # the same #defines, which is useless. Nevertheless, we may not want to
11745 # sort them, since we want the *last* AC-DEFINE to be honored.
11746 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11747 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11748 rm -f confdef2sed.sed
11749
11750 # This sed command replaces #undef with comments. This is necessary, for
11751 # example, in the case of _POSIX_SOURCE, which is predefined and required
11752 # on some systems where configure will not decide to define it.
11753 cat >>conftest.undefs <<\_ACEOF
11754 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11755 _ACEOF
11756
11757 # Break up conftest.defines because some shells have a limit on the size
11758 # of here documents, and old seds have small limits too (100 cmds).
11759 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11760 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11761 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11762 echo ' :' >>$CONFIG_STATUS
11763 rm -f conftest.tail
11764 while grep . conftest.defines >/dev/null
11765 do
11766 # Write a limited-size here document to $tmp/defines.sed.
11767 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11768 # Speed up: don't consider the non `#define' lines.
11769 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11770 # Work around the forget-to-reset-the-flag bug.
11771 echo 't clr' >>$CONFIG_STATUS
11772 echo ': clr' >>$CONFIG_STATUS
11773 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11774 echo 'CEOF
11775 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11776 rm -f $tmp/in
11777 mv $tmp/out $tmp/in
11778 ' >>$CONFIG_STATUS
11779 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11780 rm -f conftest.defines
11781 mv conftest.tail conftest.defines
11782 done
11783 rm -f conftest.defines
11784 echo ' fi # grep' >>$CONFIG_STATUS
11785 echo >>$CONFIG_STATUS
11786
11787 # Break up conftest.undefs because some shells have a limit on the size
11788 # of here documents, and old seds have small limits too (100 cmds).
11789 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11790 rm -f conftest.tail
11791 while grep . conftest.undefs >/dev/null
11792 do
11793 # Write a limited-size here document to $tmp/undefs.sed.
11794 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11795 # Speed up: don't consider the non `#undef'
11796 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11797 # Work around the forget-to-reset-the-flag bug.
11798 echo 't clr' >>$CONFIG_STATUS
11799 echo ': clr' >>$CONFIG_STATUS
11800 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11801 echo 'CEOF
11802 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11803 rm -f $tmp/in
11804 mv $tmp/out $tmp/in
11805 ' >>$CONFIG_STATUS
11806 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11807 rm -f conftest.undefs
11808 mv conftest.tail conftest.undefs
11809 done
11810 rm -f conftest.undefs
11811
11812 cat >>$CONFIG_STATUS <<\_ACEOF
11813 # Let's still pretend it is `configure' which instantiates (i.e., don't
11814 # use $as_me), people would be surprised to read:
11815 # /* config.h. Generated by config.status. */
11816 if test x"$ac_file" = x-; then
11817 echo "/* Generated by configure. */" >$tmp/config.h
11818 else
11819 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11820 fi
11821 cat $tmp/in >>$tmp/config.h
11822 rm -f $tmp/in
11823 if test x"$ac_file" != x-; then
11824 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11825 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11826 echo "$as_me: $ac_file is unchanged" >&6;}
11827 else
11828 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11830 X"$ac_file" : 'X\(//\)[^/]' \| \
11831 X"$ac_file" : 'X\(//\)$' \| \
11832 X"$ac_file" : 'X\(/\)' \| \
11833 . : '\(.\)' 2>/dev/null ||
11834 echo X"$ac_file" |
11835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11837 /^X\(\/\/\)$/{ s//\1/; q; }
11838 /^X\(\/\).*/{ s//\1/; q; }
11839 s/.*/./; q'`
11840 { if $as_mkdir_p; then
11841 mkdir -p "$ac_dir"
11842 else
11843 as_dir="$ac_dir"
11844 as_dirs=
11845 while test ! -d "$as_dir"; do
11846 as_dirs="$as_dir $as_dirs"
11847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11849 X"$as_dir" : 'X\(//\)[^/]' \| \
11850 X"$as_dir" : 'X\(//\)$' \| \
11851 X"$as_dir" : 'X\(/\)' \| \
11852 . : '\(.\)' 2>/dev/null ||
11853 echo X"$as_dir" |
11854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11856 /^X\(\/\/\)$/{ s//\1/; q; }
11857 /^X\(\/\).*/{ s//\1/; q; }
11858 s/.*/./; q'`
11859 done
11860 test ! -n "$as_dirs" || mkdir $as_dirs
11861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11863 { (exit 1); exit 1; }; }; }
11864
11865 rm -f $ac_file
11866 mv $tmp/config.h $ac_file
11867 fi
11868 else
11869 cat $tmp/config.h
11870 rm -f $tmp/config.h
11871 fi
11872 done
11873 _ACEOF
11874 cat >>$CONFIG_STATUS <<\_ACEOF
11875
11876 #
11877 # CONFIG_COMMANDS section.
11878 #
11879 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11880 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11881 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11882 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11883 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11884 X"$ac_dest" : 'X\(//\)[^/]' \| \
11885 X"$ac_dest" : 'X\(//\)$' \| \
11886 X"$ac_dest" : 'X\(/\)' \| \
11887 . : '\(.\)' 2>/dev/null ||
11888 echo X"$ac_dest" |
11889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11891 /^X\(\/\/\)$/{ s//\1/; q; }
11892 /^X\(\/\).*/{ s//\1/; q; }
11893 s/.*/./; q'`
11894 { if $as_mkdir_p; then
11895 mkdir -p "$ac_dir"
11896 else
11897 as_dir="$ac_dir"
11898 as_dirs=
11899 while test ! -d "$as_dir"; do
11900 as_dirs="$as_dir $as_dirs"
11901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11903 X"$as_dir" : 'X\(//\)[^/]' \| \
11904 X"$as_dir" : 'X\(//\)$' \| \
11905 X"$as_dir" : 'X\(/\)' \| \
11906 . : '\(.\)' 2>/dev/null ||
11907 echo X"$as_dir" |
11908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11910 /^X\(\/\/\)$/{ s//\1/; q; }
11911 /^X\(\/\).*/{ s//\1/; q; }
11912 s/.*/./; q'`
11913 done
11914 test ! -n "$as_dirs" || mkdir $as_dirs
11915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11917 { (exit 1); exit 1; }; }; }
11918
11919 ac_builddir=.
11920
11921 if test "$ac_dir" != .; then
11922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11923 # A "../" for each directory in $ac_dir_suffix.
11924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11925 else
11926 ac_dir_suffix= ac_top_builddir=
11927 fi
11928
11929 case $srcdir in
11930 .) # No --srcdir option. We are building in place.
11931 ac_srcdir=.
11932 if test -z "$ac_top_builddir"; then
11933 ac_top_srcdir=.
11934 else
11935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11936 fi ;;
11937 [\\/]* | ?:[\\/]* ) # Absolute path.
11938 ac_srcdir=$srcdir$ac_dir_suffix;
11939 ac_top_srcdir=$srcdir ;;
11940 *) # Relative path.
11941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11943 esac
11944
11945 # Do not use `cd foo && pwd` to compute absolute paths, because
11946 # the directories may not exist.
11947 case `pwd` in
11948 .) ac_abs_builddir="$ac_dir";;
11949 *)
11950 case "$ac_dir" in
11951 .) ac_abs_builddir=`pwd`;;
11952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11954 esac;;
11955 esac
11956 case $ac_abs_builddir in
11957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11958 *)
11959 case ${ac_top_builddir}. in
11960 .) ac_abs_top_builddir=$ac_abs_builddir;;
11961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11963 esac;;
11964 esac
11965 case $ac_abs_builddir in
11966 .) ac_abs_srcdir=$ac_srcdir;;
11967 *)
11968 case $ac_srcdir in
11969 .) ac_abs_srcdir=$ac_abs_builddir;;
11970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11972 esac;;
11973 esac
11974 case $ac_abs_builddir in
11975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11976 *)
11977 case $ac_top_srcdir in
11978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11981 esac;;
11982 esac
11983
11984
11985 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11986 echo "$as_me: executing $ac_dest commands" >&6;}
11987 case $ac_dest in
11988 default-1 )
11989 # Only add multilib support code if we just rebuilt the top-level
11990 # Makefile.
11991 case " $CONFIG_FILES " in
11992 *" Makefile "*)
11993 ac_file=Makefile . ${multi_basedir}/config-ml.in
11994 ;;
11995 esac ;;
11996 libtool )
11997
11998 # See if we are running on zsh, and set the options which allow our
11999 # commands through without removal of \ escapes.
12000 if test -n "${ZSH_VERSION+set}" ; then
12001 setopt NO_GLOB_SUBST
12002 fi
12003
12004 cfgfile="${ofile}T"
12005 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12006 $RM "$cfgfile"
12007
12008 cat <<_LT_EOF >> "$cfgfile"
12009 #! $SHELL
12010
12011 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12012 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12014 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12015 #
12016 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12017 # 2006, 2007 Free Software Foundation, Inc.
12018 #
12019 # This file is part of GNU Libtool:
12020 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12021 #
12022 # This program is free software; you can redistribute it and/or modify
12023 # it under the terms of the GNU General Public License as published by
12024 # the Free Software Foundation; either version 2 of the License, or
12025 # (at your option) any later version.
12026 #
12027 # This program is distributed in the hope that it will be useful, but
12028 # WITHOUT ANY WARRANTY; without even the implied warranty of
12029 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12030 # General Public License for more details.
12031 #
12032 # You should have received a copy of the GNU General Public License
12033 # along with this program; if not, a copy can be downloaded from
12034 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12035 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12036 # MA 02110-1301, USA.
12037 #
12038 # As a special exception to the GNU General Public License, if you
12039 # distribute this file as part of a program that contains a
12040 # configuration script generated by Autoconf, you may include it under
12041 # the same distribution terms that you use for the rest of that program.
12042
12043
12044 # The names of the tagged configurations supported by this script.
12045 available_tags=""
12046
12047 # ### BEGIN LIBTOOL CONFIG
12048
12049 # Assembler program.
12050 AS=$AS
12051
12052 # DLL creation program.
12053 DLLTOOL=$DLLTOOL
12054
12055 # Object dumper program.
12056 OBJDUMP=$OBJDUMP
12057
12058 # Which release of libtool.m4 was used?
12059 macro_version=$macro_version
12060 macro_revision=$macro_revision
12061
12062 # Whether or not to build shared libraries.
12063 build_libtool_libs=$enable_shared
12064
12065 # Whether or not to build static libraries.
12066 build_old_libs=$enable_static
12067
12068 # What type of objects to build.
12069 pic_mode=$pic_mode
12070
12071 # Whether or not to optimize for fast installation.
12072 fast_install=$enable_fast_install
12073
12074 # The host system.
12075 host_alias=$host_alias
12076 host=$host
12077 host_os=$host_os
12078
12079 # The build system.
12080 build_alias=$build_alias
12081 build=$build
12082 build_os=$build_os
12083
12084 # A sed program that does not truncate output.
12085 SED=$lt_SED
12086
12087 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12088 Xsed="\$SED -e 1s/^X//"
12089
12090 # A grep program that handles long lines.
12091 GREP=$lt_GREP
12092
12093 # An ERE matcher.
12094 EGREP=$lt_EGREP
12095
12096 # A literal string matcher.
12097 FGREP=$lt_FGREP
12098
12099 # A BSD- or MS-compatible name lister.
12100 NM=$lt_NM
12101
12102 # Whether we need soft or hard links.
12103 LN_S=$lt_LN_S
12104
12105 # What is the maximum length of a command?
12106 max_cmd_len=$max_cmd_len
12107
12108 # Object file suffix (normally "o").
12109 objext=$ac_objext
12110
12111 # Executable file suffix (normally "").
12112 exeext=$exeext
12113
12114 # whether the shell understands "unset".
12115 lt_unset=$lt_unset
12116
12117 # turn spaces into newlines.
12118 SP2NL=$lt_lt_SP2NL
12119
12120 # turn newlines into spaces.
12121 NL2SP=$lt_lt_NL2SP
12122
12123 # How to create reloadable object files.
12124 reload_flag=$lt_reload_flag
12125 reload_cmds=$lt_reload_cmds
12126
12127 # Method to check whether dependent libraries are shared objects.
12128 deplibs_check_method=$lt_deplibs_check_method
12129
12130 # Command to use when deplibs_check_method == "file_magic".
12131 file_magic_cmd=$lt_file_magic_cmd
12132
12133 # The archiver.
12134 AR=$lt_AR
12135 AR_FLAGS=$lt_AR_FLAGS
12136
12137 # A symbol stripping program.
12138 STRIP=$lt_STRIP
12139
12140 # Commands used to install an old-style archive.
12141 RANLIB=$lt_RANLIB
12142 old_postinstall_cmds=$lt_old_postinstall_cmds
12143 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12144
12145 # A C compiler.
12146 LTCC=$lt_CC
12147
12148 # LTCC compiler flags.
12149 LTCFLAGS=$lt_CFLAGS
12150
12151 # Take the output of nm and produce a listing of raw symbols and C names.
12152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12153
12154 # Transform the output of nm in a proper C declaration.
12155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12156
12157 # Transform the output of nm in a C name address pair.
12158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12159
12160 # The name of the directory that contains temporary libtool files.
12161 objdir=$objdir
12162
12163 # Shell to use when invoking shell scripts.
12164 SHELL=$lt_SHELL
12165
12166 # An echo program that does not interpret backslashes.
12167 ECHO=$lt_ECHO
12168
12169 # Used to examine libraries when file_magic_cmd begins with "file".
12170 MAGIC_CMD=$MAGIC_CMD
12171
12172 # Must we lock files when doing compilation?
12173 need_locks=$lt_need_locks
12174
12175 # Old archive suffix (normally "a").
12176 libext=$libext
12177
12178 # Shared library suffix (normally ".so").
12179 shrext_cmds=$lt_shrext_cmds
12180
12181 # The commands to extract the exported symbol list from a shared archive.
12182 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12183
12184 # Variables whose values should be saved in libtool wrapper scripts and
12185 # restored at link time.
12186 variables_saved_for_relink=$lt_variables_saved_for_relink
12187
12188 # Do we need the "lib" prefix for modules?
12189 need_lib_prefix=$need_lib_prefix
12190
12191 # Do we need a version for libraries?
12192 need_version=$need_version
12193
12194 # Library versioning type.
12195 version_type=$version_type
12196
12197 # Shared library runtime path variable.
12198 runpath_var=$runpath_var
12199
12200 # Shared library path variable.
12201 shlibpath_var=$shlibpath_var
12202
12203 # Is shlibpath searched before the hard-coded library search path?
12204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12205
12206 # Format of library name prefix.
12207 libname_spec=$lt_libname_spec
12208
12209 # List of archive names. First name is the real one, the rest are links.
12210 # The last name is the one that the linker finds with -lNAME
12211 library_names_spec=$lt_library_names_spec
12212
12213 # The coded name of the library, if different from the real name.
12214 soname_spec=$lt_soname_spec
12215
12216 # Command to use after installation of a shared archive.
12217 postinstall_cmds=$lt_postinstall_cmds
12218
12219 # Command to use after uninstallation of a shared archive.
12220 postuninstall_cmds=$lt_postuninstall_cmds
12221
12222 # Commands used to finish a libtool library installation in a directory.
12223 finish_cmds=$lt_finish_cmds
12224
12225 # As "finish_cmds", except a single script fragment to be evaled but
12226 # not shown.
12227 finish_eval=$lt_finish_eval
12228
12229 # Whether we should hardcode library paths into libraries.
12230 hardcode_into_libs=$hardcode_into_libs
12231
12232 # Compile-time system search path for libraries.
12233 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12234
12235 # Run-time system search path for libraries.
12236 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12237
12238 # Whether dlopen is supported.
12239 dlopen_support=$enable_dlopen
12240
12241 # Whether dlopen of programs is supported.
12242 dlopen_self=$enable_dlopen_self
12243
12244 # Whether dlopen of statically linked programs is supported.
12245 dlopen_self_static=$enable_dlopen_self_static
12246
12247 # Commands to strip libraries.
12248 old_striplib=$lt_old_striplib
12249 striplib=$lt_striplib
12250
12251
12252 # The linker used to build libraries.
12253 LD=$lt_LD
12254
12255 # Commands used to build an old-style archive.
12256 old_archive_cmds=$lt_old_archive_cmds
12257
12258 # A language specific compiler.
12259 CC=$lt_compiler
12260
12261 # Is the compiler the GNU compiler?
12262 with_gcc=$GCC
12263
12264 # Compiler flag to turn off builtin functions.
12265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12266
12267 # How to pass a linker flag through the compiler.
12268 wl=$lt_lt_prog_compiler_wl
12269
12270 # Additional compiler flags for building library objects.
12271 pic_flag=$lt_lt_prog_compiler_pic
12272
12273 # Compiler flag to prevent dynamic linking.
12274 link_static_flag=$lt_lt_prog_compiler_static
12275
12276 # Does compiler simultaneously support -c and -o options?
12277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12278
12279 # Whether or not to add -lc for building shared libraries.
12280 build_libtool_need_lc=$archive_cmds_need_lc
12281
12282 # Whether or not to disallow shared libs when runtime libs are static.
12283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12284
12285 # Compiler flag to allow reflexive dlopens.
12286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12287
12288 # Compiler flag to generate shared objects directly from archives.
12289 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12290
12291 # Whether the compiler copes with passing no objects directly.
12292 compiler_needs_object=$lt_compiler_needs_object
12293
12294 # Create an old-style archive from a shared archive.
12295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12296
12297 # Create a temporary old-style archive to link instead of a shared archive.
12298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12299
12300 # Commands used to build a shared archive.
12301 archive_cmds=$lt_archive_cmds
12302 archive_expsym_cmds=$lt_archive_expsym_cmds
12303
12304 # Commands used to build a loadable module if different from building
12305 # a shared archive.
12306 module_cmds=$lt_module_cmds
12307 module_expsym_cmds=$lt_module_expsym_cmds
12308
12309 # Whether we are building with GNU ld or not.
12310 with_gnu_ld=$lt_with_gnu_ld
12311
12312 # Flag that allows shared libraries with undefined symbols to be built.
12313 allow_undefined_flag=$lt_allow_undefined_flag
12314
12315 # Flag that enforces no undefined symbols.
12316 no_undefined_flag=$lt_no_undefined_flag
12317
12318 # Flag to hardcode \$libdir into a binary during linking.
12319 # This must work even if \$libdir does not exist
12320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12321
12322 # If ld is used when linking, flag to hardcode \$libdir into a binary
12323 # during linking. This must work even if \$libdir does not exist.
12324 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12325
12326 # Whether we need a single "-rpath" flag with a separated argument.
12327 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12328
12329 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12330 # DIR into the resulting binary.
12331 hardcode_direct=$hardcode_direct
12332
12333 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12334 # DIR into the resulting binary and the resulting library dependency is
12335 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12336 # library is relocated.
12337 hardcode_direct_absolute=$hardcode_direct_absolute
12338
12339 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12340 # into the resulting binary.
12341 hardcode_minus_L=$hardcode_minus_L
12342
12343 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12344 # into the resulting binary.
12345 hardcode_shlibpath_var=$hardcode_shlibpath_var
12346
12347 # Set to "yes" if building a shared library automatically hardcodes DIR
12348 # into the library and all subsequent libraries and executables linked
12349 # against it.
12350 hardcode_automatic=$hardcode_automatic
12351
12352 # Set to yes if linker adds runtime paths of dependent libraries
12353 # to runtime path list.
12354 inherit_rpath=$inherit_rpath
12355
12356 # Whether libtool must link a program against all its dependency libraries.
12357 link_all_deplibs=$link_all_deplibs
12358
12359 # Fix the shell variable \$srcfile for the compiler.
12360 fix_srcfile_path=$lt_fix_srcfile_path
12361
12362 # Set to "yes" if exported symbols are required.
12363 always_export_symbols=$always_export_symbols
12364
12365 # The commands to list exported symbols.
12366 export_symbols_cmds=$lt_export_symbols_cmds
12367
12368 # Symbols that should not be listed in the preloaded symbols.
12369 exclude_expsyms=$lt_exclude_expsyms
12370
12371 # Symbols that must always be exported.
12372 include_expsyms=$lt_include_expsyms
12373
12374 # Commands necessary for linking programs (against libraries) with templates.
12375 prelink_cmds=$lt_prelink_cmds
12376
12377 # Specify filename containing input files.
12378 file_list_spec=$lt_file_list_spec
12379
12380 # How to hardcode a shared library path into an executable.
12381 hardcode_action=$hardcode_action
12382
12383 # ### END LIBTOOL CONFIG
12384
12385 _LT_EOF
12386
12387 case $host_os in
12388 aix3*)
12389 cat <<\_LT_EOF >> "$cfgfile"
12390 # AIX sometimes has problems with the GCC collect2 program. For some
12391 # reason, if we set the COLLECT_NAMES environment variable, the problems
12392 # vanish in a puff of smoke.
12393 if test "X${COLLECT_NAMES+set}" != Xset; then
12394 COLLECT_NAMES=
12395 export COLLECT_NAMES
12396 fi
12397 _LT_EOF
12398 ;;
12399 esac
12400
12401
12402 ltmain="$ac_aux_dir/ltmain.sh"
12403
12404
12405 # We use sed instead of cat because bash on DJGPP gets confused if
12406 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12407 # text mode, it properly converts lines to CR/LF. This bash problem
12408 # is reportedly fixed, but why not run on old versions too?
12409 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12410 || (rm -f "$cfgfile"; exit 1)
12411
12412 case $xsi_shell in
12413 yes)
12414 cat << \_LT_EOF >> "$cfgfile"
12415 # func_dirname file append nondir_replacement
12416 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12417 # otherwise set result to NONDIR_REPLACEMENT.
12418 func_dirname ()
12419 {
12420 case ${1} in
12421 */*) func_dirname_result="${1%/*}${2}" ;;
12422 * ) func_dirname_result="${3}" ;;
12423 esac
12424 }
12425
12426 # func_basename file
12427 func_basename ()
12428 {
12429 func_basename_result="${1##*/}"
12430 }
12431
12432 # func_stripname prefix suffix name
12433 # strip PREFIX and SUFFIX off of NAME.
12434 # PREFIX and SUFFIX must not contain globbing or regex special
12435 # characters, hashes, percent signs, but SUFFIX may contain a leading
12436 # dot (in which case that matches only a dot).
12437 func_stripname ()
12438 {
12439 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12440 # positional parameters, so assign one to ordinary parameter first.
12441 func_stripname_result=${3}
12442 func_stripname_result=${func_stripname_result#"${1}"}
12443 func_stripname_result=${func_stripname_result%"${2}"}
12444 }
12445
12446 # func_opt_split
12447 func_opt_split ()
12448 {
12449 func_opt_split_opt=${1%%=*}
12450 func_opt_split_arg=${1#*=}
12451 }
12452
12453 # func_lo2o object
12454 func_lo2o ()
12455 {
12456 case ${1} in
12457 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12458 *) func_lo2o_result=${1} ;;
12459 esac
12460 }
12461 _LT_EOF
12462 ;;
12463 *) # Bourne compatible functions.
12464 cat << \_LT_EOF >> "$cfgfile"
12465 # func_dirname file append nondir_replacement
12466 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12467 # otherwise set result to NONDIR_REPLACEMENT.
12468 func_dirname ()
12469 {
12470 # Extract subdirectory from the argument.
12471 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12472 if test "X$func_dirname_result" = "X${1}"; then
12473 func_dirname_result="${3}"
12474 else
12475 func_dirname_result="$func_dirname_result${2}"
12476 fi
12477 }
12478
12479 # func_basename file
12480 func_basename ()
12481 {
12482 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12483 }
12484
12485 # func_stripname prefix suffix name
12486 # strip PREFIX and SUFFIX off of NAME.
12487 # PREFIX and SUFFIX must not contain globbing or regex special
12488 # characters, hashes, percent signs, but SUFFIX may contain a leading
12489 # dot (in which case that matches only a dot).
12490 # func_strip_suffix prefix name
12491 func_stripname ()
12492 {
12493 case ${2} in
12494 .*) func_stripname_result=`$ECHO "X${3}" \
12495 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12496 *) func_stripname_result=`$ECHO "X${3}" \
12497 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12498 esac
12499 }
12500
12501 # sed scripts:
12502 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12503 my_sed_long_arg='1s/^-[^=]*=//'
12504
12505 # func_opt_split
12506 func_opt_split ()
12507 {
12508 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12509 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12510 }
12511
12512 # func_lo2o object
12513 func_lo2o ()
12514 {
12515 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12516 }
12517 _LT_EOF
12518 esac
12519
12520 case $lt_shell_append in
12521 yes)
12522 cat << \_LT_EOF >> "$cfgfile"
12523
12524 # func_append var value
12525 # Append VALUE to the end of shell variable VAR.
12526 func_append ()
12527 {
12528 eval "$1+=\$2"
12529 }
12530 _LT_EOF
12531 ;;
12532 *)
12533 cat << \_LT_EOF >> "$cfgfile"
12534
12535 # func_append var value
12536 # Append VALUE to the end of shell variable VAR.
12537 func_append ()
12538 {
12539 eval "$1=\$$1\$2"
12540 }
12541 _LT_EOF
12542 ;;
12543 esac
12544
12545
12546 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12547 || (rm -f "$cfgfile"; exit 1)
12548
12549 mv -f "$cfgfile" "$ofile" ||
12550 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12551 chmod +x "$ofile"
12552
12553 ;;
12554 default ) if test -n "$CONFIG_FILES"; then
12555 if test -n "${with_target_subdir}"; then
12556 # FIXME: We shouldn't need to set ac_file
12557 ac_file=Makefile
12558 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
12559 . ${multi_basedir}/config-ml.in
12560 fi
12561 fi ;;
12562 esac
12563 done
12564 _ACEOF
12565
12566 cat >>$CONFIG_STATUS <<\_ACEOF
12567
12568 { (exit 0); exit 0; }
12569 _ACEOF
12570 chmod +x $CONFIG_STATUS
12571 ac_clean_files=$ac_clean_files_save
12572
12573
12574 # configure is writing to config.log, and then calls config.status.
12575 # config.status does its own redirection, appending to config.log.
12576 # Unfortunately, on DOS this fails, as config.log is still kept open
12577 # by configure, so config.status won't be able to write to it; its
12578 # output is simply discarded. So we exec the FD to /dev/null,
12579 # effectively closing config.log, so it can be properly (re)opened and
12580 # appended to by config.status. When coming back to configure, we
12581 # need to make the FD available again.
12582 if test "$no_create" != yes; then
12583 ac_cs_success=:
12584 ac_config_status_args=
12585 test "$silent" = yes &&
12586 ac_config_status_args="$ac_config_status_args --quiet"
12587 exec 5>/dev/null
12588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12589 exec 5>>config.log
12590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12591 # would make configure fail if this is the last instruction.
12592 $ac_cs_success || { (exit 1); exit 1; }
12593 fi
12594