2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / libobjc / configure
blob239a75f747eac90e1359641b606c6cd0e885fd97
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.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
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','`
253 esac
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
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
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
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
293 done
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
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'
305 # So, first we look for a working echo in the user's PATH.
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
317 done
318 IFS="$lt_save_ifs"
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
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=:
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
366 prev="$cmd"
367 done
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
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"
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`
398 exec 6>&1
401 # Initializations.
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}
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}
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=''
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"
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=''
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
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'
502 ac_prev=
503 for ac_option
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
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
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 ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
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 ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
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 ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
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 ;;
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 ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
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 ;;
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 ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
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 ;;
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 ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
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 ;;
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 ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
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'" ;;
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" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
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 ;;
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 ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
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 ;;
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}
798 esac
799 done
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; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
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
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
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
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
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
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
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=..
874 else
875 ac_srcdir_defaulted=no
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; }; }
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
912 # Report the --help message.
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.
920 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
925 Defaults for the options are specified in brackets.
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 \`..']
938 _ACEOF
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]
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'.
952 For better control, use the options below.
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
969 cat <<\_ACEOF
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
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
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
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]
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
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.
1026 _ACEOF
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=.
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=
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
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";;
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}.;;
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;;
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;;
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
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
1114 cd $ac_popdir
1115 done
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
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
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.
1135 It was created by package-unused $as_me version-unused, which was
1136 generated by GNU Autoconf 2.59. Invocation command line was
1138 $ $0 $@
1140 _ACEOF
1142 cat <<_ASUNAME
1143 ## --------- ##
1144 ## Platform. ##
1145 ## --------- ##
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`
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`
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`
1164 _ASUNAME
1166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167 for as_dir in $PATH
1169 IFS=$as_save_IFS
1170 test -z "$as_dir" && as_dir=.
1171 echo "PATH: $as_dir"
1172 done
1174 } >&5
1176 cat >&5 <<_ACEOF
1179 ## ----------- ##
1180 ## Core tests. ##
1181 ## ----------- ##
1183 _ACEOF
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
1198 for ac_arg
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'" ;;
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
1224 -* ) ac_must_keep_next=true ;;
1225 esac
1227 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1228 # Get rid of the leading space.
1229 ac_sep=" "
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; }
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.
1245 echo
1247 cat <<\_ASBOX
1248 ## ---------------- ##
1249 ## Cache variables. ##
1250 ## ---------------- ##
1251 _ASBOX
1252 echo
1253 # The following way of writing the cache mishandles newlines in values,
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"
1263 sed -n \
1264 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266 esac;
1268 echo
1270 cat <<\_ASBOX
1271 ## ----------------- ##
1272 ## Output variables. ##
1273 ## ----------------- ##
1274 _ASBOX
1275 echo
1276 for ac_var in $ac_subst_vars
1278 eval ac_val=$`echo $ac_var`
1279 echo "$ac_var='"'"'$ac_val'"'"'"
1280 done | sort
1281 echo
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
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
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
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
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
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
1326 # Predefined preprocessor variables.
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_NAME "$PACKAGE_NAME"
1330 _ACEOF
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335 _ACEOF
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1340 _ACEOF
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_STRING "$PACKAGE_STRING"
1345 _ACEOF
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350 _ACEOF
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"
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"
1369 done
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
1382 else
1383 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384 echo "$as_me: creating cache $cache_file" >&6;}
1385 >$cache_file
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 ,);;
1408 if test "x$ac_old_val" != "x$ac_new_val"; then
1409 # differences in whitespace do not lead to failure.
1410 ac_old_val_w=`echo x $ac_old_val`
1411 ac_new_val_w=`echo x $ac_new_val`
1412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1413 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1414 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1415 ac_cache_corrupted=:
1416 else
1417 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1418 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1419 eval $ac_var=\$ac_old_val
1421 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1422 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1423 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1424 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1425 fi;;
1426 esac
1427 # Pass precious variables to config.status.
1428 if test "$ac_new_set" = set; then
1429 case $ac_new_val in
1430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1431 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1432 *) ac_arg=$ac_var=$ac_new_val ;;
1433 esac
1434 case " $ac_configure_args " in
1435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1436 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1437 esac
1439 done
1440 if $ac_cache_corrupted; then
1441 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1442 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1443 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1444 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1445 { (exit 1); exit 1; }; }
1448 ac_ext=c
1449 ac_cpp='$CPP $CPPFLAGS'
1450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481 ac_aux_dir=
1482 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1483 if test -f $ac_dir/install-sh; then
1484 ac_aux_dir=$ac_dir
1485 ac_install_sh="$ac_aux_dir/install-sh -c"
1486 break
1487 elif test -f $ac_dir/install.sh; then
1488 ac_aux_dir=$ac_dir
1489 ac_install_sh="$ac_aux_dir/install.sh -c"
1490 break
1491 elif test -f $ac_dir/shtool; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/shtool install -c"
1494 break
1496 done
1497 if test -z "$ac_aux_dir"; then
1498 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1499 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1500 { (exit 1); exit 1; }; }
1502 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1503 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1504 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1506 # Make sure we can run config.sub.
1507 $ac_config_sub sun4 >/dev/null 2>&1 ||
1508 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1509 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1510 { (exit 1); exit 1; }; }
1512 echo "$as_me:$LINENO: checking build system type" >&5
1513 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1514 if test "${ac_cv_build+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517 ac_cv_build_alias=$build_alias
1518 test -z "$ac_cv_build_alias" &&
1519 ac_cv_build_alias=`$ac_config_guess`
1520 test -z "$ac_cv_build_alias" &&
1521 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1522 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1523 { (exit 1); exit 1; }; }
1524 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1525 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1526 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1527 { (exit 1); exit 1; }; }
1530 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1531 echo "${ECHO_T}$ac_cv_build" >&6
1532 build=$ac_cv_build
1533 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1534 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1535 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1538 case ${build_alias} in
1539 "") build_noncanonical=${build} ;;
1540 *) build_noncanonical=${build_alias} ;;
1541 esac
1543 case ${host_alias} in
1544 "") host_noncanonical=${build_noncanonical} ;;
1545 *) host_noncanonical=${host_alias} ;;
1546 esac
1548 case ${target_alias} in
1549 "") target_noncanonical=${host_noncanonical} ;;
1550 *) target_noncanonical=${target_alias} ;;
1551 esac
1554 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1555 # have matching libraries, they should use host libraries: Makefile.tpl
1556 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1557 # However, they still use the build modules, because the corresponding
1558 # host modules (e.g. bison) are only built for the host when bootstrap
1559 # finishes. So:
1560 # - build_subdir is where we find build modules, and never changes.
1561 # - build_libsubdir is where we find build libraries, and can be overridden.
1563 # Prefix 'build-' so this never conflicts with target_subdir.
1564 build_subdir="build-${build_noncanonical}"
1566 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1567 if test "${with_build_libsubdir+set}" = set; then
1568 withval="$with_build_libsubdir"
1569 build_libsubdir="$withval"
1570 else
1571 build_libsubdir="$build_subdir"
1573 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1574 if ( test $srcdir = . && test -d gcc ) \
1575 || test -d $srcdir/../host-${host_noncanonical}; then
1576 host_subdir="host-${host_noncanonical}"
1577 else
1578 host_subdir=.
1580 # No prefix.
1581 target_subdir=${target_noncanonical}
1584 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1585 PACKAGE=libobjc
1586 # Version is pulled out to make it a bit easier to change using sed.
1587 VERSION=2:0:0
1590 # This works around the fact that libtool configuration may change LD
1591 # for this particular configuration, but some shells, instead of
1592 # keeping the changes in LD private, export them just because LD is
1593 # exported.
1594 ORIGINAL_LD_FOR_MULTILIBS=$LD
1596 # -------
1597 # Options
1598 # -------
1600 # We use these options to decide which functions to include.
1602 # Check whether --with-target-subdir or --without-target-subdir was given.
1603 if test "${with_target_subdir+set}" = set; then
1604 withval="$with_target_subdir"
1608 # Check whether --with-cross-host or --without-cross-host was given.
1609 if test "${with_cross_host+set}" = set; then
1610 withval="$with_cross_host"
1614 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1615 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1616 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1617 if test "${enable_version_specific_runtime_libs+set}" = set; then
1618 enableval="$enable_version_specific_runtime_libs"
1619 case "$enableval" in
1620 yes) version_specific_libs=yes ;;
1621 no) version_specific_libs=no ;;
1622 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1623 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1624 { (exit 1); exit 1; }; };;
1625 esac
1626 else
1627 version_specific_libs=no
1629 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1630 echo "${ECHO_T}$version_specific_libs" >&6
1632 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1633 if test "${enable_objc_gc+set}" = set; then
1634 enableval="$enable_objc_gc"
1635 case $enable_objc_gc in
1637 OBJC_BOEHM_GC=''
1638 OBJC_BOEHM_GC_INCLUDES=''
1641 OBJC_BOEHM_GC=libobjc_gc.la
1642 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1644 esac
1645 else
1646 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
1651 # -----------
1652 # Directories
1653 # -----------
1655 # Find the rest of the source tree framework.
1656 # Default to --enable-multilib
1657 # Check whether --enable-multilib or --disable-multilib was given.
1658 if test "${enable_multilib+set}" = set; then
1659 enableval="$enable_multilib"
1660 case "$enableval" in
1661 yes) multilib=yes ;;
1662 no) multilib=no ;;
1663 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1664 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1665 { (exit 1); exit 1; }; } ;;
1666 esac
1667 else
1668 multilib=yes
1671 # We may get other options which we leave undocumented:
1672 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1673 # See config-ml.in if you want the gory details.
1675 if test "$srcdir" = "."; then
1676 if test "$with_target_subdir" != "."; then
1677 multi_basedir="$srcdir/$with_multisrctop../.."
1678 else
1679 multi_basedir="$srcdir/$with_multisrctop.."
1681 else
1682 multi_basedir="$srcdir/.."
1686 # Even if the default multilib is not a cross compilation,
1687 # it may be that some of the other multilibs are.
1688 if test $cross_compiling = no && test $multilib = yes \
1689 && test "x${with_multisubdir}" != x ; then
1690 cross_compiling=maybe
1693 ac_config_commands="$ac_config_commands default-1"
1696 echo "$as_me:$LINENO: checking host system type" >&5
1697 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1698 if test "${ac_cv_host+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 ac_cv_host_alias=$host_alias
1702 test -z "$ac_cv_host_alias" &&
1703 ac_cv_host_alias=$ac_cv_build_alias
1704 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1705 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1706 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1707 { (exit 1); exit 1; }; }
1710 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1711 echo "${ECHO_T}$ac_cv_host" >&6
1712 host=$ac_cv_host
1713 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1714 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1715 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1718 echo "$as_me:$LINENO: checking target system type" >&5
1719 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1720 if test "${ac_cv_target+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723 ac_cv_target_alias=$target_alias
1724 test "x$ac_cv_target_alias" = "x" &&
1725 ac_cv_target_alias=$ac_cv_host_alias
1726 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1727 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1728 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1729 { (exit 1); exit 1; }; }
1732 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1733 echo "${ECHO_T}$ac_cv_target" >&6
1734 target=$ac_cv_target
1735 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1736 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1737 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740 # The aliases save the names the user supplied, while $host etc.
1741 # will get canonicalized.
1742 test -n "$target_alias" &&
1743 test "$program_prefix$program_suffix$program_transform_name" = \
1744 NONENONEs,x,x, &&
1745 program_prefix=${target_alias}-
1749 # Export source directory.
1750 # These need to be absolute paths, yet at the same time need to
1751 # canonicalize only relative paths, because then amd will not unmount
1752 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1753 case $srcdir in
1754 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1755 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1756 esac
1759 # Calculate toolexeclibdir
1760 # Also toolexecdir, though it's only used in toolexeclibdir
1761 case ${version_specific_libs} in
1762 yes)
1763 # Need the gcc compiler version to know where to install libraries
1764 # and header files if --enable-version-specific-runtime-libs option
1765 # is selected.
1766 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1767 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1770 if test -n "$with_cross_host" &&
1771 test x"$with_cross_host" != x"no"; then
1772 # Install a library built with a cross compiler in tooldir, not libdir.
1773 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1774 toolexeclibdir='$(toolexecdir)/lib'
1775 else
1776 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1777 toolexeclibdir='$(libdir)'
1779 multi_os_directory=`$CC -print-multi-os-directory`
1780 case $multi_os_directory in
1781 .) ;; # Avoid trailing /.
1782 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1783 esac
1785 esac
1789 # Figure out if we want to name the include directory and the
1790 # library name changes differently.
1791 includedirname=include
1792 libsuffix=
1793 case "${host}" in
1794 *-darwin*)
1795 # Darwin is the only target so far that needs a different include directory.
1796 includedirname=include-gnu-runtime
1797 libsuffix=-gnu
1799 esac
1803 ac_config_headers="$ac_config_headers config.h"
1806 # --------
1807 # Programs
1808 # --------
1812 # We must force CC to /not/ be a precious variable; otherwise
1813 # the wrong, non-multilib-adjusted value will be used in multilibs.
1814 # As a side effect, we have to subst CFLAGS ourselves.
1817 ac_ext=c
1818 ac_cpp='$CPP $CPPFLAGS'
1819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 if test -n "$ac_tool_prefix"; then
1823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 else
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1844 done
1845 done
1849 CC=$ac_cv_prog_CC
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1853 else
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1859 if test -z "$ac_cv_prog_CC"; then
1860 ac_ct_CC=$CC
1861 # Extract the first word of "gcc", so it can be a program name with args.
1862 set dummy gcc; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870 else
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_ac_ct_CC="gcc"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
1882 done
1883 done
1887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1888 if test -n "$ac_ct_CC"; then
1889 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890 echo "${ECHO_T}$ac_ct_CC" >&6
1891 else
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1896 CC=$ac_ct_CC
1897 else
1898 CC="$ac_cv_prog_CC"
1901 if test -z "$CC"; then
1902 if test -n "$ac_tool_prefix"; then
1903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1904 set dummy ${ac_tool_prefix}cc; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 if test -n "$CC"; then
1911 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CC="${ac_tool_prefix}cc"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 break 2
1924 done
1925 done
1929 CC=$ac_cv_prog_CC
1930 if test -n "$CC"; then
1931 echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1933 else
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1939 if test -z "$ac_cv_prog_CC"; then
1940 ac_ct_CC=$CC
1941 # Extract the first word of "cc", so it can be a program name with args.
1942 set dummy cc; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 if test -n "$ac_ct_CC"; then
1949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1950 else
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_ac_ct_CC="cc"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 break 2
1962 done
1963 done
1967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1968 if test -n "$ac_ct_CC"; then
1969 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1970 echo "${ECHO_T}$ac_ct_CC" >&6
1971 else
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1976 CC=$ac_ct_CC
1977 else
1978 CC="$ac_cv_prog_CC"
1982 if test -z "$CC"; then
1983 # Extract the first word of "cc", so it can be a program name with args.
1984 set dummy cc; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993 ac_prog_rejected=no
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2002 ac_prog_rejected=yes
2003 continue
2005 ac_cv_prog_CC="cc"
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 break 2
2009 done
2010 done
2012 if test $ac_prog_rejected = yes; then
2013 # We found a bogon in the path, so make sure we never use it.
2014 set dummy $ac_cv_prog_CC
2015 shift
2016 if test $# != 0; then
2017 # We chose a different compiler from the bogus one.
2018 # However, it has the same basename, so the bogon will be chosen
2019 # first if we set CC to just the basename; use the full file name.
2020 shift
2021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2026 CC=$ac_cv_prog_CC
2027 if test -n "$CC"; then
2028 echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6
2030 else
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$CC"; then
2037 if test -n "$ac_tool_prefix"; then
2038 for ac_prog in cl
2040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2061 done
2062 done
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068 echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2070 else
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2075 test -n "$CC" && break
2076 done
2078 if test -z "$CC"; then
2079 ac_ct_CC=$CC
2080 for ac_prog in cl
2082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy $ac_prog; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089 if test -n "$ac_ct_CC"; then
2090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_ac_ct_CC="$ac_prog"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 break 2
2103 done
2104 done
2108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2109 if test -n "$ac_ct_CC"; then
2110 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2111 echo "${ECHO_T}$ac_ct_CC" >&6
2112 else
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2117 test -n "$ac_ct_CC" && break
2118 done
2120 CC=$ac_ct_CC
2126 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2127 See \`config.log' for more details." >&5
2128 echo "$as_me: error: no acceptable C compiler found in \$PATH
2129 See \`config.log' for more details." >&2;}
2130 { (exit 1); exit 1; }; }
2132 # Provide some information about the compiler.
2133 echo "$as_me:$LINENO:" \
2134 "checking for C compiler version" >&5
2135 ac_compiler=`set X $ac_compile; echo $2`
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2137 (eval $ac_compiler --version </dev/null >&5) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2142 (eval $ac_compiler -v </dev/null >&5) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2147 (eval $ac_compiler -V </dev/null >&5) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h. */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2160 main ()
2164 return 0;
2166 _ACEOF
2167 # FIXME: Cleanup?
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2169 (eval $ac_link) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 gcc_no_link=no
2174 else
2175 gcc_no_link=yes
2178 if test x$gcc_no_link = xyes; then
2179 # Setting cross_compile will disable run tests; it will
2180 # also disable AC_CHECK_FILE but that's generally
2181 # correct if we can't link.
2182 cross_compiling=yes
2183 EXEEXT=
2184 else
2185 cat >conftest.$ac_ext <<_ACEOF
2186 /* confdefs.h. */
2187 _ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h. */
2193 main ()
2197 return 0;
2199 _ACEOF
2200 ac_clean_files_save=$ac_clean_files
2201 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2202 # Try to create an executable without -o first, disregard a.out.
2203 # It will help us diagnose broken compilers, and finding out an intuition
2204 # of exeext.
2205 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2206 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2207 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2208 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2209 (eval $ac_link_default) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # Find the output, starting from the most likely. This scheme is
2214 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2215 # resort.
2217 # Be careful to initialize this variable, since it used to be cached.
2218 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2219 ac_cv_exeext=
2220 # b.out is created by i960 compilers.
2221 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2223 test -f "$ac_file" || continue
2224 case $ac_file in
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2227 conftest.$ac_ext )
2228 # This is the source file.
2230 [ab].out )
2231 # We found the default executable, but exeext='' is most
2232 # certainly right.
2233 break;;
2234 *.* )
2235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236 # FIXME: I believe we export ac_cv_exeext for Libtool,
2237 # but it would be cool to find out if it's true. Does anybody
2238 # maintain Libtool? --akim.
2239 export ac_cv_exeext
2240 break;;
2242 break;;
2243 esac
2244 done
2245 else
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2249 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: C compiler cannot create executables
2252 See \`config.log' for more details." >&2;}
2253 { (exit 77); exit 77; }; }
2256 ac_exeext=$ac_cv_exeext
2257 echo "$as_me:$LINENO: result: $ac_file" >&5
2258 echo "${ECHO_T}$ac_file" >&6
2260 # Check the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2263 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2264 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2265 # If not cross compiling, check that we can run a simple program.
2266 if test "$cross_compiling" != yes; then
2267 if { ac_try='./$ac_file'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 cross_compiling=no
2274 else
2275 if test "$cross_compiling" = maybe; then
2276 cross_compiling=yes
2277 else
2278 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2279 If you meant to cross compile, use \`--host'.
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot run C compiled programs.
2282 If you meant to cross compile, use \`--host'.
2283 See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
2288 echo "$as_me:$LINENO: result: yes" >&5
2289 echo "${ECHO_T}yes" >&6
2291 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2292 ac_clean_files=$ac_clean_files_save
2293 # Check the compiler produces executables we can run. If not, either
2294 # the compiler is broken, or we cross compile.
2295 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2296 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2297 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2298 echo "${ECHO_T}$cross_compiling" >&6
2300 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2301 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2303 (eval $ac_link) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2308 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2309 # work properly (i.e., refer to `conftest.exe'), while it won't with
2310 # `rm'.
2311 for ac_file in conftest.exe conftest conftest.*; do
2312 test -f "$ac_file" || continue
2313 case $ac_file in
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2315 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316 export ac_cv_exeext
2317 break;;
2318 * ) break;;
2319 esac
2320 done
2321 else
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest$ac_cv_exeext
2330 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2335 ac_exeext=$EXEEXT
2337 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2338 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2339 if test "${ac_cv_objext+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h. */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2350 main ()
2354 return 0;
2356 _ACEOF
2357 rm -f conftest.o conftest.obj
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2364 case $ac_file in
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2367 break;;
2368 esac
2369 done
2370 else
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2374 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2375 See \`config.log' for more details." >&5
2376 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2377 See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2383 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2384 echo "${ECHO_T}$ac_cv_objext" >&6
2385 OBJEXT=$ac_cv_objext
2386 ac_objext=$OBJEXT
2387 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2388 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2389 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392 cat >conftest.$ac_ext <<_ACEOF
2393 /* confdefs.h. */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2400 main ()
2402 #ifndef __GNUC__
2403 choke me
2404 #endif
2407 return 0;
2409 _ACEOF
2410 rm -f conftest.$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2413 ac_status=$?
2414 grep -v '^ *+' conftest.er1 >conftest.err
2415 rm -f conftest.er1
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag"
2420 || test ! -s conftest.err'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 (eval $ac_try) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2432 ac_compiler_gnu=yes
2433 else
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2437 ac_compiler_gnu=no
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2443 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2444 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2445 GCC=`test $ac_compiler_gnu = yes && echo yes`
2446 ac_test_CFLAGS=${CFLAGS+set}
2447 ac_save_CFLAGS=$CFLAGS
2448 CFLAGS="-g"
2449 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2451 if test "${ac_cv_prog_cc_g+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454 cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2462 main ()
2466 return 0;
2468 _ACEOF
2469 rm -f conftest.$ac_objext
2470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471 (eval $ac_compile) 2>conftest.er1
2472 ac_status=$?
2473 grep -v '^ *+' conftest.er1 >conftest.err
2474 rm -f conftest.er1
2475 cat conftest.err >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try='test -z "$ac_c_werror_flag"
2479 || test ! -s conftest.err'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 ac_cv_prog_cc_g=yes
2492 else
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2496 ac_cv_prog_cc_g=no
2498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2501 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2502 if test "$ac_test_CFLAGS" = set; then
2503 CFLAGS=$ac_save_CFLAGS
2504 elif test $ac_cv_prog_cc_g = yes; then
2505 if test "$GCC" = yes; then
2506 CFLAGS="-g -O2"
2507 else
2508 CFLAGS="-g"
2510 else
2511 if test "$GCC" = yes; then
2512 CFLAGS="-O2"
2513 else
2514 CFLAGS=
2517 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2518 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2519 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522 ac_cv_prog_cc_stdc=no
2523 ac_save_CC=$CC
2524 cat >conftest.$ac_ext <<_ACEOF
2525 /* confdefs.h. */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h. */
2530 #include <stdarg.h>
2531 #include <stdio.h>
2532 #include <sys/types.h>
2533 #include <sys/stat.h>
2534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2535 struct buf { int x; };
2536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2537 static char *e (p, i)
2538 char **p;
2539 int i;
2541 return p[i];
2543 static char *f (char * (*g) (char **, int), char **p, ...)
2545 char *s;
2546 va_list v;
2547 va_start (v,p);
2548 s = g (p, va_arg (v,int));
2549 va_end (v);
2550 return s;
2553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2554 function prototypes and stuff, but not '\xHH' hex character constants.
2555 These don't provoke an error unfortunately, instead are silently treated
2556 as 'x'. The following induces an error, until -std1 is added to get
2557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2558 array size at least. It's necessary to write '\x00'==0 to get something
2559 that's true only with -std1. */
2560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2562 int test (int i, double x);
2563 struct s1 {int (*f) (int a);};
2564 struct s2 {int (*f) (double a);};
2565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2566 int argc;
2567 char **argv;
2569 main ()
2571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2573 return 0;
2575 _ACEOF
2576 # Don't try gcc -ansi; that turns off useful extensions and
2577 # breaks some systems' header files.
2578 # AIX -qlanglvl=ansi
2579 # Ultrix and OSF/1 -std1
2580 # HP-UX 10.20 and later -Ae
2581 # HP-UX older versions -Aa -D_HPUX_SOURCE
2582 # SVR4 -Xc -D__EXTENSIONS__
2583 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2585 CC="$ac_save_CC $ac_arg"
2586 rm -f conftest.$ac_objext
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>conftest.er1
2589 ac_status=$?
2590 grep -v '^ *+' conftest.er1 >conftest.err
2591 rm -f conftest.er1
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -z "$ac_c_werror_flag"
2596 || test ! -s conftest.err'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; } &&
2602 { ac_try='test -s conftest.$ac_objext'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2608 ac_cv_prog_cc_stdc=$ac_arg
2609 break
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2615 rm -f conftest.err conftest.$ac_objext
2616 done
2617 rm -f conftest.$ac_ext conftest.$ac_objext
2618 CC=$ac_save_CC
2622 case "x$ac_cv_prog_cc_stdc" in
2623 x|xno)
2624 echo "$as_me:$LINENO: result: none needed" >&5
2625 echo "${ECHO_T}none needed" >&6 ;;
2627 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2628 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2629 CC="$CC $ac_cv_prog_cc_stdc" ;;
2630 esac
2632 # Some people use a C++ compiler to compile C. Since we use `exit',
2633 # in C++ we need to declare it. In case someone uses the same compiler
2634 # for both compiling C and C++ we need to have the C++ compiler decide
2635 # the declaration of exit, since it's the most demanding environment.
2636 cat >conftest.$ac_ext <<_ACEOF
2637 #ifndef __cplusplus
2638 choke me
2639 #endif
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 for ac_declaration in \
2664 '' \
2665 'extern "C" void std::exit (int) throw (); using std::exit;' \
2666 'extern "C" void std::exit (int); using std::exit;' \
2667 'extern "C" void exit (int) throw ();' \
2668 'extern "C" void exit (int);' \
2669 'void exit (int);'
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2677 $ac_declaration
2678 #include <stdlib.h>
2680 main ()
2682 exit (42);
2684 return 0;
2686 _ACEOF
2687 rm -f conftest.$ac_objext
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>conftest.er1
2690 ac_status=$?
2691 grep -v '^ *+' conftest.er1 >conftest.err
2692 rm -f conftest.er1
2693 cat conftest.err >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -z "$ac_c_werror_flag"
2697 || test ! -s conftest.err'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 (eval $ac_try) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 continue
2716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2717 cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h. */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2723 $ac_declaration
2725 main ()
2727 exit (42);
2729 return 0;
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag"
2742 || test ! -s conftest.err'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 break
2755 else
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 done
2762 rm -f conftest*
2763 if test -n "$ac_declaration"; then
2764 echo '#ifdef __cplusplus' >>confdefs.h
2765 echo $ac_declaration >>confdefs.h
2766 echo '#endif' >>confdefs.h
2769 else
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 ac_ext=c
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 # extra LD Flags which are required for targets
2784 case "${host}" in
2785 *-darwin*)
2786 # Darwin needs -single_module when linking libobjc
2787 extra_ldflags_libobjc=-Wl,-single_module
2789 esac
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}as; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_AS+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 if test -n "$AS"; then
2803 ac_cv_prog_AS="$AS" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_AS="${ac_tool_prefix}as"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2821 AS=$ac_cv_prog_AS
2822 if test -n "$AS"; then
2823 echo "$as_me:$LINENO: result: $AS" >&5
2824 echo "${ECHO_T}$AS" >&6
2825 else
2826 echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2831 if test -z "$ac_cv_prog_AS"; then
2832 ac_ct_AS=$AS
2833 # Extract the first word of "as", so it can be a program name with args.
2834 set dummy as; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840 if test -n "$ac_ct_AS"; then
2841 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_AS="as"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2854 done
2855 done
2859 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2860 if test -n "$ac_ct_AS"; then
2861 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2862 echo "${ECHO_T}$ac_ct_AS" >&6
2863 else
2864 echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2868 AS=$ac_ct_AS
2869 else
2870 AS="$ac_cv_prog_AS"
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}ar; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_AR+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 if test -n "$AR"; then
2882 ac_cv_prog_AR="$AR" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_AR="${ac_tool_prefix}ar"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2900 AR=$ac_cv_prog_AR
2901 if test -n "$AR"; then
2902 echo "$as_me:$LINENO: result: $AR" >&5
2903 echo "${ECHO_T}$AR" >&6
2904 else
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2910 if test -z "$ac_cv_prog_AR"; then
2911 ac_ct_AR=$AR
2912 # Extract the first word of "ar", so it can be a program name with args.
2913 set dummy ar; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$ac_ct_AR"; then
2920 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_AR="ar"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2938 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2939 if test -n "$ac_ct_AR"; then
2940 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2941 echo "${ECHO_T}$ac_ct_AR" >&6
2942 else
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2947 AR=$ac_ct_AR
2948 else
2949 AR="$ac_cv_prog_AR"
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_RANLIB+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$RANLIB"; then
2961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2974 done
2975 done
2979 RANLIB=$ac_cv_prog_RANLIB
2980 if test -n "$RANLIB"; then
2981 echo "$as_me:$LINENO: result: $RANLIB" >&5
2982 echo "${ECHO_T}$RANLIB" >&6
2983 else
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2989 if test -z "$ac_cv_prog_RANLIB"; then
2990 ac_ct_RANLIB=$RANLIB
2991 # Extract the first word of "ranlib", so it can be a program name with args.
2992 set dummy ranlib; ac_word=$2
2993 echo "$as_me:$LINENO: checking for $ac_word" >&5
2994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2995 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 if test -n "$ac_ct_RANLIB"; then
2999 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_ac_ct_RANLIB="ranlib"
3009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3012 done
3013 done
3015 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3018 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3019 if test -n "$ac_ct_RANLIB"; then
3020 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3021 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3022 else
3023 echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6
3027 RANLIB=$ac_ct_RANLIB
3028 else
3029 RANLIB="$ac_cv_prog_RANLIB"
3032 # Find a good install program. We prefer a C program (faster),
3033 # so one script is as good as another. But avoid the broken or
3034 # incompatible versions:
3035 # SysV /etc/install, /usr/sbin/install
3036 # SunOS /usr/etc/install
3037 # IRIX /sbin/install
3038 # AIX /bin/install
3039 # AmigaOS /C/install, which installs bootblocks on floppy discs
3040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3043 # OS/2's system install, which has a completely different semantic
3044 # ./install, which can be erroneously created by make from ./install.sh.
3045 # Reject install programs that cannot install multiple files.
3046 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3047 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3048 if test -z "$INSTALL"; then
3049 if test "${ac_cv_path_install+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 # Account for people who put trailing slashes in PATH elements.
3058 case $as_dir/ in
3059 ./ | .// | /cC/* | \
3060 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3061 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3062 /usr/ucb/* ) ;;
3064 # OSF1 and SCO ODT 3.0 have their own names for install.
3065 # Don't use installbsd from OSF since it installs stuff as root
3066 # by default.
3067 for ac_prog in ginstall scoinst install; do
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3070 if test $ac_prog = install &&
3071 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3072 # AIX install. It has an incompatible calling convention.
3074 elif test $ac_prog = install &&
3075 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3076 # program-specific install script used by HP pwplus--don't use.
3078 else
3079 rm -rf conftest.one conftest.two conftest.dir
3080 echo one > conftest.one
3081 echo two > conftest.two
3082 mkdir conftest.dir
3083 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3084 test -s conftest.one && test -s conftest.two &&
3085 test -s conftest.dir/conftest.one &&
3086 test -s conftest.dir/conftest.two
3087 then
3088 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3089 break 3
3093 done
3094 done
3096 esac
3097 done
3099 rm -rf conftest.one conftest.two conftest.dir
3102 if test "${ac_cv_path_install+set}" = set; then
3103 INSTALL=$ac_cv_path_install
3104 else
3105 # As a last resort, use the slow shell script. Don't cache a
3106 # value for INSTALL within a source directory, because that will
3107 # break other packages using the cache if that directory is
3108 # removed, or if the value is a relative name.
3109 INSTALL=$ac_install_sh
3112 echo "$as_me:$LINENO: result: $INSTALL" >&5
3113 echo "${ECHO_T}$INSTALL" >&6
3115 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3116 # It thinks the first close brace ends the variable substitution.
3117 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3119 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3121 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3124 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3125 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3126 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3127 if test "${enable_maintainer_mode+set}" = set; then
3128 enableval="$enable_maintainer_mode"
3129 USE_MAINTAINER_MODE=$enableval
3130 else
3131 USE_MAINTAINER_MODE=no
3133 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3134 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3137 if test $USE_MAINTAINER_MODE = yes; then
3138 MAINTAINER_MODE_TRUE=
3139 MAINTAINER_MODE_FALSE='#'
3140 else
3141 MAINTAINER_MODE_TRUE='#'
3142 MAINTAINER_MODE_FALSE=
3145 MAINT=$MAINTAINER_MODE_TRUE
3149 # Enable Win32 DLL on MS Windows - FIXME
3150 enable_win32_dll=yes
3152 case $host in
3153 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3154 if test -n "$ac_tool_prefix"; then
3155 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3156 set dummy ${ac_tool_prefix}as; ac_word=$2
3157 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159 if test "${ac_cv_prog_AS+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 if test -n "$AS"; then
3163 ac_cv_prog_AS="$AS" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_AS="${ac_tool_prefix}as"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3176 done
3177 done
3181 AS=$ac_cv_prog_AS
3182 if test -n "$AS"; then
3183 echo "$as_me:$LINENO: result: $AS" >&5
3184 echo "${ECHO_T}$AS" >&6
3185 else
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3191 if test -z "$ac_cv_prog_AS"; then
3192 ac_ct_AS=$AS
3193 # Extract the first word of "as", so it can be a program name with args.
3194 set dummy as; ac_word=$2
3195 echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 if test -n "$ac_ct_AS"; then
3201 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_ac_ct_AS="as"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3214 done
3215 done
3217 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3220 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3221 if test -n "$ac_ct_AS"; then
3222 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3223 echo "${ECHO_T}$ac_ct_AS" >&6
3224 else
3225 echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6
3229 AS=$ac_ct_AS
3230 else
3231 AS="$ac_cv_prog_AS"
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3237 echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 if test -n "$DLLTOOL"; then
3243 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3256 done
3257 done
3261 DLLTOOL=$ac_cv_prog_DLLTOOL
3262 if test -n "$DLLTOOL"; then
3263 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3264 echo "${ECHO_T}$DLLTOOL" >&6
3265 else
3266 echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3271 if test -z "$ac_cv_prog_DLLTOOL"; then
3272 ac_ct_DLLTOOL=$DLLTOOL
3273 # Extract the first word of "dlltool", so it can be a program name with args.
3274 set dummy dlltool; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$ac_ct_DLLTOOL"; then
3281 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3297 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3300 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3301 if test -n "$ac_ct_DLLTOOL"; then
3302 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3303 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3304 else
3305 echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3309 DLLTOOL=$ac_ct_DLLTOOL
3310 else
3311 DLLTOOL="$ac_cv_prog_DLLTOOL"
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3317 echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 if test -n "$OBJDUMP"; then
3323 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3341 OBJDUMP=$ac_cv_prog_OBJDUMP
3342 if test -n "$OBJDUMP"; then
3343 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3344 echo "${ECHO_T}$OBJDUMP" >&6
3345 else
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3351 if test -z "$ac_cv_prog_OBJDUMP"; then
3352 ac_ct_OBJDUMP=$OBJDUMP
3353 # Extract the first word of "objdump", so it can be a program name with args.
3354 set dummy objdump; ac_word=$2
3355 echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 if test -n "$ac_ct_OBJDUMP"; then
3361 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3374 done
3375 done
3377 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3380 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3381 if test -n "$ac_ct_OBJDUMP"; then
3382 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3383 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3384 else
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3389 OBJDUMP=$ac_ct_OBJDUMP
3390 else
3391 OBJDUMP="$ac_cv_prog_OBJDUMP"
3395 esac
3397 test -z "$AS" && AS=as
3403 test -z "$DLLTOOL" && DLLTOOL=dlltool
3409 test -z "$OBJDUMP" && OBJDUMP=objdump
3420 macro_version='2.1a'
3421 macro_revision='1.2435'
3434 ltmain="$ac_aux_dir/ltmain.sh"
3436 # Set options
3438 enable_dlopen=no
3442 # Check whether --enable-shared or --disable-shared was given.
3443 if test "${enable_shared+set}" = set; then
3444 enableval="$enable_shared"
3445 p=${PACKAGE-default}
3446 case $enableval in
3447 yes) enable_shared=yes ;;
3448 no) enable_shared=no ;;
3450 enable_shared=no
3451 # Look at the argument we got. We use all the common list separators.
3452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3453 for pkg in $enableval; do
3454 IFS="$lt_save_ifs"
3455 if test "X$pkg" = "X$p"; then
3456 enable_shared=yes
3458 done
3459 IFS="$lt_save_ifs"
3461 esac
3462 else
3463 enable_shared=yes
3473 # Check whether --enable-static or --disable-static was given.
3474 if test "${enable_static+set}" = set; then
3475 enableval="$enable_static"
3476 p=${PACKAGE-default}
3477 case $enableval in
3478 yes) enable_static=yes ;;
3479 no) enable_static=no ;;
3481 enable_static=no
3482 # Look at the argument we got. We use all the common list separators.
3483 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3484 for pkg in $enableval; do
3485 IFS="$lt_save_ifs"
3486 if test "X$pkg" = "X$p"; then
3487 enable_static=yes
3489 done
3490 IFS="$lt_save_ifs"
3492 esac
3493 else
3494 enable_static=yes
3505 # Check whether --with-pic or --without-pic was given.
3506 if test "${with_pic+set}" = set; then
3507 withval="$with_pic"
3508 pic_mode="$withval"
3509 else
3510 pic_mode=default
3513 test -z "$pic_mode" && pic_mode=default
3521 # Check whether --enable-fast-install or --disable-fast-install was given.
3522 if test "${enable_fast_install+set}" = set; then
3523 enableval="$enable_fast_install"
3524 p=${PACKAGE-default}
3525 case $enableval in
3526 yes) enable_fast_install=yes ;;
3527 no) enable_fast_install=no ;;
3529 enable_fast_install=no
3530 # Look at the argument we got. We use all the common list separators.
3531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3532 for pkg in $enableval; do
3533 IFS="$lt_save_ifs"
3534 if test "X$pkg" = "X$p"; then
3535 enable_fast_install=yes
3537 done
3538 IFS="$lt_save_ifs"
3540 esac
3541 else
3542 enable_fast_install=yes
3552 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3553 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3554 if test "${lt_cv_path_SED+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 # Loop through the user's path and test for sed and gsed.
3558 # Then use that list of sed's as ones to test for truncation.
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for lt_ac_prog in sed gsed; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3567 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3569 done
3570 done
3571 done
3572 IFS=$as_save_IFS
3573 lt_ac_max=0
3574 lt_ac_count=0
3575 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3576 # along with /bin/sed that truncates output.
3577 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3578 test ! -f $lt_ac_sed && continue
3579 cat /dev/null > conftest.in
3580 lt_ac_count=0
3581 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3582 # Check for GNU sed and select it if it is found.
3583 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3584 lt_cv_path_SED=$lt_ac_sed
3585 break
3587 while true; do
3588 cat conftest.in conftest.in >conftest.tmp
3589 mv conftest.tmp conftest.in
3590 cp conftest.in conftest.nl
3591 echo >>conftest.nl
3592 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3593 cmp -s conftest.out conftest.nl || break
3594 # 10000 chars as input seems more than enough
3595 test $lt_ac_count -gt 10 && break
3596 lt_ac_count=`expr $lt_ac_count + 1`
3597 if test $lt_ac_count -gt $lt_ac_max; then
3598 lt_ac_max=$lt_ac_count
3599 lt_cv_path_SED=$lt_ac_sed
3601 done
3602 done
3606 SED=$lt_cv_path_SED
3608 echo "$as_me:$LINENO: result: $SED" >&5
3609 echo "${ECHO_T}$SED" >&6
3611 test -z "$SED" && SED=sed
3612 Xsed="$SED -e 1s/^X//"
3624 echo "$as_me:$LINENO: checking for egrep" >&5
3625 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3626 if test "${ac_cv_prog_egrep+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3630 then ac_cv_prog_egrep='grep -E'
3631 else ac_cv_prog_egrep='egrep'
3634 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3635 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3636 EGREP=$ac_cv_prog_egrep
3639 echo "$as_me:$LINENO: checking for fgrep" >&5
3640 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3641 if test "${ac_cv_prog_fgrep+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3645 then ac_cv_prog_fgrep='grep -F'
3646 else ac_cv_prog_fgrep='fgrep'
3649 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3650 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3651 FGREP=$ac_cv_prog_fgrep
3654 test -z "$GREP" && GREP=grep
3674 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3675 if test "${with_gnu_ld+set}" = set; then
3676 withval="$with_gnu_ld"
3677 test "$withval" = no || with_gnu_ld=yes
3678 else
3679 with_gnu_ld=no
3681 ac_prog=ld
3682 if test "$GCC" = yes; then
3683 # Check if gcc -print-prog-name=ld gives a path.
3684 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3685 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3686 case $host in
3687 *-*-mingw*)
3688 # gcc leaves a trailing carriage return which upsets mingw
3689 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3691 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3692 esac
3693 case $ac_prog in
3694 # Accept absolute paths.
3695 [\\/]* | ?:[\\/]*)
3696 re_direlt='/[^/][^/]*/\.\./'
3697 # Canonicalize the pathname of ld
3698 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3699 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3700 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3701 done
3702 test -z "$LD" && LD="$ac_prog"
3705 # If it fails, then pretend we aren't using GCC.
3706 ac_prog=ld
3709 # If it is relative, then search for the first ld in PATH.
3710 with_gnu_ld=unknown
3712 esac
3713 elif test "$with_gnu_ld" = yes; then
3714 echo "$as_me:$LINENO: checking for GNU ld" >&5
3715 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3716 else
3717 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3718 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3720 if test "${lt_cv_path_LD+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 if test -z "$LD"; then
3724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3725 for ac_dir in $PATH; do
3726 IFS="$lt_save_ifs"
3727 test -z "$ac_dir" && ac_dir=.
3728 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3729 lt_cv_path_LD="$ac_dir/$ac_prog"
3730 # Check to see if the program is GNU ld. I'd rather use --version,
3731 # but apparently some variants of GNU ld only accept -v.
3732 # Break only if it was the GNU/non-GNU ld that we prefer.
3733 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3734 *GNU* | *'with BFD'*)
3735 test "$with_gnu_ld" != no && break
3738 test "$with_gnu_ld" != yes && break
3740 esac
3742 done
3743 IFS="$lt_save_ifs"
3744 else
3745 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3749 LD="$lt_cv_path_LD"
3750 if test -n "$LD"; then
3751 echo "$as_me:$LINENO: result: $LD" >&5
3752 echo "${ECHO_T}$LD" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3757 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3758 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3759 { (exit 1); exit 1; }; }
3760 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3761 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3762 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3766 case `$LD -v 2>&1 </dev/null` in
3767 *GNU* | *'with BFD'*)
3768 lt_cv_prog_gnu_ld=yes
3771 lt_cv_prog_gnu_ld=no
3773 esac
3775 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3776 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3777 with_gnu_ld=$lt_cv_prog_gnu_ld
3788 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3789 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3790 if test "${lt_cv_path_NM+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 if test -n "$NM"; then
3794 # Let the user override the test.
3795 lt_cv_path_NM="$NM"
3796 else
3797 lt_nm_to_check="${ac_tool_prefix}nm"
3798 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3799 lt_nm_to_check="$lt_nm_to_check nm"
3801 for lt_tmp_nm in $lt_nm_to_check; do
3802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3803 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3804 IFS="$lt_save_ifs"
3805 test -z "$ac_dir" && ac_dir=.
3806 tmp_nm="$ac_dir/$lt_tmp_nm"
3807 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3808 # Check to see if the nm accepts a BSD-compat flag.
3809 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3810 # nm: unknown option "B" ignored
3811 # Tru64's nm complains that /dev/null is an invalid object file
3812 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3813 */dev/null* | *'Invalid file or object type'*)
3814 lt_cv_path_NM="$tmp_nm -B"
3815 break
3818 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3819 */dev/null*)
3820 lt_cv_path_NM="$tmp_nm -p"
3821 break
3824 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3825 continue # so that we can try to find one that supports BSD flags
3827 esac
3829 esac
3831 done
3832 IFS="$lt_save_ifs"
3833 done
3834 : ${lt_cv_path_NM=no}
3837 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3838 echo "${ECHO_T}$lt_cv_path_NM" >&6
3839 if test "$lt_cv_path_NM" != "no"; then
3840 NM="$lt_cv_path_NM"
3841 else
3842 # Didn't find any BSD compatible name lister, look for dumpbin.
3843 if test -n "$ac_tool_prefix"; then
3844 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 if test -n "$DUMPBIN"; then
3854 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3867 done
3868 done
3872 DUMPBIN=$ac_cv_prog_DUMPBIN
3873 if test -n "$DUMPBIN"; then
3874 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3875 echo "${ECHO_T}$DUMPBIN" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 test -n "$DUMPBIN" && break
3882 done
3884 if test -z "$DUMPBIN"; then
3885 ac_ct_DUMPBIN=$DUMPBIN
3886 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3888 # Extract the first word of "$ac_prog", so it can be a program name with args.
3889 set dummy $ac_prog; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -n "$ac_ct_DUMPBIN"; then
3896 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3909 done
3910 done
3914 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3915 if test -n "$ac_ct_DUMPBIN"; then
3916 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3917 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3918 else
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3923 test -n "$ac_ct_DUMPBIN" && break
3924 done
3925 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3927 DUMPBIN=$ac_ct_DUMPBIN
3931 if test "$DUMPBIN" != ":"; then
3932 NM="$DUMPBIN"
3935 test -z "$NM" && NM=nm
3942 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3943 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3944 if test "${lt_cv_nm_interface+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 lt_cv_nm_interface="BSD nm"
3948 echo "int some_variable = 0;" > conftest.$ac_ext
3949 (eval echo "\"\$as_me:3949: $ac_compile\"" >&5)
3950 (eval "$ac_compile" 2>conftest.err)
3951 cat conftest.err >&5
3952 (eval echo "\"\$as_me:3952: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3953 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3954 cat conftest.err >&5
3955 (eval echo "\"\$as_me:3955: output\"" >&5)
3956 cat conftest.out >&5
3957 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3958 lt_cv_nm_interface="MS dumpbin"
3960 rm -f conftest*
3962 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3963 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3965 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3966 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3967 LN_S=$as_ln_s
3968 if test "$LN_S" = "ln -s"; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6
3971 else
3972 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3973 echo "${ECHO_T}no, using $LN_S" >&6
3976 # find the maximum length of command line arguments
3977 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3978 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3979 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3983 teststring="ABCD"
3985 case $build_os in
3986 msdosdjgpp*)
3987 # On DJGPP, this test can blow up pretty badly due to problems in libc
3988 # (any single argument exceeding 2000 bytes causes a buffer overrun
3989 # during glob expansion). Even if it were fixed, the result of this
3990 # check would be larger than it should be.
3991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3994 gnu*)
3995 # Under GNU Hurd, this test is not required because there is
3996 # no limit to the length of command line arguments.
3997 # Libtool will interpret -1 as no limit whatsoever
3998 lt_cv_sys_max_cmd_len=-1;
4001 cygwin* | mingw*)
4002 # On Win9x/ME, this test blows up -- it succeeds, but takes
4003 # about 5 minutes as the teststring grows exponentially.
4004 # Worse, since 9x/ME are not pre-emptively multitasking,
4005 # you end up with a "frozen" computer, even though with patience
4006 # the test eventually succeeds (with a max line length of 256k).
4007 # Instead, let's just punt: use the minimum linelength reported by
4008 # all of the supported platforms: 8192 (on NT/2K/XP).
4009 lt_cv_sys_max_cmd_len=8192;
4012 amigaos*)
4013 # On AmigaOS with pdksh, this test takes hours, literally.
4014 # So we just punt and use a minimum line length of 8192.
4015 lt_cv_sys_max_cmd_len=8192;
4018 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4019 # This has been around since 386BSD, at least. Likely further.
4020 if test -x /sbin/sysctl; then
4021 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4022 elif test -x /usr/sbin/sysctl; then
4023 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4024 else
4025 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4027 # And add a safety zone
4028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4032 interix*)
4033 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4034 lt_cv_sys_max_cmd_len=196608
4037 osf*)
4038 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4039 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4040 # nice to cause kernel panics so lets avoid the loop below.
4041 # First set a reasonable default.
4042 lt_cv_sys_max_cmd_len=16384
4044 if test -x /sbin/sysconfig; then
4045 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4046 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4047 esac
4050 sco3.2v5*)
4051 lt_cv_sys_max_cmd_len=102400
4053 sysv5* | sco5v6* | sysv4.2uw2*)
4054 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4055 if test -n "$kargmax"; then
4056 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4057 else
4058 lt_cv_sys_max_cmd_len=32768
4062 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4063 if test -n $lt_cv_sys_max_cmd_len; then
4064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4066 else
4067 # Make teststring a little bigger before we do anything with it.
4068 # a 1K string should be a reasonable start.
4069 for i in 1 2 3 4 5 6 7 8 ; do
4070 teststring=$teststring$teststring
4071 done
4072 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4073 # If test is not a shell built-in, we'll probably end up computing a
4074 # maximum length that is only half of the actual maximum length, but
4075 # we can't tell.
4076 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4077 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4078 test $i != 17 # 1/2 MB should be enough
4080 i=`expr $i + 1`
4081 teststring=$teststring$teststring
4082 done
4083 # Only check the string length outside the loop.
4084 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4085 teststring=
4086 # Add a significant safety factor because C++ compilers can tack on
4087 # massive amounts of additional arguments before passing them to the
4088 # linker. It appears as though 1/2 is a usable value.
4089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4092 esac
4096 if test -n $lt_cv_sys_max_cmd_len ; then
4097 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4098 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4099 else
4100 echo "$as_me:$LINENO: result: none" >&5
4101 echo "${ECHO_T}none" >&6
4103 max_cmd_len=$lt_cv_sys_max_cmd_len
4111 : ${CP="cp -f"}
4112 : ${MV="mv -f"}
4113 : ${RM="rm -f"}
4115 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4116 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4117 # Try some XSI features
4118 xsi_shell=no
4119 ( _lt_dummy="a/b/c"
4120 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4121 = c,a/b,, ) >/dev/null 2>&1 \
4122 && xsi_shell=yes
4123 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4124 echo "${ECHO_T}$xsi_shell" >&6
4127 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4128 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4129 lt_shell_append=no
4130 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4131 >/dev/null 2>&1 \
4132 && lt_shell_append=yes
4133 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4134 echo "${ECHO_T}$lt_shell_append" >&6
4137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4138 lt_unset=unset
4139 else
4140 lt_unset=false
4147 # test EBCDIC or ASCII
4148 case `echo X|tr X '\101'` in
4149 A) # ASCII based system
4150 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4151 lt_SP2NL='tr \040 \012'
4152 lt_NL2SP='tr \015\012 \040\040'
4154 *) # EBCDIC based system
4155 lt_SP2NL='tr \100 \n'
4156 lt_NL2SP='tr \r\n \100\100'
4158 esac
4168 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4169 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4170 if test "${lt_cv_ld_reload_flag+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 lt_cv_ld_reload_flag='-r'
4175 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4176 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4177 reload_flag=$lt_cv_ld_reload_flag
4178 case $reload_flag in
4179 "" | " "*) ;;
4180 *) reload_flag=" $reload_flag" ;;
4181 esac
4182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4183 case $host_os in
4184 darwin*)
4185 if test "$GCC" = yes; then
4186 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4187 else
4188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4191 esac
4202 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4203 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4204 if test "${lt_cv_deplibs_check_method+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 lt_cv_file_magic_cmd='$MAGIC_CMD'
4208 lt_cv_file_magic_test_file=
4209 lt_cv_deplibs_check_method='unknown'
4210 # Need to set the preceding variable on all platforms that support
4211 # interlibrary dependencies.
4212 # 'none' -- dependencies not supported.
4213 # `unknown' -- same as none, but documents that we really don't know.
4214 # 'pass_all' -- all dependencies passed with no checks.
4215 # 'test_compile' -- check by making test program.
4216 # 'file_magic [[regex]]' -- check by looking for files in library path
4217 # which responds to the $file_magic_cmd with a given extended regex.
4218 # If you have `file' or equivalent on your system and you're not sure
4219 # whether `pass_all' will *always* work, you probably want this one.
4221 case $host_os in
4222 aix[4-9]*)
4223 lt_cv_deplibs_check_method=pass_all
4226 beos*)
4227 lt_cv_deplibs_check_method=pass_all
4230 bsdi[45]*)
4231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4232 lt_cv_file_magic_cmd='/usr/bin/file -L'
4233 lt_cv_file_magic_test_file=/shlib/libc.so
4236 cygwin*)
4237 # func_win32_libid is a shell function defined in ltmain.sh
4238 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4239 lt_cv_file_magic_cmd='func_win32_libid'
4242 mingw* | pw32*)
4243 # Base MSYS/MinGW do not provide the 'file' command needed by
4244 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4245 # unless we find 'file', for example because we are cross-compiling.
4246 if ( file / ) >/dev/null 2>&1; then
4247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4248 lt_cv_file_magic_cmd='func_win32_libid'
4249 else
4250 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4251 lt_cv_file_magic_cmd='$OBJDUMP -f'
4255 darwin* | rhapsody*)
4256 lt_cv_deplibs_check_method=pass_all
4259 freebsd* | dragonfly*)
4260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4261 case $host_cpu in
4262 i*86 )
4263 # Not sure whether the presence of OpenBSD here was a mistake.
4264 # Let's accept both of them until this is cleared up.
4265 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4266 lt_cv_file_magic_cmd=/usr/bin/file
4267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4269 esac
4270 else
4271 lt_cv_deplibs_check_method=pass_all
4275 gnu*)
4276 lt_cv_deplibs_check_method=pass_all
4279 hpux10.20* | hpux11*)
4280 lt_cv_file_magic_cmd=/usr/bin/file
4281 case $host_cpu in
4282 ia64*)
4283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4286 hppa*64*)
4287 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]'
4288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4292 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4294 esac
4297 interix[3-9]*)
4298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4302 irix5* | irix6* | nonstopux*)
4303 case $LD in
4304 *-32|*"-32 ") libmagic=32-bit;;
4305 *-n32|*"-n32 ") libmagic=N32;;
4306 *-64|*"-64 ") libmagic=64-bit;;
4307 *) libmagic=never-match;;
4308 esac
4309 lt_cv_deplibs_check_method=pass_all
4312 # This must be Linux ELF.
4313 linux* | k*bsd*-gnu)
4314 lt_cv_deplibs_check_method=pass_all
4317 netbsd*)
4318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4320 else
4321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4325 newos6*)
4326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4327 lt_cv_file_magic_cmd=/usr/bin/file
4328 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4331 *nto* | *qnx*)
4332 lt_cv_deplibs_check_method=pass_all
4335 openbsd*)
4336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4338 else
4339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4343 osf3* | osf4* | osf5*)
4344 lt_cv_deplibs_check_method=pass_all
4347 rdos*)
4348 lt_cv_deplibs_check_method=pass_all
4351 solaris*)
4352 lt_cv_deplibs_check_method=pass_all
4355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4356 lt_cv_deplibs_check_method=pass_all
4359 sysv4 | sysv4.3*)
4360 case $host_vendor in
4361 motorola)
4362 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]'
4363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4365 ncr)
4366 lt_cv_deplibs_check_method=pass_all
4368 sequent)
4369 lt_cv_file_magic_cmd='/bin/file'
4370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4372 sni)
4373 lt_cv_file_magic_cmd='/bin/file'
4374 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4375 lt_cv_file_magic_test_file=/lib/libc.so
4377 siemens)
4378 lt_cv_deplibs_check_method=pass_all
4381 lt_cv_deplibs_check_method=pass_all
4383 esac
4386 tpf*)
4387 lt_cv_deplibs_check_method=pass_all
4389 esac
4392 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4393 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4394 file_magic_cmd=$lt_cv_file_magic_cmd
4395 deplibs_check_method=$lt_cv_deplibs_check_method
4396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4409 if test -n "$ac_tool_prefix"; then
4410 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4411 set dummy ${ac_tool_prefix}ar; ac_word=$2
4412 echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4414 if test "${ac_cv_prog_AR+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 if test -n "$AR"; then
4418 ac_cv_prog_AR="$AR" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4427 ac_cv_prog_AR="${ac_tool_prefix}ar"
4428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4431 done
4432 done
4436 AR=$ac_cv_prog_AR
4437 if test -n "$AR"; then
4438 echo "$as_me:$LINENO: result: $AR" >&5
4439 echo "${ECHO_T}$AR" >&6
4440 else
4441 echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4446 if test -z "$ac_cv_prog_AR"; then
4447 ac_ct_AR=$AR
4448 # Extract the first word of "ar", so it can be a program name with args.
4449 set dummy ar; ac_word=$2
4450 echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4452 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 if test -n "$ac_ct_AR"; then
4456 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465 ac_cv_prog_ac_ct_AR="ar"
4466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4469 done
4470 done
4472 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4475 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4476 if test -n "$ac_ct_AR"; then
4477 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4478 echo "${ECHO_T}$ac_ct_AR" >&6
4479 else
4480 echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6
4484 AR=$ac_ct_AR
4485 else
4486 AR="$ac_cv_prog_AR"
4489 test -z "$AR" && AR=ar
4490 test -z "$AR_FLAGS" && AR_FLAGS=cru
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}strip; ac_word=$2
4505 echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507 if test "${ac_cv_prog_STRIP+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 if test -n "$STRIP"; then
4511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4529 STRIP=$ac_cv_prog_STRIP
4530 if test -n "$STRIP"; then
4531 echo "$as_me:$LINENO: result: $STRIP" >&5
4532 echo "${ECHO_T}$STRIP" >&6
4533 else
4534 echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4539 if test -z "$ac_cv_prog_STRIP"; then
4540 ac_ct_STRIP=$STRIP
4541 # Extract the first word of "strip", so it can be a program name with args.
4542 set dummy strip; ac_word=$2
4543 echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 if test -n "$ac_ct_STRIP"; then
4549 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_ac_ct_STRIP="strip"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4562 done
4563 done
4565 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4569 if test -n "$ac_ct_STRIP"; then
4570 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4571 echo "${ECHO_T}$ac_ct_STRIP" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 STRIP=$ac_ct_STRIP
4578 else
4579 STRIP="$ac_cv_prog_STRIP"
4582 test -z "$STRIP" && STRIP=:
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_prog_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 if test -n "$RANLIB"; then
4598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4611 done
4612 done
4616 RANLIB=$ac_cv_prog_RANLIB
4617 if test -n "$RANLIB"; then
4618 echo "$as_me:$LINENO: result: $RANLIB" >&5
4619 echo "${ECHO_T}$RANLIB" >&6
4620 else
4621 echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4626 if test -z "$ac_cv_prog_RANLIB"; then
4627 ac_ct_RANLIB=$RANLIB
4628 # Extract the first word of "ranlib", so it can be a program name with args.
4629 set dummy ranlib; ac_word=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$ac_ct_RANLIB"; then
4636 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_ac_ct_RANLIB="ranlib"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4652 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4655 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4656 if test -n "$ac_ct_RANLIB"; then
4657 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4658 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4659 else
4660 echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4664 RANLIB=$ac_ct_RANLIB
4665 else
4666 RANLIB="$ac_cv_prog_RANLIB"
4669 test -z "$RANLIB" && RANLIB=:
4676 # Determine commands to create old-style static archives.
4677 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4678 old_postinstall_cmds='chmod 644 $oldlib'
4679 old_postuninstall_cmds=
4681 if test -n "$RANLIB"; then
4682 case $host_os in
4683 openbsd*)
4684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4689 esac
4690 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4726 # If no C compiler was specified, use CC.
4727 LTCC=${LTCC-"$CC"}
4729 # If no C compiler flags were specified, use CFLAGS.
4730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4732 # Allow CC to be a program name with arguments.
4733 compiler=$CC
4736 # Check for command to grab the raw symbol name followed by C symbol from nm.
4737 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4738 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4739 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4743 # These are sane defaults that work on at least a few old systems.
4744 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4746 # Character class describing NM global symbol codes.
4747 symcode='[BCDEGRST]'
4749 # Regexp to match symbols that can be accessed directly from C.
4750 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4752 # Define system-specific variables.
4753 case $host_os in
4754 aix*)
4755 symcode='[BCDT]'
4757 cygwin* | mingw* | pw32*)
4758 symcode='[ABCDGISTW]'
4760 hpux*)
4761 if test "$host_cpu" = ia64; then
4762 symcode='[ABCDEGRST]'
4765 irix* | nonstopux*)
4766 symcode='[BCDEGRST]'
4768 osf*)
4769 symcode='[BCDEGQRST]'
4771 solaris*)
4772 symcode='[BDRT]'
4774 sco3.2v5*)
4775 symcode='[DT]'
4777 sysv4.2uw2*)
4778 symcode='[DT]'
4780 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4781 symcode='[ABDT]'
4783 sysv4)
4784 symcode='[DFNSTU]'
4786 esac
4788 # If we're using GNU nm, then use its standard symbol codes.
4789 case `$NM -V 2>&1` in
4790 *GNU* | *'with BFD'*)
4791 symcode='[ABCDGIRSTW]' ;;
4792 esac
4794 # Transform an extracted symbol line into a proper C declaration.
4795 # Some systems (esp. on ia64) link data and code symbols differently,
4796 # so use this general approach.
4797 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4799 # Transform an extracted symbol line into symbol name and symbol address
4800 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4802 # Handle CRLF in mingw tool chain
4803 opt_cr=
4804 case $build_os in
4805 mingw*)
4806 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4808 esac
4810 # Try without a prefix underscore, then with it.
4811 for ac_symprfx in "" "_"; do
4813 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4814 symxfrm="\\1 $ac_symprfx\\2 \\2"
4816 # Write the raw and C identifiers.
4817 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4818 # Fake it for dumpbin and say T for any non-static function
4819 # and D for any global variable.
4820 # Also find C++ and __fastcall symbols from MSVC++,
4821 # which start with @ or ?.
4822 lt_cv_sys_global_symbol_pipe="$AWK '"\
4823 " {last_section=section; section=\$ 3};"\
4824 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4825 " \$ 0!~/External *\|/{next};"\
4826 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4827 " {if(hide[section]) next};"\
4828 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4829 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4830 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4831 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4832 " ' prfx=^$ac_symprfx"
4833 else
4834 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4837 # Check to see that the pipe works correctly.
4838 pipe_works=no
4840 rm -f conftest*
4841 cat > conftest.$ac_ext <<_LT_EOF
4842 #ifdef __cplusplus
4843 extern "C" {
4844 #endif
4845 char nm_test_var;
4846 void nm_test_func(void);
4847 void nm_test_func(void){}
4848 #ifdef __cplusplus
4850 #endif
4851 int main(){nm_test_var='a';nm_test_func();return(0);}
4852 _LT_EOF
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; then
4859 # Now try to grab the symbols.
4860 nlist=conftest.nm
4861 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4862 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && test -s "$nlist"; then
4866 # Try sorting and uniquifying the output.
4867 if sort "$nlist" | uniq > "$nlist"T; then
4868 mv -f "$nlist"T "$nlist"
4869 else
4870 rm -f "$nlist"T
4873 # Make sure that we snagged all the symbols we need.
4874 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4875 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4876 cat <<_LT_EOF > conftest.$ac_ext
4877 #ifdef __cplusplus
4878 extern "C" {
4879 #endif
4881 _LT_EOF
4882 # Now generate the symbol file.
4883 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4885 cat <<_LT_EOF >> conftest.$ac_ext
4887 /* The mapping between symbol names and symbols. */
4888 const struct {
4889 const char *name;
4890 void *address;
4892 lt__PROGRAM__LTX_preloaded_symbols[] =
4894 { "@PROGRAM@", (void *) 0 },
4895 _LT_EOF
4896 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4897 cat <<\_LT_EOF >> conftest.$ac_ext
4898 {0, (void *) 0}
4901 /* This works around a problem in FreeBSD linker */
4902 #ifdef FREEBSD_WORKAROUND
4903 static const void *lt_preloaded_setup() {
4904 return lt__PROGRAM__LTX_preloaded_symbols;
4906 #endif
4908 #ifdef __cplusplus
4910 #endif
4911 _LT_EOF
4912 # Now try linking the two files.
4913 mv conftest.$ac_objext conftstm.$ac_objext
4914 lt_save_LIBS="$LIBS"
4915 lt_save_CFLAGS="$CFLAGS"
4916 LIBS="conftstm.$ac_objext"
4917 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4919 (eval $ac_link) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4923 pipe_works=yes
4925 LIBS="$lt_save_LIBS"
4926 CFLAGS="$lt_save_CFLAGS"
4927 else
4928 echo "cannot find nm_test_func in $nlist" >&5
4930 else
4931 echo "cannot find nm_test_var in $nlist" >&5
4933 else
4934 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4936 else
4937 echo "$progname: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4940 rm -f conftest* conftst*
4942 # Do not use the global_symbol_pipe unless it works.
4943 if test "$pipe_works" = yes; then
4944 break
4945 else
4946 lt_cv_sys_global_symbol_pipe=
4948 done
4952 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4953 lt_cv_sys_global_symbol_to_cdecl=
4955 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4956 echo "$as_me:$LINENO: result: failed" >&5
4957 echo "${ECHO_T}failed" >&6
4958 else
4959 echo "$as_me:$LINENO: result: ok" >&5
4960 echo "${ECHO_T}ok" >&6
4980 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4981 if test "${enable_libtool_lock+set}" = set; then
4982 enableval="$enable_libtool_lock"
4985 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4987 # Some flags need to be propagated to the compiler or linker for good
4988 # libtool support.
4989 case $host in
4990 ia64-*-hpux*)
4991 # Find out which ABI we are using.
4992 echo 'int i;' > conftest.$ac_ext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; then
4998 case `/usr/bin/file conftest.$ac_objext` in
4999 *ELF-32*)
5000 HPUX_IA64_MODE="32"
5002 *ELF-64*)
5003 HPUX_IA64_MODE="64"
5005 esac
5007 rm -rf conftest*
5009 *-*-irix6*)
5010 # Find out which ABI we are using.
5011 echo '#line 5011 "configure"' > conftest.$ac_ext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; then
5017 if test "$lt_cv_prog_gnu_ld" = yes; then
5018 case `/usr/bin/file conftest.$ac_objext` in
5019 *32-bit*)
5020 LD="${LD-ld} -melf32bsmip"
5022 *N32*)
5023 LD="${LD-ld} -melf32bmipn32"
5025 *64-bit*)
5026 LD="${LD-ld} -melf64bmip"
5028 esac
5029 else
5030 case `/usr/bin/file conftest.$ac_objext` in
5031 *32-bit*)
5032 LD="${LD-ld} -32"
5034 *N32*)
5035 LD="${LD-ld} -n32"
5037 *64-bit*)
5038 LD="${LD-ld} -64"
5040 esac
5043 rm -rf conftest*
5046 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5047 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5048 # Find out which ABI we are using.
5049 echo 'int i;' > conftest.$ac_ext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; then
5055 case `/usr/bin/file conftest.o` in
5056 *32-bit*)
5057 case $host in
5058 x86_64-*kfreebsd*-gnu)
5059 LD="${LD-ld} -m elf_i386_fbsd"
5061 x86_64-*linux*)
5062 LD="${LD-ld} -m elf_i386"
5064 ppc64-*linux*|powerpc64-*linux*)
5065 LD="${LD-ld} -m elf32ppclinux"
5067 s390x-*linux*)
5068 LD="${LD-ld} -m elf_s390"
5070 sparc64-*linux*)
5071 LD="${LD-ld} -m elf32_sparc"
5073 esac
5075 *64-bit*)
5076 case $host in
5077 x86_64-*kfreebsd*-gnu)
5078 LD="${LD-ld} -m elf_x86_64_fbsd"
5080 x86_64-*linux*)
5081 LD="${LD-ld} -m elf_x86_64"
5083 ppc*-*linux*|powerpc*-*linux*)
5084 LD="${LD-ld} -m elf64ppc"
5086 s390*-*linux*|s390*-*tpf*)
5087 LD="${LD-ld} -m elf64_s390"
5089 sparc*-*linux*)
5090 LD="${LD-ld} -m elf64_sparc"
5092 esac
5094 esac
5096 rm -rf conftest*
5099 *-*-sco3.2v5*)
5100 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5101 SAVE_CFLAGS="$CFLAGS"
5102 CFLAGS="$CFLAGS -belf"
5103 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5104 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5105 if test "${lt_cv_cc_needs_belf+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 ac_ext=c
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114 if test x$gcc_no_link = xyes; then
5115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5117 { (exit 1); exit 1; }; }
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5127 main ()
5131 return 0;
5133 _ACEOF
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>conftest.er1
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } &&
5143 { ac_try='test -z "$ac_c_werror_flag"
5144 || test ! -s conftest.err'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; } &&
5150 { ac_try='test -s conftest$ac_exeext'
5151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 (eval $ac_try) 2>&5
5153 ac_status=$?
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; }; then
5156 lt_cv_cc_needs_belf=yes
5157 else
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 lt_cv_cc_needs_belf=no
5163 rm -f conftest.err conftest.$ac_objext \
5164 conftest$ac_exeext conftest.$ac_ext
5165 ac_ext=c
5166 ac_cpp='$CPP $CPPFLAGS'
5167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5173 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5174 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5175 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5176 CFLAGS="$SAVE_CFLAGS"
5179 sparc*-*solaris*)
5180 # Find out which ABI we are using.
5181 echo 'int i;' > conftest.$ac_ext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; then
5187 case `/usr/bin/file conftest.o` in
5188 *64-bit*)
5189 case $lt_cv_prog_gnu_ld in
5190 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5191 *) LD="${LD-ld} -64" ;;
5192 esac
5194 esac
5196 rm -rf conftest*
5198 esac
5200 need_locks="$enable_libtool_lock"
5202 ac_ext=c
5203 ac_cpp='$CPP $CPPFLAGS'
5204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5207 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5209 # On Suns, sometimes $CPP names a directory.
5210 if test -n "$CPP" && test -d "$CPP"; then
5211 CPP=
5213 if test -z "$CPP"; then
5214 if test "${ac_cv_prog_CPP+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 # Double quotes because CPP needs to be expanded
5218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5220 ac_preproc_ok=false
5221 for ac_c_preproc_warn_flag in '' yes
5223 # Use a header file that comes with gcc, so configuring glibc
5224 # with a fresh cross-compiler works.
5225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226 # <limits.h> exists even on freestanding compilers.
5227 # On the NeXT, cc -E runs the code through the compiler's parser,
5228 # not just through cpp. "Syntax error" is here to catch this case.
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 #ifdef __STDC__
5236 # include <limits.h>
5237 #else
5238 # include <assert.h>
5239 #endif
5240 Syntax error
5241 _ACEOF
5242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5244 ac_status=$?
5245 grep -v '^ *+' conftest.er1 >conftest.err
5246 rm -f conftest.er1
5247 cat conftest.err >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); } >/dev/null; then
5250 if test -s conftest.err; then
5251 ac_cpp_err=$ac_c_preproc_warn_flag
5252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5253 else
5254 ac_cpp_err=
5256 else
5257 ac_cpp_err=yes
5259 if test -z "$ac_cpp_err"; then
5261 else
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5265 # Broken: fails on valid input.
5266 continue
5268 rm -f conftest.err conftest.$ac_ext
5270 # OK, works on sane cases. Now check whether non-existent headers
5271 # can be detected and how.
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include <ac_nonexistent.h>
5279 _ACEOF
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } >/dev/null; then
5288 if test -s conftest.err; then
5289 ac_cpp_err=$ac_c_preproc_warn_flag
5290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5291 else
5292 ac_cpp_err=
5294 else
5295 ac_cpp_err=yes
5297 if test -z "$ac_cpp_err"; then
5298 # Broken: success on invalid input.
5299 continue
5300 else
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 # Passes both tests.
5305 ac_preproc_ok=:
5306 break
5308 rm -f conftest.err conftest.$ac_ext
5310 done
5311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312 rm -f conftest.err conftest.$ac_ext
5313 if $ac_preproc_ok; then
5314 break
5317 done
5318 ac_cv_prog_CPP=$CPP
5321 CPP=$ac_cv_prog_CPP
5322 else
5323 ac_cv_prog_CPP=$CPP
5325 echo "$as_me:$LINENO: result: $CPP" >&5
5326 echo "${ECHO_T}$CPP" >&6
5327 ac_preproc_ok=false
5328 for ac_c_preproc_warn_flag in '' yes
5330 # Use a header file that comes with gcc, so configuring glibc
5331 # with a fresh cross-compiler works.
5332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333 # <limits.h> exists even on freestanding compilers.
5334 # On the NeXT, cc -E runs the code through the compiler's parser,
5335 # not just through cpp. "Syntax error" is here to catch this case.
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 #ifdef __STDC__
5343 # include <limits.h>
5344 #else
5345 # include <assert.h>
5346 #endif
5347 Syntax error
5348 _ACEOF
5349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } >/dev/null; then
5357 if test -s conftest.err; then
5358 ac_cpp_err=$ac_c_preproc_warn_flag
5359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5360 else
5361 ac_cpp_err=
5363 else
5364 ac_cpp_err=yes
5366 if test -z "$ac_cpp_err"; then
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 # Broken: fails on valid input.
5373 continue
5375 rm -f conftest.err conftest.$ac_ext
5377 # OK, works on sane cases. Now check whether non-existent headers
5378 # can be detected and how.
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 #include <ac_nonexistent.h>
5386 _ACEOF
5387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } >/dev/null; then
5395 if test -s conftest.err; then
5396 ac_cpp_err=$ac_c_preproc_warn_flag
5397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5398 else
5399 ac_cpp_err=
5401 else
5402 ac_cpp_err=yes
5404 if test -z "$ac_cpp_err"; then
5405 # Broken: success on invalid input.
5406 continue
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 # Passes both tests.
5412 ac_preproc_ok=:
5413 break
5415 rm -f conftest.err conftest.$ac_ext
5417 done
5418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5419 rm -f conftest.err conftest.$ac_ext
5420 if $ac_preproc_ok; then
5422 else
5423 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5424 See \`config.log' for more details." >&5
5425 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5426 See \`config.log' for more details." >&2;}
5427 { (exit 1); exit 1; }; }
5430 ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5437 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5438 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5439 if test "${ac_cv_header_stdc+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442 cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h. */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5448 #include <stdlib.h>
5449 #include <stdarg.h>
5450 #include <string.h>
5451 #include <float.h>
5454 main ()
5458 return 0;
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -z "$ac_c_werror_flag"
5471 || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 ac_cv_header_stdc=yes
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 ac_cv_header_stdc=no
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492 if test $ac_cv_header_stdc = yes; then
5493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <string.h>
5502 _ACEOF
5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504 $EGREP "memchr" >/dev/null 2>&1; then
5506 else
5507 ac_cv_header_stdc=no
5509 rm -f conftest*
5513 if test $ac_cv_header_stdc = yes; then
5514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #include <stdlib.h>
5523 _ACEOF
5524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525 $EGREP "free" >/dev/null 2>&1; then
5527 else
5528 ac_cv_header_stdc=no
5530 rm -f conftest*
5534 if test $ac_cv_header_stdc = yes; then
5535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5536 if test "$cross_compiling" = yes; then
5538 else
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #include <ctype.h>
5546 #if ((' ' & 0x0FF) == 0x020)
5547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5549 #else
5550 # define ISLOWER(c) \
5551 (('a' <= (c) && (c) <= 'i') \
5552 || ('j' <= (c) && (c) <= 'r') \
5553 || ('s' <= (c) && (c) <= 'z'))
5554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5555 #endif
5557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5559 main ()
5561 int i;
5562 for (i = 0; i < 256; i++)
5563 if (XOR (islower (i), ISLOWER (i))
5564 || toupper (i) != TOUPPER (i))
5565 exit(2);
5566 exit (0);
5568 _ACEOF
5569 rm -f conftest$ac_exeext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571 (eval $ac_link) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 (eval $ac_try) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5581 else
5582 echo "$as_me: program exited with status $ac_status" >&5
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 ( exit $ac_status )
5587 ac_cv_header_stdc=no
5589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5593 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5594 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5595 if test $ac_cv_header_stdc = yes; then
5597 cat >>confdefs.h <<\_ACEOF
5598 #define STDC_HEADERS 1
5599 _ACEOF
5603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5613 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5614 inttypes.h stdint.h unistd.h
5616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5617 echo "$as_me:$LINENO: checking for $ac_header" >&5
5618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 $ac_includes_default
5630 #include <$ac_header>
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_c_werror_flag"
5642 || test ! -s conftest.err'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; } &&
5648 { ac_try='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 eval "$as_ac_Header=yes"
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 eval "$as_ac_Header=no"
5661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5666 cat >>confdefs.h <<_ACEOF
5667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5668 _ACEOF
5672 done
5676 for ac_header in dlfcn.h
5678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5679 echo "$as_me:$LINENO: checking for $ac_header" >&5
5680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 $ac_includes_default
5692 #include <$ac_header>
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -z "$ac_c_werror_flag"
5704 || test ! -s conftest.err'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 eval "$as_ac_Header=yes"
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 eval "$as_ac_Header=no"
5723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5728 cat >>confdefs.h <<_ACEOF
5729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5730 _ACEOF
5734 done
5738 # This can be used to rebuild libtool when needed
5739 LIBTOOL_DEPS="$ltmain"
5741 # Always use our own libtool.
5742 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5768 test -z "$LN_S" && LN_S="ln -s"
5783 if test -n "${ZSH_VERSION+set}" ; then
5784 setopt NO_GLOB_SUBST
5787 echo "$as_me:$LINENO: checking for objdir" >&5
5788 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5789 if test "${lt_cv_objdir+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 rm -f .libs 2>/dev/null
5793 mkdir .libs 2>/dev/null
5794 if test -d .libs; then
5795 lt_cv_objdir=.libs
5796 else
5797 # MS-DOS does not allow filenames that begin with a dot.
5798 lt_cv_objdir=_libs
5800 rmdir .libs 2>/dev/null
5802 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5803 echo "${ECHO_T}$lt_cv_objdir" >&6
5804 objdir=$lt_cv_objdir
5810 cat >>confdefs.h <<_ACEOF
5811 #define LT_OBJDIR "$lt_cv_objdir/"
5812 _ACEOF
5830 case $host_os in
5831 aix3*)
5832 # AIX sometimes has problems with the GCC collect2 program. For some
5833 # reason, if we set the COLLECT_NAMES environment variable, the problems
5834 # vanish in a puff of smoke.
5835 if test "X${COLLECT_NAMES+set}" != Xset; then
5836 COLLECT_NAMES=
5837 export COLLECT_NAMES
5840 esac
5842 # Sed substitution that helps us do robust quoting. It backslashifies
5843 # metacharacters that are still active within double-quoted strings.
5844 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5846 # Same as above, but do not quote variable references.
5847 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5849 # Sed substitution to delay expansion of an escaped shell variable in a
5850 # double_quote_subst'ed string.
5851 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5853 # Sed substitution to delay expansion of an escaped single quote.
5854 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5856 # Sed substitution to avoid accidental globbing in evaled expressions
5857 no_glob_subst='s/\*/\\\*/g'
5859 # Global variables:
5860 ofile=libtool
5861 can_build_shared=yes
5863 # All known linkers require a `.a' archive for static linking (except MSVC,
5864 # which needs '.lib').
5865 libext=a
5867 with_gnu_ld="$lt_cv_prog_gnu_ld"
5869 old_CC="$CC"
5870 old_CFLAGS="$CFLAGS"
5872 # Set sane defaults for various variables
5873 test -z "$CC" && CC=cc
5874 test -z "$LTCC" && LTCC=$CC
5875 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5876 test -z "$LD" && LD=ld
5877 test -z "$ac_objext" && ac_objext=o
5879 for cc_temp in $compiler""; do
5880 case $cc_temp in
5881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5883 \-*) ;;
5884 *) break;;
5885 esac
5886 done
5887 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5890 # Only perform the check for file, if the check method requires it
5891 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5892 case $deplibs_check_method in
5893 file_magic*)
5894 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5895 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5896 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5897 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 case $MAGIC_CMD in
5901 [\\/*] | ?:[\\/]*)
5902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5905 lt_save_MAGIC_CMD="$MAGIC_CMD"
5906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5908 for ac_dir in $ac_dummy; do
5909 IFS="$lt_save_ifs"
5910 test -z "$ac_dir" && ac_dir=.
5911 if test -f $ac_dir/${ac_tool_prefix}file; then
5912 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5913 if test -n "$file_magic_test_file"; then
5914 case $deplibs_check_method in
5915 "file_magic "*)
5916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5919 $EGREP "$file_magic_regex" > /dev/null; then
5921 else
5922 cat <<_LT_EOF 1>&2
5924 *** Warning: the command libtool uses to detect shared libraries,
5925 *** $file_magic_cmd, produces output that libtool cannot recognize.
5926 *** The result is that libtool may fail to recognize shared libraries
5927 *** as such. This will affect the creation of libtool libraries that
5928 *** depend on shared libraries, but programs linked with such libtool
5929 *** libraries will work regardless of this problem. Nevertheless, you
5930 *** may want to report the problem to your system manager and/or to
5931 *** bug-libtool@gnu.org
5933 _LT_EOF
5934 fi ;;
5935 esac
5937 break
5939 done
5940 IFS="$lt_save_ifs"
5941 MAGIC_CMD="$lt_save_MAGIC_CMD"
5943 esac
5946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5947 if test -n "$MAGIC_CMD"; then
5948 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5949 echo "${ECHO_T}$MAGIC_CMD" >&6
5950 else
5951 echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6
5959 if test -z "$lt_cv_path_MAGIC_CMD"; then
5960 if test -n "$ac_tool_prefix"; then
5961 echo "$as_me:$LINENO: checking for file" >&5
5962 echo $ECHO_N "checking for file... $ECHO_C" >&6
5963 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 case $MAGIC_CMD in
5967 [\\/*] | ?:[\\/]*)
5968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5971 lt_save_MAGIC_CMD="$MAGIC_CMD"
5972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5974 for ac_dir in $ac_dummy; do
5975 IFS="$lt_save_ifs"
5976 test -z "$ac_dir" && ac_dir=.
5977 if test -f $ac_dir/file; then
5978 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5979 if test -n "$file_magic_test_file"; then
5980 case $deplibs_check_method in
5981 "file_magic "*)
5982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5985 $EGREP "$file_magic_regex" > /dev/null; then
5987 else
5988 cat <<_LT_EOF 1>&2
5990 *** Warning: the command libtool uses to detect shared libraries,
5991 *** $file_magic_cmd, produces output that libtool cannot recognize.
5992 *** The result is that libtool may fail to recognize shared libraries
5993 *** as such. This will affect the creation of libtool libraries that
5994 *** depend on shared libraries, but programs linked with such libtool
5995 *** libraries will work regardless of this problem. Nevertheless, you
5996 *** may want to report the problem to your system manager and/or to
5997 *** bug-libtool@gnu.org
5999 _LT_EOF
6000 fi ;;
6001 esac
6003 break
6005 done
6006 IFS="$lt_save_ifs"
6007 MAGIC_CMD="$lt_save_MAGIC_CMD"
6009 esac
6012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6013 if test -n "$MAGIC_CMD"; then
6014 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6015 echo "${ECHO_T}$MAGIC_CMD" >&6
6016 else
6017 echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6
6022 else
6023 MAGIC_CMD=:
6029 esac
6031 # Use C for the default configuration in the libtool script
6033 lt_save_CC="$CC"
6034 ac_ext=c
6035 ac_cpp='$CPP $CPPFLAGS'
6036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6041 # Source file extension for C test sources.
6042 ac_ext=c
6044 # Object file extension for compiled C test sources.
6045 objext=o
6046 objext=$objext
6048 # Code to be used in simple compile tests
6049 lt_simple_compile_test_code="int some_variable = 0;"
6051 # Code to be used in simple link tests
6052 lt_simple_link_test_code='int main(){return(0);}'
6060 # If no C compiler was specified, use CC.
6061 LTCC=${LTCC-"$CC"}
6063 # If no C compiler flags were specified, use CFLAGS.
6064 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6066 # Allow CC to be a program name with arguments.
6067 compiler=$CC
6069 # Save the default compiler, since it gets overwritten when the other
6070 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6071 compiler_DEFAULT=$CC
6073 # save warnings/boilerplate of simple test code
6074 ac_outfile=conftest.$ac_objext
6075 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6076 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6077 _lt_compiler_boilerplate=`cat conftest.err`
6078 $RM conftest*
6080 ac_outfile=conftest.$ac_objext
6081 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6082 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6083 _lt_linker_boilerplate=`cat conftest.err`
6084 $RM conftest*
6087 ## CAVEAT EMPTOR:
6088 ## There is no encapsulation within the following macros, do not change
6089 ## the running order or otherwise move them around unless you know exactly
6090 ## what you are doing...
6091 if test -n "$compiler"; then
6093 lt_prog_compiler_no_builtin_flag=
6095 if test "$GCC" = yes; then
6096 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6098 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6099 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6100 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103 lt_cv_prog_compiler_rtti_exceptions=no
6104 ac_outfile=conftest.$ac_objext
6105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6106 lt_compiler_flag="-fno-rtti -fno-exceptions"
6107 # Insert the option either (1) after the last *FLAGS variable, or
6108 # (2) before a word containing "conftest.", or (3) at the end.
6109 # Note that $ac_compile itself does not contain backslashes and begins
6110 # with a dollar sign (not a hyphen), so the echo should work correctly.
6111 # The option is referenced via a variable to avoid confusing sed.
6112 lt_compile=`echo "$ac_compile" | $SED \
6113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6115 -e 's:$: $lt_compiler_flag:'`
6116 (eval echo "\"\$as_me:6116: $lt_compile\"" >&5)
6117 (eval "$lt_compile" 2>conftest.err)
6118 ac_status=$?
6119 cat conftest.err >&5
6120 echo "$as_me:6120: \$? = $ac_status" >&5
6121 if (exit $ac_status) && test -s "$ac_outfile"; then
6122 # The compiler can only warn and ignore the option if not recognized
6123 # So say no if there are warnings other than the usual output.
6124 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6127 lt_cv_prog_compiler_rtti_exceptions=yes
6130 $RM conftest*
6133 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6134 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6136 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6137 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6138 else
6149 lt_prog_compiler_wl=
6150 lt_prog_compiler_pic=
6151 lt_prog_compiler_static=
6153 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6154 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6156 if test "$GCC" = yes; then
6157 lt_prog_compiler_wl='-Wl,'
6158 lt_prog_compiler_static='-static'
6160 case $host_os in
6161 aix*)
6162 # All AIX code is PIC.
6163 if test "$host_cpu" = ia64; then
6164 # AIX 5 now supports IA64 processor
6165 lt_prog_compiler_static='-Bstatic'
6169 amigaos*)
6170 if test "$host_cpu" = m68k; then
6171 # FIXME: we need at least 68020 code to build shared libraries, but
6172 # adding the `-m68020' flag to GCC prevents building anything better,
6173 # like `-m68040'.
6174 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6179 # PIC is the default for these OSes.
6182 mingw* | cygwin* | pw32* | os2*)
6183 # This hack is so that the source file can tell whether it is being
6184 # built for inclusion in a dll (and should export symbols for example).
6185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6186 # (--disable-auto-import) libraries
6187 lt_prog_compiler_pic='-DDLL_EXPORT'
6190 darwin* | rhapsody*)
6191 # PIC is the default on this platform
6192 # Common symbols not allowed in MH_DYLIB files
6193 lt_prog_compiler_pic='-fno-common'
6196 hpux*)
6197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6198 # not for PA HP-UX.
6199 case $host_cpu in
6200 hppa*64*|ia64*)
6201 # +Z the default
6204 lt_prog_compiler_pic='-fPIC'
6206 esac
6209 interix[3-9]*)
6210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6211 # Instead, we relocate shared libraries at runtime.
6214 msdosdjgpp*)
6215 # Just because we use GCC doesn't mean we suddenly get shared libraries
6216 # on systems that don't support them.
6217 lt_prog_compiler_can_build_shared=no
6218 enable_shared=no
6221 *nto* | *qnx*)
6222 # QNX uses GNU C++, but need to define -shared option too, otherwise
6223 # it will coredump.
6224 lt_prog_compiler_pic='-fPIC -shared'
6227 sysv4*MP*)
6228 if test -d /usr/nec; then
6229 lt_prog_compiler_pic=-Kconform_pic
6234 lt_prog_compiler_pic='-fPIC'
6236 esac
6237 else
6238 # PORTME Check for flag to pass linker flags through the system compiler.
6239 case $host_os in
6240 aix*)
6241 lt_prog_compiler_wl='-Wl,'
6242 if test "$host_cpu" = ia64; then
6243 # AIX 5 now supports IA64 processor
6244 lt_prog_compiler_static='-Bstatic'
6245 else
6246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6249 darwin*)
6250 # PIC is the default on this platform
6251 # Common symbols not allowed in MH_DYLIB files
6252 case $cc_basename in
6253 xlc*)
6254 lt_prog_compiler_pic='-qnocommon'
6255 lt_prog_compiler_wl='-Wl,'
6257 esac
6260 mingw* | cygwin* | pw32* | os2*)
6261 # This hack is so that the source file can tell whether it is being
6262 # built for inclusion in a dll (and should export symbols for example).
6263 lt_prog_compiler_pic='-DDLL_EXPORT'
6266 hpux9* | hpux10* | hpux11*)
6267 lt_prog_compiler_wl='-Wl,'
6268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6269 # not for PA HP-UX.
6270 case $host_cpu in
6271 hppa*64*|ia64*)
6272 # +Z the default
6275 lt_prog_compiler_pic='+Z'
6277 esac
6278 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6279 lt_prog_compiler_static='${wl}-a ${wl}archive'
6282 irix5* | irix6* | nonstopux*)
6283 lt_prog_compiler_wl='-Wl,'
6284 # PIC (with -KPIC) is the default.
6285 lt_prog_compiler_static='-non_shared'
6288 linux* | k*bsd*-gnu)
6289 case $cc_basename in
6290 icc* | ecc*)
6291 lt_prog_compiler_wl='-Wl,'
6292 lt_prog_compiler_pic='-KPIC'
6293 lt_prog_compiler_static='-static'
6295 pgcc* | pgf77* | pgf90* | pgf95*)
6296 # Portland Group compilers (*not* the Pentium gcc compiler,
6297 # which looks to be a dead project)
6298 lt_prog_compiler_wl='-Wl,'
6299 lt_prog_compiler_pic='-fpic'
6300 lt_prog_compiler_static='-Bstatic'
6302 ccc*)
6303 lt_prog_compiler_wl='-Wl,'
6304 # All Alpha code is PIC.
6305 lt_prog_compiler_static='-non_shared'
6308 case `$CC -V 2>&1 | sed 5q` in
6309 *Sun\ C*)
6310 # Sun C 5.9
6311 lt_prog_compiler_pic='-KPIC'
6312 lt_prog_compiler_static='-Bstatic'
6313 lt_prog_compiler_wl='-Wl,'
6315 *Sun\ F*)
6316 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6317 lt_prog_compiler_pic='-KPIC'
6318 lt_prog_compiler_static='-Bstatic'
6319 lt_prog_compiler_wl=''
6321 esac
6323 esac
6326 newsos6)
6327 lt_prog_compiler_pic='-KPIC'
6328 lt_prog_compiler_static='-Bstatic'
6331 *nto* | *qnx*)
6332 # QNX uses GNU C++, but need to define -shared option too, otherwise
6333 # it will coredump.
6334 lt_prog_compiler_pic='-fPIC -shared'
6337 osf3* | osf4* | osf5*)
6338 lt_prog_compiler_wl='-Wl,'
6339 # All OSF/1 code is PIC.
6340 lt_prog_compiler_static='-non_shared'
6343 rdos*)
6344 lt_prog_compiler_static='-non_shared'
6347 solaris*)
6348 lt_prog_compiler_pic='-KPIC'
6349 lt_prog_compiler_static='-Bstatic'
6350 case $cc_basename in
6351 f77* | f90* | f95*)
6352 lt_prog_compiler_wl='-Qoption ld ';;
6354 lt_prog_compiler_wl='-Wl,';;
6355 esac
6358 sunos4*)
6359 lt_prog_compiler_wl='-Qoption ld '
6360 lt_prog_compiler_pic='-PIC'
6361 lt_prog_compiler_static='-Bstatic'
6364 sysv4 | sysv4.2uw2* | sysv4.3*)
6365 lt_prog_compiler_wl='-Wl,'
6366 lt_prog_compiler_pic='-KPIC'
6367 lt_prog_compiler_static='-Bstatic'
6370 sysv4*MP*)
6371 if test -d /usr/nec ;then
6372 lt_prog_compiler_pic='-Kconform_pic'
6373 lt_prog_compiler_static='-Bstatic'
6377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6378 lt_prog_compiler_wl='-Wl,'
6379 lt_prog_compiler_pic='-KPIC'
6380 lt_prog_compiler_static='-Bstatic'
6383 unicos*)
6384 lt_prog_compiler_wl='-Wl,'
6385 lt_prog_compiler_can_build_shared=no
6388 uts4*)
6389 lt_prog_compiler_pic='-pic'
6390 lt_prog_compiler_static='-Bstatic'
6394 lt_prog_compiler_can_build_shared=no
6396 esac
6399 case $host_os in
6400 # For platforms which do not support PIC, -DPIC is meaningless:
6401 *djgpp*)
6402 lt_prog_compiler_pic=
6405 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6407 esac
6408 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6409 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6417 # Check to make sure the PIC flag actually works.
6419 if test -n "$lt_prog_compiler_pic"; then
6420 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6421 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6422 if test "${lt_prog_compiler_pic_works+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 lt_prog_compiler_pic_works=no
6426 ac_outfile=conftest.$ac_objext
6427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6428 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6429 # Insert the option either (1) after the last *FLAGS variable, or
6430 # (2) before a word containing "conftest.", or (3) at the end.
6431 # Note that $ac_compile itself does not contain backslashes and begins
6432 # with a dollar sign (not a hyphen), so the echo should work correctly.
6433 # The option is referenced via a variable to avoid confusing sed.
6434 lt_compile=`echo "$ac_compile" | $SED \
6435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6437 -e 's:$: $lt_compiler_flag:'`
6438 (eval echo "\"\$as_me:6438: $lt_compile\"" >&5)
6439 (eval "$lt_compile" 2>conftest.err)
6440 ac_status=$?
6441 cat conftest.err >&5
6442 echo "$as_me:6442: \$? = $ac_status" >&5
6443 if (exit $ac_status) && test -s "$ac_outfile"; then
6444 # The compiler can only warn and ignore the option if not recognized
6445 # So say no if there are warnings other than the usual output.
6446 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6449 lt_prog_compiler_pic_works=yes
6452 $RM conftest*
6455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6456 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6458 if test x"$lt_prog_compiler_pic_works" = xyes; then
6459 case $lt_prog_compiler_pic in
6460 "" | " "*) ;;
6461 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6462 esac
6463 else
6464 lt_prog_compiler_pic=
6465 lt_prog_compiler_can_build_shared=no
6476 # Check to make sure the static flag actually works.
6478 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6479 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6480 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6481 if test "${lt_prog_compiler_static_works+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 lt_prog_compiler_static_works=no
6485 save_LDFLAGS="$LDFLAGS"
6486 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6487 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6489 # The linker can only warn and ignore the option if not recognized
6490 # So say no if there are warnings
6491 if test -s conftest.err; then
6492 # Append any errors to the config.log.
6493 cat conftest.err 1>&5
6494 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6496 if diff conftest.exp conftest.er2 >/dev/null; then
6497 lt_prog_compiler_static_works=yes
6499 else
6500 lt_prog_compiler_static_works=yes
6503 $RM conftest*
6504 LDFLAGS="$save_LDFLAGS"
6507 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6508 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6510 if test x"$lt_prog_compiler_static_works" = xyes; then
6512 else
6513 lt_prog_compiler_static=
6522 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6523 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 lt_cv_prog_compiler_c_o=no
6528 $RM -r conftest 2>/dev/null
6529 mkdir conftest
6530 cd conftest
6531 mkdir out
6532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6534 lt_compiler_flag="-o out/conftest2.$ac_objext"
6535 # Insert the option either (1) after the last *FLAGS variable, or
6536 # (2) before a word containing "conftest.", or (3) at the end.
6537 # Note that $ac_compile itself does not contain backslashes and begins
6538 # with a dollar sign (not a hyphen), so the echo should work correctly.
6539 lt_compile=`echo "$ac_compile" | $SED \
6540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542 -e 's:$: $lt_compiler_flag:'`
6543 (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544 (eval "$lt_compile" 2>out/conftest.err)
6545 ac_status=$?
6546 cat out/conftest.err >&5
6547 echo "$as_me:6547: \$? = $ac_status" >&5
6548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6549 then
6550 # The compiler can only warn and ignore the option if not recognized
6551 # So say no if there are warnings
6552 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6555 lt_cv_prog_compiler_c_o=yes
6558 chmod u+w . 2>&5
6559 $RM conftest*
6560 # SGI C++ compiler will create directory out/ii_files/ for
6561 # template instantiation
6562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6563 $RM out/* && rmdir out
6564 cd ..
6565 $RM -r conftest
6566 $RM conftest*
6569 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6570 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6577 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6578 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6579 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 lt_cv_prog_compiler_c_o=no
6583 $RM -r conftest 2>/dev/null
6584 mkdir conftest
6585 cd conftest
6586 mkdir out
6587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6589 lt_compiler_flag="-o out/conftest2.$ac_objext"
6590 # Insert the option either (1) after the last *FLAGS variable, or
6591 # (2) before a word containing "conftest.", or (3) at the end.
6592 # Note that $ac_compile itself does not contain backslashes and begins
6593 # with a dollar sign (not a hyphen), so the echo should work correctly.
6594 lt_compile=`echo "$ac_compile" | $SED \
6595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6597 -e 's:$: $lt_compiler_flag:'`
6598 (eval echo "\"\$as_me:6598: $lt_compile\"" >&5)
6599 (eval "$lt_compile" 2>out/conftest.err)
6600 ac_status=$?
6601 cat out/conftest.err >&5
6602 echo "$as_me:6602: \$? = $ac_status" >&5
6603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6604 then
6605 # The compiler can only warn and ignore the option if not recognized
6606 # So say no if there are warnings
6607 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6610 lt_cv_prog_compiler_c_o=yes
6613 chmod u+w . 2>&5
6614 $RM conftest*
6615 # SGI C++ compiler will create directory out/ii_files/ for
6616 # template instantiation
6617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6618 $RM out/* && rmdir out
6619 cd ..
6620 $RM -r conftest
6621 $RM conftest*
6624 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6625 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6630 hard_links="nottested"
6631 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6632 # do not overwrite the value of need_locks provided by the user
6633 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6634 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6635 hard_links=yes
6636 $RM conftest*
6637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6638 touch conftest.a
6639 ln conftest.a conftest.b 2>&5 || hard_links=no
6640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6641 echo "$as_me:$LINENO: result: $hard_links" >&5
6642 echo "${ECHO_T}$hard_links" >&6
6643 if test "$hard_links" = no; then
6644 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6645 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6646 need_locks=warn
6648 else
6649 need_locks=no
6657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6660 runpath_var=
6661 allow_undefined_flag=
6662 always_export_symbols=no
6663 archive_cmds=
6664 archive_expsym_cmds=
6665 compiler_needs_object=no
6666 enable_shared_with_static_runtimes=no
6667 export_dynamic_flag_spec=
6668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6669 hardcode_automatic=no
6670 hardcode_direct=no
6671 hardcode_direct_absolute=no
6672 hardcode_libdir_flag_spec=
6673 hardcode_libdir_flag_spec_ld=
6674 hardcode_libdir_separator=
6675 hardcode_minus_L=no
6676 hardcode_shlibpath_var=unsupported
6677 inherit_rpath=no
6678 link_all_deplibs=unknown
6679 module_cmds=
6680 module_expsym_cmds=
6681 old_archive_from_new_cmds=
6682 old_archive_from_expsyms_cmds=
6683 thread_safe_flag_spec=
6684 whole_archive_flag_spec=
6685 # include_expsyms should be a list of space-separated symbols to be *always*
6686 # included in the symbol list
6687 include_expsyms=
6688 # exclude_expsyms can be an extended regexp of symbols to exclude
6689 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6690 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6691 # as well as any symbol that contains `d'.
6692 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6693 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6694 # platforms (ab)use it in PIC code, but their linkers get confused if
6695 # the symbol is explicitly referenced. Since portable code cannot
6696 # rely on this symbol name, it's probably fine to never include it in
6697 # preloaded symbol tables.
6698 extract_expsyms_cmds=
6700 case $host_os in
6701 cygwin* | mingw* | pw32*)
6702 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6703 # When not using gcc, we currently assume that we are using
6704 # Microsoft Visual C++.
6705 if test "$GCC" != yes; then
6706 with_gnu_ld=no
6709 interix*)
6710 # we just hope/assume this is gcc and not c89 (= MSVC++)
6711 with_gnu_ld=yes
6713 openbsd*)
6714 with_gnu_ld=no
6716 esac
6718 ld_shlibs=yes
6719 if test "$with_gnu_ld" = yes; then
6720 # If archive_cmds runs LD, not CC, wlarc should be empty
6721 wlarc='${wl}'
6723 # Set some defaults for GNU ld with shared library support. These
6724 # are reset later if shared libraries are not supported. Putting them
6725 # here allows them to be overridden if necessary.
6726 runpath_var=LD_RUN_PATH
6727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6728 export_dynamic_flag_spec='${wl}--export-dynamic'
6729 # ancient GNU ld didn't support --whole-archive et. al.
6730 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6731 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6732 else
6733 whole_archive_flag_spec=
6735 supports_anon_versioning=no
6736 case `$LD -v 2>&1` in
6737 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6738 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6739 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6740 *\ 2.11.*) ;; # other 2.11 versions
6741 *) supports_anon_versioning=yes ;;
6742 esac
6744 # See if GNU ld supports shared libraries.
6745 case $host_os in
6746 aix[3-9]*)
6747 # On AIX/PPC, the GNU linker is very broken
6748 if test "$host_cpu" != ia64; then
6749 ld_shlibs=no
6750 cat <<_LT_EOF 1>&2
6752 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6753 *** to be unable to reliably create shared libraries on AIX.
6754 *** Therefore, libtool is disabling shared libraries support. If you
6755 *** really care for shared libraries, you may want to modify your PATH
6756 *** so that a non-GNU linker is found, and then restart.
6758 _LT_EOF
6762 amigaos*)
6763 if test "$host_cpu" = m68k; then
6764 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)'
6765 hardcode_libdir_flag_spec='-L$libdir'
6766 hardcode_minus_L=yes
6769 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6770 # that the semantics of dynamic libraries on AmigaOS, at least up
6771 # to version 4, is to share data among multiple programs linked
6772 # with the same dynamic library. Since this doesn't match the
6773 # behavior of shared libraries on other platforms, we can't use
6774 # them.
6775 ld_shlibs=no
6778 beos*)
6779 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6780 allow_undefined_flag=unsupported
6781 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6782 # support --undefined. This deserves some investigation. FIXME
6783 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6784 else
6785 ld_shlibs=no
6789 cygwin* | mingw* | pw32*)
6790 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6791 # as there is no search path for DLLs.
6792 hardcode_libdir_flag_spec='-L$libdir'
6793 allow_undefined_flag=unsupported
6794 always_export_symbols=no
6795 enable_shared_with_static_runtimes=yes
6796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6798 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6800 # If the export-symbols file already is a .def file (1st line
6801 # is EXPORTS), use it as is; otherwise, prepend...
6802 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6803 cp $export_symbols $output_objdir/$soname.def;
6804 else
6805 echo EXPORTS > $output_objdir/$soname.def;
6806 cat $export_symbols >> $output_objdir/$soname.def;
6808 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6809 else
6810 ld_shlibs=no
6814 interix[3-9]*)
6815 hardcode_direct=no
6816 hardcode_shlibpath_var=no
6817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6818 export_dynamic_flag_spec='${wl}-E'
6819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6820 # Instead, shared libraries are loaded at an image base (0x10000000 by
6821 # default) and relocated if they conflict, which is a slow very memory
6822 # consuming and fragmenting process. To avoid this, we pick a random,
6823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6826 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'
6829 gnu* | linux* | tpf* | k*bsd*-gnu)
6830 tmp_diet=no
6831 if test "$host_os" = linux-dietlibc; then
6832 case $cc_basename in
6833 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6834 esac
6836 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6837 && test "$tmp_diet" = no
6838 then
6839 tmp_addflag=
6840 case $cc_basename,$host_cpu in
6841 pgcc*) # Portland Group C compiler
6842 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'
6843 tmp_addflag=' $pic_flag'
6845 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6846 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'
6847 tmp_addflag=' $pic_flag -Mnomain' ;;
6848 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6849 tmp_addflag=' -i_dynamic' ;;
6850 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6851 tmp_addflag=' -i_dynamic -nofor_main' ;;
6852 ifc* | ifort*) # Intel Fortran compiler
6853 tmp_addflag=' -nofor_main' ;;
6854 esac
6855 case `$CC -V 2>&1 | sed 5q` in
6856 *Sun\ C*) # Sun C 5.9
6857 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'
6858 compiler_needs_object=yes
6859 tmp_sharedflag='-G' ;;
6860 *Sun\ F*) # Sun Fortran 8.3
6861 tmp_sharedflag='-G' ;;
6863 tmp_sharedflag='-shared' ;;
6864 esac
6865 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6867 if test "x$supports_anon_versioning" = xyes; then
6868 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6870 echo "local: *; };" >> $output_objdir/$libname.ver~
6871 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6873 else
6874 ld_shlibs=no
6878 netbsd*)
6879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6880 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6881 wlarc=
6882 else
6883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6888 solaris*)
6889 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6890 ld_shlibs=no
6891 cat <<_LT_EOF 1>&2
6893 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6894 *** create shared libraries on Solaris systems. Therefore, libtool
6895 *** is disabling shared libraries support. We urge you to upgrade GNU
6896 *** binutils to release 2.9.1 or newer. Another option is to modify
6897 *** your PATH or compiler configuration so that the native linker is
6898 *** used, and then restart.
6900 _LT_EOF
6901 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6903 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6904 else
6905 ld_shlibs=no
6909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6910 case `$LD -v 2>&1` in
6911 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6912 ld_shlibs=no
6913 cat <<_LT_EOF 1>&2
6915 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6916 *** reliably create shared libraries on SCO systems. Therefore, libtool
6917 *** is disabling shared libraries support. We urge you to upgrade GNU
6918 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6919 *** your PATH or compiler configuration so that the native linker is
6920 *** used, and then restart.
6922 _LT_EOF
6925 # For security reasons, it is highly recommended that you always
6926 # use absolute paths for naming shared libraries, and exclude the
6927 # DT_RUNPATH tag from executables and libraries. But doing so
6928 # requires that you compile everything twice, which is a pain.
6929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6933 else
6934 ld_shlibs=no
6937 esac
6940 sunos4*)
6941 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6942 wlarc=
6943 hardcode_direct=yes
6944 hardcode_shlibpath_var=no
6948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6950 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6951 else
6952 ld_shlibs=no
6955 esac
6957 if test "$ld_shlibs" = no; then
6958 runpath_var=
6959 hardcode_libdir_flag_spec=
6960 export_dynamic_flag_spec=
6961 whole_archive_flag_spec=
6963 else
6964 # PORTME fill in a description of your system's linker (not GNU ld)
6965 case $host_os in
6966 aix3*)
6967 allow_undefined_flag=unsupported
6968 always_export_symbols=yes
6969 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'
6970 # Note: this linker hardcodes the directories in LIBPATH if there
6971 # are no directories specified by -L.
6972 hardcode_minus_L=yes
6973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6974 # Neither direct hardcoding nor static linking is supported with a
6975 # broken collect2.
6976 hardcode_direct=unsupported
6980 aix[4-9]*)
6981 if test "$host_cpu" = ia64; then
6982 # On IA64, the linker does run time linking by default, so we don't
6983 # have to do anything special.
6984 aix_use_runtimelinking=no
6985 exp_sym_flag='-Bexport'
6986 no_entry_flag=""
6987 else
6988 # If we're using GNU nm, then we don't want the "-C" option.
6989 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6990 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6991 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'
6992 else
6993 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'
6995 aix_use_runtimelinking=no
6997 # Test if we are trying to use run time linking or normal
6998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6999 # need to do runtime linking.
7000 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7001 for ld_flag in $LDFLAGS; do
7002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7003 aix_use_runtimelinking=yes
7004 break
7006 done
7008 esac
7010 exp_sym_flag='-bexport'
7011 no_entry_flag='-bnoentry'
7014 # When large executables or shared objects are built, AIX ld can
7015 # have problems creating the table of contents. If linking a library
7016 # or program results in "error TOC overflow" add -mminimal-toc to
7017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7020 archive_cmds=''
7021 hardcode_direct=yes
7022 hardcode_direct_absolute=yes
7023 hardcode_libdir_separator=':'
7024 link_all_deplibs=yes
7025 file_list_spec='${wl}-f,'
7027 if test "$GCC" = yes; then
7028 case $host_os in aix4.[012]|aix4.[012].*)
7029 # We only want to do this on AIX 4.2 and lower, the check
7030 # below for broken collect2 doesn't work under 4.3+
7031 collect2name=`${CC} -print-prog-name=collect2`
7032 if test -f "$collect2name" &&
7033 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7034 then
7035 # We have reworked collect2
7037 else
7038 # We have old collect2
7039 hardcode_direct=unsupported
7040 # It fails to find uninstalled libraries when the uninstalled
7041 # path is not listed in the libpath. Setting hardcode_minus_L
7042 # to unsupported forces relinking
7043 hardcode_minus_L=yes
7044 hardcode_libdir_flag_spec='-L$libdir'
7045 hardcode_libdir_separator=
7048 esac
7049 shared_flag='-shared'
7050 if test "$aix_use_runtimelinking" = yes; then
7051 shared_flag="$shared_flag "'${wl}-G'
7053 else
7054 # not using gcc
7055 if test "$host_cpu" = ia64; then
7056 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7057 # chokes on -Wl,-G. The following line is correct:
7058 shared_flag='-G'
7059 else
7060 if test "$aix_use_runtimelinking" = yes; then
7061 shared_flag='${wl}-G'
7062 else
7063 shared_flag='${wl}-bM:SRE'
7068 # It seems that -bexpall does not export symbols beginning with
7069 # underscore (_), so it is better to generate a list of symbols to export.
7070 always_export_symbols=yes
7071 if test "$aix_use_runtimelinking" = yes; then
7072 # Warning - without using the other runtime loading flags (-brtl),
7073 # -berok will link without error, but may produce a broken library.
7074 allow_undefined_flag='-berok'
7075 # Determine the default libpath from the value encoded in an
7076 # empty executable.
7077 if test x$gcc_no_link = xyes; then
7078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7080 { (exit 1); exit 1; }; }
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7090 main ()
7094 return 0;
7096 _ACEOF
7097 rm -f conftest.$ac_objext conftest$ac_exeext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try='test -z "$ac_c_werror_flag"
7107 || test ! -s conftest.err'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 (eval $ac_try) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; } &&
7113 { ac_try='test -s conftest$ac_exeext'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7120 lt_aix_libpath_sed='
7121 /Import File Strings/,/^$/ {
7122 /^0/ {
7123 s/^0 *\(.*\)$/\1/
7127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7128 # Check for a 64-bit object if we didn't find anything.
7129 if test -z "$aix_libpath"; then
7130 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7137 rm -f conftest.err conftest.$ac_objext \
7138 conftest$ac_exeext conftest.$ac_ext
7139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7141 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7142 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"
7143 else
7144 if test "$host_cpu" = ia64; then
7145 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7146 allow_undefined_flag="-z nodefs"
7147 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"
7148 else
7149 # Determine the default libpath from the value encoded in an
7150 # empty executable.
7151 if test x$gcc_no_link = xyes; then
7152 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7154 { (exit 1); exit 1; }; }
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7164 main ()
7168 return 0;
7170 _ACEOF
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7173 (eval $ac_link) 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest$ac_exeext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7194 lt_aix_libpath_sed='
7195 /Import File Strings/,/^$/ {
7196 /^0/ {
7197 s/^0 *\(.*\)$/\1/
7201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7202 # Check for a 64-bit object if we didn't find anything.
7203 if test -z "$aix_libpath"; then
7204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7211 rm -f conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7216 # Warning - without using the other run time loading flags,
7217 # -berok will link without error, but may produce a broken library.
7218 no_undefined_flag=' ${wl}-bernotok'
7219 allow_undefined_flag=' ${wl}-berok'
7220 # Exported symbols can be pulled into shared objects from archives
7221 whole_archive_flag_spec='$convenience'
7222 archive_cmds_need_lc=yes
7223 # This is similar to how AIX traditionally builds its shared libraries.
7224 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'
7229 amigaos*)
7230 if test "$host_cpu" = m68k; then
7231 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)'
7232 hardcode_libdir_flag_spec='-L$libdir'
7233 hardcode_minus_L=yes
7235 # see comment about different semantics on the GNU ld section
7236 ld_shlibs=no
7239 bsdi[45]*)
7240 export_dynamic_flag_spec=-rdynamic
7243 cygwin* | mingw* | pw32*)
7244 # When not using gcc, we currently assume that we are using
7245 # Microsoft Visual C++.
7246 # hardcode_libdir_flag_spec is actually meaningless, as there is
7247 # no search path for DLLs.
7248 hardcode_libdir_flag_spec=' '
7249 allow_undefined_flag=unsupported
7250 # Tell ltmain to make .lib files, not .a files.
7251 libext=lib
7252 # Tell ltmain to make .dll files, not .so files.
7253 shrext_cmds=".dll"
7254 # FIXME: Setting linknames here is a bad hack.
7255 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7256 # The linker will automatically build a .lib file if we build a DLL.
7257 old_archive_from_new_cmds='true'
7258 # FIXME: Should let the user specify the lib program.
7259 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7260 fix_srcfile_path='`cygpath -w "$srcfile"`'
7261 enable_shared_with_static_runtimes=yes
7264 darwin* | rhapsody*)
7265 case $host_os in
7266 rhapsody* | darwin1.[012])
7267 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7269 *) # Darwin 1.3 on
7270 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7271 10.[012])
7272 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7274 10.*)
7275 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7277 esac
7279 esac
7280 archive_cmds_need_lc=no
7281 hardcode_direct=no
7282 hardcode_automatic=yes
7283 hardcode_shlibpath_var=unsupported
7284 whole_archive_flag_spec=''
7285 link_all_deplibs=yes
7286 if test "$GCC" = yes ; then
7287 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290 lt_cv_apple_cc_single_mod=no
7291 if test -z "${LT_MULTI_MODULE}"; then
7292 # By default we will add the -single_module flag. You can override
7293 # by either setting the environment variable LT_MULTI_MODULE
7294 # non-empty at configure time, or by adding -multi-module to the
7295 # link flags.
7296 echo "int foo(void){return 1;}" > conftest.c
7297 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7298 -dynamiclib ${wl}-single_module conftest.c
7299 if test -f libconftest.dylib; then
7300 lt_cv_apple_cc_single_mod=yes
7301 rm libconftest.dylib
7303 rm conftest.$ac_ext
7307 output_verbose_link_cmd=echo
7308 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7309 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7310 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}'
7311 else
7312 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7313 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}'
7315 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7316 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}'
7317 else
7318 case $cc_basename in
7319 xlc*)
7320 output_verbose_link_cmd=echo
7321 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7322 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7323 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7324 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}'
7325 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}'
7328 ld_shlibs=no
7330 esac
7334 dgux*)
7335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 hardcode_shlibpath_var=no
7340 freebsd1*)
7341 ld_shlibs=no
7344 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7345 # support. Future versions do this automatically, but an explicit c++rt0.o
7346 # does not break anything, and helps significantly (at the cost of a little
7347 # extra space).
7348 freebsd2.2*)
7349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7350 hardcode_libdir_flag_spec='-R$libdir'
7351 hardcode_direct=yes
7352 hardcode_shlibpath_var=no
7355 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7356 freebsd2*)
7357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7358 hardcode_direct=yes
7359 hardcode_minus_L=yes
7360 hardcode_shlibpath_var=no
7363 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7364 freebsd* | dragonfly*)
7365 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7366 hardcode_libdir_flag_spec='-R$libdir'
7367 hardcode_direct=yes
7368 hardcode_shlibpath_var=no
7371 hpux9*)
7372 if test "$GCC" = yes; then
7373 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'
7374 else
7375 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'
7377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7378 hardcode_libdir_separator=:
7379 hardcode_direct=yes
7381 # hardcode_minus_L: Not really in the search PATH,
7382 # but as the default location of the library.
7383 hardcode_minus_L=yes
7384 export_dynamic_flag_spec='${wl}-E'
7387 hpux10*)
7388 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7389 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7390 else
7391 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7393 if test "$with_gnu_ld" = no; then
7394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7395 hardcode_libdir_flag_spec_ld='+b $libdir'
7396 hardcode_libdir_separator=:
7397 hardcode_direct=yes
7398 hardcode_direct_absolute=yes
7399 export_dynamic_flag_spec='${wl}-E'
7400 # hardcode_minus_L: Not really in the search PATH,
7401 # but as the default location of the library.
7402 hardcode_minus_L=yes
7406 hpux11*)
7407 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7408 case $host_cpu in
7409 hppa*64*)
7410 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7412 ia64*)
7413 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7418 esac
7419 else
7420 case $host_cpu in
7421 hppa*64*)
7422 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7424 ia64*)
7425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7428 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7430 esac
7432 if test "$with_gnu_ld" = no; then
7433 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7434 hardcode_libdir_separator=:
7436 case $host_cpu in
7437 hppa*64*|ia64*)
7438 hardcode_direct=no
7439 hardcode_shlibpath_var=no
7442 hardcode_direct=yes
7443 hardcode_direct_absolute=yes
7444 export_dynamic_flag_spec='${wl}-E'
7446 # hardcode_minus_L: Not really in the search PATH,
7447 # but as the default location of the library.
7448 hardcode_minus_L=yes
7450 esac
7454 irix5* | irix6* | nonstopux*)
7455 if test "$GCC" = yes; then
7456 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'
7457 # Try to use the -exported_symbol ld option, if it does not
7458 # work, assume that -exports_file does not work either and
7459 # implicitly export all symbols.
7460 save_LDFLAGS="$LDFLAGS"
7461 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7462 if test x$gcc_no_link = xyes; then
7463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7464 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7465 { (exit 1); exit 1; }; }
7467 cat >conftest.$ac_ext <<_ACEOF
7468 int foo(void) {}
7469 _ACEOF
7470 rm -f conftest.$ac_objext conftest$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>conftest.er1
7473 ac_status=$?
7474 grep -v '^ *+' conftest.er1 >conftest.err
7475 rm -f conftest.er1
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } &&
7479 { ac_try='test -z "$ac_c_werror_flag"
7480 || test ! -s conftest.err'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 (eval $ac_try) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; } &&
7486 { ac_try='test -s conftest$ac_exeext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 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'
7494 else
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7499 rm -f conftest.err conftest.$ac_objext \
7500 conftest$ac_exeext conftest.$ac_ext
7501 LDFLAGS="$save_LDFLAGS"
7502 else
7503 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'
7504 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'
7506 archive_cmds_need_lc='no'
7507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7508 hardcode_libdir_separator=:
7509 inherit_rpath=yes
7510 link_all_deplibs=yes
7513 netbsd*)
7514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7516 else
7517 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7519 hardcode_libdir_flag_spec='-R$libdir'
7520 hardcode_direct=yes
7521 hardcode_shlibpath_var=no
7524 newsos6)
7525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7526 hardcode_direct=yes
7527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7528 hardcode_libdir_separator=:
7529 hardcode_shlibpath_var=no
7532 *nto* | *qnx*)
7535 openbsd*)
7536 hardcode_direct=yes
7537 hardcode_shlibpath_var=no
7538 hardcode_direct_absolute=yes
7539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7541 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7543 export_dynamic_flag_spec='${wl}-E'
7544 else
7545 case $host_os in
7546 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7548 hardcode_libdir_flag_spec='-R$libdir'
7551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7554 esac
7558 os2*)
7559 hardcode_libdir_flag_spec='-L$libdir'
7560 hardcode_minus_L=yes
7561 allow_undefined_flag=unsupported
7562 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'
7563 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7566 osf3*)
7567 if test "$GCC" = yes; then
7568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7569 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'
7570 else
7571 allow_undefined_flag=' -expect_unresolved \*'
7572 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'
7574 archive_cmds_need_lc='no'
7575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7576 hardcode_libdir_separator=:
7579 osf4* | osf5*) # as osf3* with the addition of -msym flag
7580 if test "$GCC" = yes; then
7581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7582 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'
7583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7584 else
7585 allow_undefined_flag=' -expect_unresolved \*'
7586 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'
7587 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~
7588 $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'
7590 # Both c and cxx compiler support -rpath directly
7591 hardcode_libdir_flag_spec='-rpath $libdir'
7593 archive_cmds_need_lc='no'
7594 hardcode_libdir_separator=:
7597 solaris*)
7598 no_undefined_flag=' -z defs'
7599 if test "$GCC" = yes; then
7600 wlarc='${wl}'
7601 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7603 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7604 else
7605 case `$CC -V 2>&1` in
7606 *"Compilers 5.0"*)
7607 wlarc=''
7608 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7613 wlarc='${wl}'
7614 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7616 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7618 esac
7620 hardcode_libdir_flag_spec='-R$libdir'
7621 hardcode_shlibpath_var=no
7622 case $host_os in
7623 solaris2.[0-5] | solaris2.[0-5].*) ;;
7625 # The compiler driver will combine and reorder linker options,
7626 # but understands `-z linker_flag'. GCC discards it without `$wl',
7627 # but is careful enough not to reorder.
7628 # Supported since Solaris 2.6 (maybe 2.5.1?)
7629 if test "$GCC" = yes; then
7630 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7631 else
7632 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7635 esac
7636 link_all_deplibs=yes
7639 sunos4*)
7640 if test "x$host_vendor" = xsequent; then
7641 # Use $CC to link under sequent, because it throws in some extra .o
7642 # files that make .init and .fini sections work.
7643 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7644 else
7645 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7647 hardcode_libdir_flag_spec='-L$libdir'
7648 hardcode_direct=yes
7649 hardcode_minus_L=yes
7650 hardcode_shlibpath_var=no
7653 sysv4)
7654 case $host_vendor in
7655 sni)
7656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7657 hardcode_direct=yes # is this really true???
7659 siemens)
7660 ## LD is ld it makes a PLAMLIB
7661 ## CC just makes a GrossModule.
7662 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7663 reload_cmds='$CC -r -o $output$reload_objs'
7664 hardcode_direct=no
7666 motorola)
7667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7668 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7670 esac
7671 runpath_var='LD_RUN_PATH'
7672 hardcode_shlibpath_var=no
7675 sysv4.3*)
7676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7677 hardcode_shlibpath_var=no
7678 export_dynamic_flag_spec='-Bexport'
7681 sysv4*MP*)
7682 if test -d /usr/nec; then
7683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7684 hardcode_shlibpath_var=no
7685 runpath_var=LD_RUN_PATH
7686 hardcode_runpath_var=yes
7687 ld_shlibs=yes
7691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7692 no_undefined_flag='${wl}-z,text'
7693 archive_cmds_need_lc=no
7694 hardcode_shlibpath_var=no
7695 runpath_var='LD_RUN_PATH'
7697 if test "$GCC" = yes; then
7698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7700 else
7701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7706 sysv5* | sco3.2v5* | sco5v6*)
7707 # Note: We can NOT use -z defs as we might desire, because we do not
7708 # link with -lc, and that would cause any symbols used from libc to
7709 # always be unresolved, which means just about no library would
7710 # ever link correctly. If we're not using GNU ld we use -z text
7711 # though, which does catch some bad symbols but isn't as heavy-handed
7712 # as -z defs.
7713 no_undefined_flag='${wl}-z,text'
7714 allow_undefined_flag='${wl}-z,nodefs'
7715 archive_cmds_need_lc=no
7716 hardcode_shlibpath_var=no
7717 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7718 hardcode_libdir_separator=':'
7719 link_all_deplibs=yes
7720 export_dynamic_flag_spec='${wl}-Bexport'
7721 runpath_var='LD_RUN_PATH'
7723 if test "$GCC" = yes; then
7724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7726 else
7727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7732 uts4*)
7733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7734 hardcode_libdir_flag_spec='-L$libdir'
7735 hardcode_shlibpath_var=no
7739 ld_shlibs=no
7741 esac
7743 if test x$host_vendor = xsni; then
7744 case $host in
7745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7746 export_dynamic_flag_spec='${wl}-Blargedynsym'
7748 esac
7752 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7753 echo "${ECHO_T}$ld_shlibs" >&6
7754 test "$ld_shlibs" = no && can_build_shared=no
7756 with_gnu_ld=$with_gnu_ld
7773 # Do we need to explicitly link libc?
7775 case "x$archive_cmds_need_lc" in
7776 x|xyes)
7777 # Assume -lc should be added
7778 archive_cmds_need_lc=yes
7780 if test "$enable_shared" = yes && test "$GCC" = yes; then
7781 case $archive_cmds in
7782 *'~'*)
7783 # FIXME: we may have to deal with multi-command sequences.
7785 '$CC '*)
7786 # Test whether the compiler implicitly links with -lc since on some
7787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7788 # to ld, don't add -lc before -lgcc.
7789 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7790 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7791 $RM conftest*
7792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795 (eval $ac_compile) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } 2>conftest.err; then
7799 soname=conftest
7800 lib=conftest
7801 libobjs=conftest.$ac_objext
7802 deplibs=
7803 wl=$lt_prog_compiler_wl
7804 pic_flag=$lt_prog_compiler_pic
7805 compiler_flags=-v
7806 linker_flags=-v
7807 verstring=
7808 output_objdir=.
7809 libname=conftest
7810 lt_save_allow_undefined_flag=$allow_undefined_flag
7811 allow_undefined_flag=
7812 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7813 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }
7817 then
7818 archive_cmds_need_lc=no
7819 else
7820 archive_cmds_need_lc=yes
7822 allow_undefined_flag=$lt_save_allow_undefined_flag
7823 else
7824 cat conftest.err 1>&5
7826 $RM conftest*
7827 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7828 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7830 esac
7833 esac
7991 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7992 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7993 withGCC=$GCC
7994 if test "$withGCC" = yes; then
7995 case $host_os in
7996 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7997 *) lt_awk_arg="/^libraries:/" ;;
7998 esac
7999 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8000 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8001 # if the path contains ";" then we assume it to be the separator
8002 # otherwise default to the standard path separator (i.e. ":") - it is
8003 # assumed that no part of a normal pathname contains ";" but that should
8004 # okay in the real world where ";" in dirpaths is itself problematic.
8005 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8006 else
8007 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8009 # Ok, now we have the path, separated by spaces, we can step through it
8010 # and add multilib dir if necessary.
8011 lt_tmp_lt_search_path_spec=
8012 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8013 for lt_sys_path in $lt_search_path_spec; do
8014 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8016 else
8017 test -d "$lt_sys_path" && \
8018 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8020 done
8021 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8022 BEGIN {RS=" "; FS="/|\n";} {
8023 lt_foo="";
8024 lt_count=0;
8025 for (lt_i = NF; lt_i > 0; lt_i--) {
8026 if ($lt_i != "" && $lt_i != ".") {
8027 if ($lt_i == "..") {
8028 lt_count++;
8029 } else {
8030 if (lt_count == 0) {
8031 lt_foo="/" $lt_i lt_foo;
8032 } else {
8033 lt_count--;
8038 if (lt_foo != "") { lt_freq[lt_foo]++; }
8039 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8041 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8042 else
8043 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8045 library_names_spec=
8046 libname_spec='lib$name'
8047 soname_spec=
8048 shrext_cmds=".so"
8049 postinstall_cmds=
8050 postuninstall_cmds=
8051 finish_cmds=
8052 finish_eval=
8053 shlibpath_var=
8054 shlibpath_overrides_runpath=unknown
8055 version_type=none
8056 dynamic_linker="$host_os ld.so"
8057 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8058 need_lib_prefix=unknown
8059 hardcode_into_libs=no
8061 # when you set need_version to no, make sure it does not cause -set_version
8062 # flags to be left without arguments
8063 need_version=unknown
8065 case $host_os in
8066 aix3*)
8067 version_type=linux
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8069 shlibpath_var=LIBPATH
8071 # AIX 3 has no versioning support, so we append a major version to the name.
8072 soname_spec='${libname}${release}${shared_ext}$major'
8075 aix[4-9]*)
8076 version_type=linux
8077 need_lib_prefix=no
8078 need_version=no
8079 hardcode_into_libs=yes
8080 if test "$host_cpu" = ia64; then
8081 # AIX 5 supports IA64
8082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8083 shlibpath_var=LD_LIBRARY_PATH
8084 else
8085 # With GCC up to 2.95.x, collect2 would create an import file
8086 # for dependence libraries. The import file would start with
8087 # the line `#! .'. This would cause the generated library to
8088 # depend on `.', always an invalid library. This was fixed in
8089 # development snapshots of GCC prior to 3.0.
8090 case $host_os in
8091 aix4 | aix4.[01] | aix4.[01].*)
8092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8093 echo ' yes '
8094 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8096 else
8097 can_build_shared=no
8100 esac
8101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8102 # soname into executable. Probably we can add versioning support to
8103 # collect2, so additional links can be useful in future.
8104 if test "$aix_use_runtimelinking" = yes; then
8105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8106 # instead of lib<name>.a to let people know that these are not
8107 # typical AIX shared libraries.
8108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8109 else
8110 # We preserve .a as extension for shared libraries through AIX4.2
8111 # and later when we are not doing run time linking.
8112 library_names_spec='${libname}${release}.a $libname.a'
8113 soname_spec='${libname}${release}${shared_ext}$major'
8115 shlibpath_var=LIBPATH
8119 amigaos*)
8120 if test "$host_cpu" = m68k; then
8121 library_names_spec='$libname.ixlibrary $libname.a'
8122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8123 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'
8124 else
8125 dynamic_linker=no
8129 beos*)
8130 library_names_spec='${libname}${shared_ext}'
8131 dynamic_linker="$host_os ld.so"
8132 shlibpath_var=LIBRARY_PATH
8135 bsdi[45]*)
8136 version_type=linux
8137 need_version=no
8138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8139 soname_spec='${libname}${release}${shared_ext}$major'
8140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8141 shlibpath_var=LD_LIBRARY_PATH
8142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8144 # the default ld.so.conf also contains /usr/contrib/lib and
8145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8146 # libtool to hard-code these into programs
8149 cygwin* | mingw* | pw32*)
8150 version_type=windows
8151 shrext_cmds=".dll"
8152 need_version=no
8153 need_lib_prefix=no
8155 case $withGCC,$host_os in
8156 yes,cygwin* | yes,mingw* | yes,pw32*)
8157 library_names_spec='$libname.dll.a'
8158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8159 postinstall_cmds='base_file=`basename \${file}`~
8160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8161 dldir=$destdir/`dirname \$dlpath`~
8162 test -d \$dldir || mkdir -p \$dldir~
8163 $install_prog $dir/$dlname \$dldir/$dlname~
8164 chmod a+x \$dldir/$dlname~
8165 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8166 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8169 dlpath=$dir/\$dldll~
8170 $RM \$dlpath'
8171 shlibpath_overrides_runpath=yes
8173 case $host_os in
8174 cygwin*)
8175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8177 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8179 mingw*)
8180 # MinGW DLLs use traditional 'lib' prefix
8181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8182 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8183 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8184 # It is most probably a Windows format PATH printed by
8185 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8186 # path with ; separators, and with drive letters. We can handle the
8187 # drive letters (cygwin fileutils understands them), so leave them,
8188 # especially as we might pass files found there to a mingw objdump,
8189 # which wouldn't understand a cygwinified path. Ahh.
8190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8191 else
8192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8195 pw32*)
8196 # pw32 DLLs use 'pw' prefix rather than 'lib'
8197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8199 esac
8203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8205 esac
8206 dynamic_linker='Win32 ld.exe'
8207 # FIXME: first we should search . and the directory the executable is in
8208 shlibpath_var=PATH
8211 darwin* | rhapsody*)
8212 dynamic_linker="$host_os dyld"
8213 version_type=darwin
8214 need_lib_prefix=no
8215 need_version=no
8216 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8217 soname_spec='${libname}${release}${major}$shared_ext'
8218 shlibpath_overrides_runpath=yes
8219 shlibpath_var=DYLD_LIBRARY_PATH
8220 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8222 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8223 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8226 dgux*)
8227 version_type=linux
8228 need_lib_prefix=no
8229 need_version=no
8230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8231 soname_spec='${libname}${release}${shared_ext}$major'
8232 shlibpath_var=LD_LIBRARY_PATH
8235 freebsd1*)
8236 dynamic_linker=no
8239 freebsd* | dragonfly*)
8240 # DragonFly does not have aout. When/if they implement a new
8241 # versioning mechanism, adjust this.
8242 if test -x /usr/bin/objformat; then
8243 objformat=`/usr/bin/objformat`
8244 else
8245 case $host_os in
8246 freebsd[123]*) objformat=aout ;;
8247 *) objformat=elf ;;
8248 esac
8250 version_type=freebsd-$objformat
8251 case $version_type in
8252 freebsd-elf*)
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8254 need_version=no
8255 need_lib_prefix=no
8257 freebsd-*)
8258 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8259 need_version=yes
8261 esac
8262 shlibpath_var=LD_LIBRARY_PATH
8263 case $host_os in
8264 freebsd2*)
8265 shlibpath_overrides_runpath=yes
8267 freebsd3.[01]* | freebsdelf3.[01]*)
8268 shlibpath_overrides_runpath=yes
8269 hardcode_into_libs=yes
8271 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8272 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8273 shlibpath_overrides_runpath=no
8274 hardcode_into_libs=yes
8276 *) # from 4.6 on, and DragonFly
8277 shlibpath_overrides_runpath=yes
8278 hardcode_into_libs=yes
8280 esac
8283 gnu*)
8284 version_type=linux
8285 need_lib_prefix=no
8286 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
8290 hardcode_into_libs=yes
8293 hpux9* | hpux10* | hpux11*)
8294 # Give a soname corresponding to the major version so that dld.sl refuses to
8295 # link against other versions.
8296 version_type=sunos
8297 need_lib_prefix=no
8298 need_version=no
8299 case $host_cpu in
8300 ia64*)
8301 shrext_cmds='.so'
8302 hardcode_into_libs=yes
8303 dynamic_linker="$host_os dld.so"
8304 shlibpath_var=LD_LIBRARY_PATH
8305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307 soname_spec='${libname}${release}${shared_ext}$major'
8308 if test "X$HPUX_IA64_MODE" = X32; then
8309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8310 else
8311 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8315 hppa*64*)
8316 shrext_cmds='.sl'
8317 hardcode_into_libs=yes
8318 dynamic_linker="$host_os dld.sl"
8319 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8322 soname_spec='${libname}${release}${shared_ext}$major'
8323 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8327 shrext_cmds='.sl'
8328 dynamic_linker="$host_os dld.sl"
8329 shlibpath_var=SHLIB_PATH
8330 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8332 soname_spec='${libname}${release}${shared_ext}$major'
8334 esac
8335 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8336 postinstall_cmds='chmod 555 $lib'
8339 interix[3-9]*)
8340 version_type=linux
8341 need_lib_prefix=no
8342 need_version=no
8343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8344 soname_spec='${libname}${release}${shared_ext}$major'
8345 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8346 shlibpath_var=LD_LIBRARY_PATH
8347 shlibpath_overrides_runpath=no
8348 hardcode_into_libs=yes
8351 irix5* | irix6* | nonstopux*)
8352 case $host_os in
8353 nonstopux*) version_type=nonstopux ;;
8355 if test "$lt_cv_prog_gnu_ld" = yes; then
8356 version_type=linux
8357 else
8358 version_type=irix
8359 fi ;;
8360 esac
8361 need_lib_prefix=no
8362 need_version=no
8363 soname_spec='${libname}${release}${shared_ext}$major'
8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8365 case $host_os in
8366 irix5* | nonstopux*)
8367 libsuff= shlibsuff=
8370 case $LD in # libtool.m4 will add one of these switches to LD
8371 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8372 libsuff= shlibsuff= libmagic=32-bit;;
8373 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8374 libsuff=32 shlibsuff=N32 libmagic=N32;;
8375 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8376 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8377 *) libsuff= shlibsuff= libmagic=never-match;;
8378 esac
8380 esac
8381 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8382 shlibpath_overrides_runpath=no
8383 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8384 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8385 hardcode_into_libs=yes
8388 # No shared lib support for Linux oldld, aout, or coff.
8389 linux*oldld* | linux*aout* | linux*coff*)
8390 dynamic_linker=no
8393 # This must be Linux ELF.
8394 linux* | k*bsd*-gnu)
8395 version_type=linux
8396 need_lib_prefix=no
8397 need_version=no
8398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8399 soname_spec='${libname}${release}${shared_ext}$major'
8400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8401 shlibpath_var=LD_LIBRARY_PATH
8402 shlibpath_overrides_runpath=no
8403 # Some binutils ld are patched to set DT_RUNPATH
8404 save_LDFLAGS=$LDFLAGS
8405 save_libdir=$libdir
8406 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8407 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8408 if test x$gcc_no_link = xyes; then
8409 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8410 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8411 { (exit 1); exit 1; }; }
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8421 main ()
8425 return 0;
8427 _ACEOF
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8430 (eval $ac_link) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag"
8438 || test ! -s conftest.err'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; } &&
8444 { ac_try='test -s conftest$ac_exeext'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 (eval $ac_try) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8451 shlibpath_overrides_runpath=yes
8454 else
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8459 rm -f conftest.err conftest.$ac_objext \
8460 conftest$ac_exeext conftest.$ac_ext
8461 LDFLAGS=$save_LDFLAGS
8462 libdir=$save_libdir
8464 # This implies no fast_install, which is unacceptable.
8465 # Some rework will be needed to allow for fast_install
8466 # before this can be enabled.
8467 hardcode_into_libs=yes
8469 # Append ld.so.conf contents to the search path
8470 if test -f /etc/ld.so.conf; then
8471 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' ' '`
8472 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8475 # We used to test for /lib/ld.so.1 and disable shared libraries on
8476 # powerpc, because MkLinux only supported shared libraries with the
8477 # GNU dynamic linker. Since this was broken with cross compilers,
8478 # most powerpc-linux boxes support dynamic linking these days and
8479 # people can always --disable-shared, the test was removed, and we
8480 # assume the GNU/Linux dynamic linker is in use.
8481 dynamic_linker='GNU/Linux ld.so'
8484 netbsd*)
8485 version_type=sunos
8486 need_lib_prefix=no
8487 need_version=no
8488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8491 dynamic_linker='NetBSD (a.out) ld.so'
8492 else
8493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8494 soname_spec='${libname}${release}${shared_ext}$major'
8495 dynamic_linker='NetBSD ld.elf_so'
8497 shlibpath_var=LD_LIBRARY_PATH
8498 shlibpath_overrides_runpath=yes
8499 hardcode_into_libs=yes
8502 newsos6)
8503 version_type=linux
8504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8505 shlibpath_var=LD_LIBRARY_PATH
8506 shlibpath_overrides_runpath=yes
8509 *nto* | *qnx*)
8510 version_type=qnx
8511 need_lib_prefix=no
8512 need_version=no
8513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8514 soname_spec='${libname}${release}${shared_ext}$major'
8515 shlibpath_var=LD_LIBRARY_PATH
8516 shlibpath_overrides_runpath=no
8517 hardcode_into_libs=yes
8518 dynamic_linker='ldqnx.so'
8521 openbsd*)
8522 version_type=sunos
8523 sys_lib_dlsearch_path_spec="/usr/lib"
8524 need_lib_prefix=no
8525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8526 case $host_os in
8527 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8528 *) need_version=no ;;
8529 esac
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8532 shlibpath_var=LD_LIBRARY_PATH
8533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8534 case $host_os in
8535 openbsd2.[89] | openbsd2.[89].*)
8536 shlibpath_overrides_runpath=no
8539 shlibpath_overrides_runpath=yes
8541 esac
8542 else
8543 shlibpath_overrides_runpath=yes
8547 os2*)
8548 libname_spec='$name'
8549 shrext_cmds=".dll"
8550 need_lib_prefix=no
8551 library_names_spec='$libname${shared_ext} $libname.a'
8552 dynamic_linker='OS/2 ld.exe'
8553 shlibpath_var=LIBPATH
8556 osf3* | osf4* | osf5*)
8557 version_type=osf
8558 need_lib_prefix=no
8559 need_version=no
8560 soname_spec='${libname}${release}${shared_ext}$major'
8561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562 shlibpath_var=LD_LIBRARY_PATH
8563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8567 rdos*)
8568 dynamic_linker=no
8571 solaris*)
8572 version_type=linux
8573 need_lib_prefix=no
8574 need_version=no
8575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8576 soname_spec='${libname}${release}${shared_ext}$major'
8577 shlibpath_var=LD_LIBRARY_PATH
8578 shlibpath_overrides_runpath=yes
8579 hardcode_into_libs=yes
8580 # ldd complains unless libraries are executable
8581 postinstall_cmds='chmod +x $lib'
8584 sunos4*)
8585 version_type=sunos
8586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8588 shlibpath_var=LD_LIBRARY_PATH
8589 shlibpath_overrides_runpath=yes
8590 if test "$with_gnu_ld" = yes; then
8591 need_lib_prefix=no
8593 need_version=yes
8596 sysv4 | sysv4.3*)
8597 version_type=linux
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 shlibpath_var=LD_LIBRARY_PATH
8601 case $host_vendor in
8602 sni)
8603 shlibpath_overrides_runpath=no
8604 need_lib_prefix=no
8605 runpath_var=LD_RUN_PATH
8607 siemens)
8608 need_lib_prefix=no
8610 motorola)
8611 need_lib_prefix=no
8612 need_version=no
8613 shlibpath_overrides_runpath=no
8614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8616 esac
8619 sysv4*MP*)
8620 if test -d /usr/nec ;then
8621 version_type=linux
8622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8623 soname_spec='$libname${shared_ext}.$major'
8624 shlibpath_var=LD_LIBRARY_PATH
8628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8629 version_type=freebsd-elf
8630 need_lib_prefix=no
8631 need_version=no
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8633 soname_spec='${libname}${release}${shared_ext}$major'
8634 shlibpath_var=LD_LIBRARY_PATH
8635 shlibpath_overrides_runpath=yes
8636 hardcode_into_libs=yes
8637 if test "$with_gnu_ld" = yes; then
8638 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8639 else
8640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8641 case $host_os in
8642 sco3.2v5*)
8643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8645 esac
8647 sys_lib_dlsearch_path_spec='/usr/lib'
8650 tpf*)
8651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8652 version_type=linux
8653 need_lib_prefix=no
8654 need_version=no
8655 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8656 shlibpath_var=LD_LIBRARY_PATH
8657 shlibpath_overrides_runpath=no
8658 hardcode_into_libs=yes
8661 uts4*)
8662 version_type=linux
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664 soname_spec='${libname}${release}${shared_ext}$major'
8665 shlibpath_var=LD_LIBRARY_PATH
8669 dynamic_linker=no
8671 esac
8672 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8673 echo "${ECHO_T}$dynamic_linker" >&6
8674 test "$dynamic_linker" = no && can_build_shared=no
8676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8677 if test "$GCC" = yes; then
8678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8767 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8768 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8769 hardcode_action=
8770 if test -n "$hardcode_libdir_flag_spec" ||
8771 test -n "$runpath_var" ||
8772 test "X$hardcode_automatic" = "Xyes" ; then
8774 # We can hardcode non-existent directories.
8775 if test "$hardcode_direct" != no &&
8776 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8777 # have to relink, otherwise we might link with an installed library
8778 # when we should be linking with a yet-to-be-installed one
8779 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8780 test "$hardcode_minus_L" != no; then
8781 # Linking always hardcodes the temporary library directory.
8782 hardcode_action=relink
8783 else
8784 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8785 hardcode_action=immediate
8787 else
8788 # We cannot hardcode anything, or else we can only hardcode existing
8789 # directories.
8790 hardcode_action=unsupported
8792 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8793 echo "${ECHO_T}$hardcode_action" >&6
8795 if test "$hardcode_action" = relink ||
8796 test "$inherit_rpath" = yes; then
8797 # Fast installation is not supported
8798 enable_fast_install=no
8799 elif test "$shlibpath_overrides_runpath" = yes ||
8800 test "$enable_shared" = no; then
8801 # Fast installation is not necessary
8802 enable_fast_install=needless
8810 if test "x$enable_dlopen" != xyes; then
8811 enable_dlopen=unknown
8812 enable_dlopen_self=unknown
8813 enable_dlopen_self_static=unknown
8814 else
8815 lt_cv_dlopen=no
8816 lt_cv_dlopen_libs=
8818 case $host_os in
8819 beos*)
8820 lt_cv_dlopen="load_add_on"
8821 lt_cv_dlopen_libs=
8822 lt_cv_dlopen_self=yes
8825 mingw* | pw32*)
8826 lt_cv_dlopen="LoadLibrary"
8827 lt_cv_dlopen_libs=
8830 cygwin*)
8831 lt_cv_dlopen="dlopen"
8832 lt_cv_dlopen_libs=
8835 darwin*)
8836 # if libdl is installed we need to link against it
8837 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8838 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842 ac_check_lib_save_LIBS=$LIBS
8843 LIBS="-ldl $LIBS"
8844 if test x$gcc_no_link = xyes; then
8845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8847 { (exit 1); exit 1; }; }
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8856 /* Override any gcc2 internal prototype to avoid an error. */
8857 #ifdef __cplusplus
8858 extern "C"
8859 #endif
8860 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */
8862 char dlopen ();
8864 main ()
8866 dlopen ();
8868 return 0;
8870 _ACEOF
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8873 (eval $ac_link) 2>conftest.er1
8874 ac_status=$?
8875 grep -v '^ *+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try='test -z "$ac_c_werror_flag"
8881 || test ! -s conftest.err'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try='test -s conftest$ac_exeext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8893 ac_cv_lib_dl_dlopen=yes
8894 else
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_cv_lib_dl_dlopen=no
8900 rm -f conftest.err conftest.$ac_objext \
8901 conftest$ac_exeext conftest.$ac_ext
8902 LIBS=$ac_check_lib_save_LIBS
8904 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8906 if test $ac_cv_lib_dl_dlopen = yes; then
8907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8908 else
8910 lt_cv_dlopen="dyld"
8911 lt_cv_dlopen_libs=
8912 lt_cv_dlopen_self=yes
8919 echo "$as_me:$LINENO: checking for shl_load" >&5
8920 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8921 if test "${ac_cv_func_shl_load+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 else
8924 if test x$gcc_no_link = xyes; then
8925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8927 { (exit 1); exit 1; }; }
8929 cat >conftest.$ac_ext <<_ACEOF
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8937 #define shl_load innocuous_shl_load
8939 /* System header to define __stub macros and hopefully few prototypes,
8940 which can conflict with char shl_load (); below.
8941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942 <limits.h> exists even on freestanding compilers. */
8944 #ifdef __STDC__
8945 # include <limits.h>
8946 #else
8947 # include <assert.h>
8948 #endif
8950 #undef shl_load
8952 /* Override any gcc2 internal prototype to avoid an error. */
8953 #ifdef __cplusplus
8954 extern "C"
8956 #endif
8957 /* We use char because int might match the return type of a gcc2
8958 builtin and then its argument prototype would still apply. */
8959 char shl_load ();
8960 /* The GNU C library defines this for functions which it implements
8961 to always fail with ENOSYS. Some functions are actually named
8962 something starting with __ and the normal name is an alias. */
8963 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8964 choke me
8965 #else
8966 char (*f) () = shl_load;
8967 #endif
8968 #ifdef __cplusplus
8970 #endif
8973 main ()
8975 return f != shl_load;
8977 return 0;
8979 _ACEOF
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest$ac_exeext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_cv_func_shl_load=yes
9003 else
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_cv_func_shl_load=no
9009 rm -f conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9013 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9014 if test $ac_cv_func_shl_load = yes; then
9015 lt_cv_dlopen="shl_load"
9016 else
9017 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9018 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9019 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 ac_check_lib_save_LIBS=$LIBS
9023 LIBS="-ldld $LIBS"
9024 if test x$gcc_no_link = xyes; then
9025 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9026 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9027 { (exit 1); exit 1; }; }
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9036 /* Override any gcc2 internal prototype to avoid an error. */
9037 #ifdef __cplusplus
9038 extern "C"
9039 #endif
9040 /* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042 char shl_load ();
9044 main ()
9046 shl_load ();
9048 return 0;
9050 _ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag"
9061 || test ! -s conftest.err'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try='test -s conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_lib_dld_shl_load=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_cv_lib_dld_shl_load=no
9080 rm -f conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082 LIBS=$ac_check_lib_save_LIBS
9084 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9085 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9086 if test $ac_cv_lib_dld_shl_load = yes; then
9087 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9088 else
9089 echo "$as_me:$LINENO: checking for dlopen" >&5
9090 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9091 if test "${ac_cv_func_dlopen+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094 if test x$gcc_no_link = xyes; then
9095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9097 { (exit 1); exit 1; }; }
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9107 #define dlopen innocuous_dlopen
9109 /* System header to define __stub macros and hopefully few prototypes,
9110 which can conflict with char dlopen (); below.
9111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9112 <limits.h> exists even on freestanding compilers. */
9114 #ifdef __STDC__
9115 # include <limits.h>
9116 #else
9117 # include <assert.h>
9118 #endif
9120 #undef dlopen
9122 /* Override any gcc2 internal prototype to avoid an error. */
9123 #ifdef __cplusplus
9124 extern "C"
9126 #endif
9127 /* We use char because int might match the return type of a gcc2
9128 builtin and then its argument prototype would still apply. */
9129 char dlopen ();
9130 /* The GNU C library defines this for functions which it implements
9131 to always fail with ENOSYS. Some functions are actually named
9132 something starting with __ and the normal name is an alias. */
9133 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9134 choke me
9135 #else
9136 char (*f) () = dlopen;
9137 #endif
9138 #ifdef __cplusplus
9140 #endif
9143 main ()
9145 return f != dlopen;
9147 return 0;
9149 _ACEOF
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152 (eval $ac_link) 2>conftest.er1
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag"
9160 || test ! -s conftest.err'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; } &&
9166 { ac_try='test -s conftest$ac_exeext'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 (eval $ac_try) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 ac_cv_func_dlopen=yes
9173 else
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 ac_cv_func_dlopen=no
9179 rm -f conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9182 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9183 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9184 if test $ac_cv_func_dlopen = yes; then
9185 lt_cv_dlopen="dlopen"
9186 else
9187 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9188 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9189 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192 ac_check_lib_save_LIBS=$LIBS
9193 LIBS="-ldl $LIBS"
9194 if test x$gcc_no_link = xyes; then
9195 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9196 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9197 { (exit 1); exit 1; }; }
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9206 /* Override any gcc2 internal prototype to avoid an error. */
9207 #ifdef __cplusplus
9208 extern "C"
9209 #endif
9210 /* We use char because int might match the return type of a gcc2
9211 builtin and then its argument prototype would still apply. */
9212 char dlopen ();
9214 main ()
9216 dlopen ();
9218 return 0;
9220 _ACEOF
9221 rm -f conftest.$ac_objext conftest$ac_exeext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9223 (eval $ac_link) 2>conftest.er1
9224 ac_status=$?
9225 grep -v '^ *+' conftest.er1 >conftest.err
9226 rm -f conftest.er1
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } &&
9230 { ac_try='test -z "$ac_c_werror_flag"
9231 || test ! -s conftest.err'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 (eval $ac_try) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; } &&
9237 { ac_try='test -s conftest$ac_exeext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 ac_cv_lib_dl_dlopen=yes
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 ac_cv_lib_dl_dlopen=no
9250 rm -f conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$ac_check_lib_save_LIBS
9254 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9256 if test $ac_cv_lib_dl_dlopen = yes; then
9257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9258 else
9259 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9260 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9261 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264 ac_check_lib_save_LIBS=$LIBS
9265 LIBS="-lsvld $LIBS"
9266 if test x$gcc_no_link = xyes; then
9267 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9268 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9269 { (exit 1); exit 1; }; }
9271 cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h. */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9278 /* Override any gcc2 internal prototype to avoid an error. */
9279 #ifdef __cplusplus
9280 extern "C"
9281 #endif
9282 /* We use char because int might match the return type of a gcc2
9283 builtin and then its argument prototype would still apply. */
9284 char dlopen ();
9286 main ()
9288 dlopen ();
9290 return 0;
9292 _ACEOF
9293 rm -f conftest.$ac_objext conftest$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag"
9303 || test ! -s conftest.err'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 (eval $ac_try) 2>&5
9306 ac_status=$?
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; } &&
9309 { ac_try='test -s conftest$ac_exeext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_cv_lib_svld_dlopen=yes
9316 else
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_cv_lib_svld_dlopen=no
9322 rm -f conftest.err conftest.$ac_objext \
9323 conftest$ac_exeext conftest.$ac_ext
9324 LIBS=$ac_check_lib_save_LIBS
9326 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9327 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9328 if test $ac_cv_lib_svld_dlopen = yes; then
9329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9330 else
9331 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9332 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9333 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336 ac_check_lib_save_LIBS=$LIBS
9337 LIBS="-ldld $LIBS"
9338 if test x$gcc_no_link = xyes; then
9339 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9341 { (exit 1); exit 1; }; }
9343 cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h. */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9350 /* Override any gcc2 internal prototype to avoid an error. */
9351 #ifdef __cplusplus
9352 extern "C"
9353 #endif
9354 /* We use char because int might match the return type of a gcc2
9355 builtin and then its argument prototype would still apply. */
9356 char dld_link ();
9358 main ()
9360 dld_link ();
9362 return 0;
9364 _ACEOF
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367 (eval $ac_link) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag"
9375 || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest$ac_exeext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_cv_lib_dld_dld_link=yes
9388 else
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9392 ac_cv_lib_dld_dld_link=no
9394 rm -f conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396 LIBS=$ac_check_lib_save_LIBS
9398 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9399 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9400 if test $ac_cv_lib_dld_dld_link = yes; then
9401 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9420 esac
9422 if test "x$lt_cv_dlopen" != xno; then
9423 enable_dlopen=yes
9424 else
9425 enable_dlopen=no
9428 case $lt_cv_dlopen in
9429 dlopen)
9430 save_CPPFLAGS="$CPPFLAGS"
9431 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9433 save_LDFLAGS="$LDFLAGS"
9434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9436 save_LIBS="$LIBS"
9437 LIBS="$lt_cv_dlopen_libs $LIBS"
9439 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9440 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9441 if test "${lt_cv_dlopen_self+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444 if test "$cross_compiling" = yes; then :
9445 lt_cv_dlopen_self=cross
9446 else
9447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9448 lt_status=$lt_dlunknown
9449 cat > conftest.$ac_ext <<_LT_EOF
9450 #line 9450 "configure"
9451 #include "confdefs.h"
9453 #if HAVE_DLFCN_H
9454 #include <dlfcn.h>
9455 #endif
9457 #include <stdio.h>
9459 #ifdef RTLD_GLOBAL
9460 # define LT_DLGLOBAL RTLD_GLOBAL
9461 #else
9462 # ifdef DL_GLOBAL
9463 # define LT_DLGLOBAL DL_GLOBAL
9464 # else
9465 # define LT_DLGLOBAL 0
9466 # endif
9467 #endif
9469 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9470 find out it does not work in some platform. */
9471 #ifndef LT_DLLAZY_OR_NOW
9472 # ifdef RTLD_LAZY
9473 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9474 # else
9475 # ifdef DL_LAZY
9476 # define LT_DLLAZY_OR_NOW DL_LAZY
9477 # else
9478 # ifdef RTLD_NOW
9479 # define LT_DLLAZY_OR_NOW RTLD_NOW
9480 # else
9481 # ifdef DL_NOW
9482 # define LT_DLLAZY_OR_NOW DL_NOW
9483 # else
9484 # define LT_DLLAZY_OR_NOW 0
9485 # endif
9486 # endif
9487 # endif
9488 # endif
9489 #endif
9491 #ifdef __cplusplus
9492 extern "C" void exit (int);
9493 #endif
9495 void fnord() { int i=42;}
9496 int main ()
9498 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9499 int status = $lt_dlunknown;
9501 if (self)
9503 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9504 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9505 /* dlclose (self); */
9507 else
9508 puts (dlerror ());
9510 exit (status);
9512 _LT_EOF
9513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514 (eval $ac_link) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9518 (./conftest; exit; ) >&5 2>/dev/null
9519 lt_status=$?
9520 case x$lt_status in
9521 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9522 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9523 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9524 esac
9525 else :
9526 # compilation failed
9527 lt_cv_dlopen_self=no
9530 rm -fr conftest*
9534 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9535 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9537 if test "x$lt_cv_dlopen_self" = xyes; then
9538 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9539 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9540 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9541 if test "${lt_cv_dlopen_self_static+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544 if test "$cross_compiling" = yes; then :
9545 lt_cv_dlopen_self_static=cross
9546 else
9547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9548 lt_status=$lt_dlunknown
9549 cat > conftest.$ac_ext <<_LT_EOF
9550 #line 9550 "configure"
9551 #include "confdefs.h"
9553 #if HAVE_DLFCN_H
9554 #include <dlfcn.h>
9555 #endif
9557 #include <stdio.h>
9559 #ifdef RTLD_GLOBAL
9560 # define LT_DLGLOBAL RTLD_GLOBAL
9561 #else
9562 # ifdef DL_GLOBAL
9563 # define LT_DLGLOBAL DL_GLOBAL
9564 # else
9565 # define LT_DLGLOBAL 0
9566 # endif
9567 #endif
9569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9570 find out it does not work in some platform. */
9571 #ifndef LT_DLLAZY_OR_NOW
9572 # ifdef RTLD_LAZY
9573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9574 # else
9575 # ifdef DL_LAZY
9576 # define LT_DLLAZY_OR_NOW DL_LAZY
9577 # else
9578 # ifdef RTLD_NOW
9579 # define LT_DLLAZY_OR_NOW RTLD_NOW
9580 # else
9581 # ifdef DL_NOW
9582 # define LT_DLLAZY_OR_NOW DL_NOW
9583 # else
9584 # define LT_DLLAZY_OR_NOW 0
9585 # endif
9586 # endif
9587 # endif
9588 # endif
9589 #endif
9591 #ifdef __cplusplus
9592 extern "C" void exit (int);
9593 #endif
9595 void fnord() { int i=42;}
9596 int main ()
9598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9599 int status = $lt_dlunknown;
9601 if (self)
9603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9605 /* dlclose (self); */
9607 else
9608 puts (dlerror ());
9610 exit (status);
9612 _LT_EOF
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9618 (./conftest; exit; ) >&5 2>/dev/null
9619 lt_status=$?
9620 case x$lt_status in
9621 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9622 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9623 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9624 esac
9625 else :
9626 # compilation failed
9627 lt_cv_dlopen_self_static=no
9630 rm -fr conftest*
9634 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9635 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9638 CPPFLAGS="$save_CPPFLAGS"
9639 LDFLAGS="$save_LDFLAGS"
9640 LIBS="$save_LIBS"
9642 esac
9644 case $lt_cv_dlopen_self in
9645 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9646 *) enable_dlopen_self=unknown ;;
9647 esac
9649 case $lt_cv_dlopen_self_static in
9650 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9651 *) enable_dlopen_self_static=unknown ;;
9652 esac
9671 striplib=
9672 old_striplib=
9673 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9674 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9675 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9678 echo "$as_me:$LINENO: result: yes" >&5
9679 echo "${ECHO_T}yes" >&6
9680 else
9681 # FIXME - insert some real tests, host_os isn't really good enough
9682 case $host_os in
9683 darwin*)
9684 if test -n "$STRIP" ; then
9685 striplib="$STRIP -x"
9686 old_striplib="$STRIP -S"
9687 echo "$as_me:$LINENO: result: yes" >&5
9688 echo "${ECHO_T}yes" >&6
9689 else
9690 echo "$as_me:$LINENO: result: no" >&5
9691 echo "${ECHO_T}no" >&6
9695 echo "$as_me:$LINENO: result: no" >&5
9696 echo "${ECHO_T}no" >&6
9698 esac
9712 # Report which library types will actually be built
9713 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9714 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9715 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9716 echo "${ECHO_T}$can_build_shared" >&6
9718 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9719 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9720 test "$can_build_shared" = "no" && enable_shared=no
9722 # On AIX, shared libraries and static libraries use the same namespace, and
9723 # are all built from PIC.
9724 case $host_os in
9725 aix3*)
9726 test "$enable_shared" = yes && enable_static=no
9727 if test -n "$RANLIB"; then
9728 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9729 postinstall_cmds='$RANLIB $lib'
9733 aix[4-9]*)
9734 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9735 test "$enable_shared" = yes && enable_static=no
9738 esac
9739 echo "$as_me:$LINENO: result: $enable_shared" >&5
9740 echo "${ECHO_T}$enable_shared" >&6
9742 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9743 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9744 # Make sure either enable_shared or enable_static is yes.
9745 test "$enable_shared" = yes || enable_static=yes
9746 echo "$as_me:$LINENO: result: $enable_static" >&5
9747 echo "${ECHO_T}$enable_static" >&6
9753 ac_ext=c
9754 ac_cpp='$CPP $CPPFLAGS'
9755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9759 CC="$lt_save_CC"
9773 ac_config_commands="$ac_config_commands libtool"
9778 # Only expand once:
9782 if test "x$CC" != xcc; then
9783 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
9784 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
9785 else
9786 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
9787 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
9789 set dummy $CC; ac_cc=`echo $2 |
9790 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
9791 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9802 main ()
9806 return 0;
9808 _ACEOF
9809 # Make sure it works both with $CC and with simple cc.
9810 # We do the test twice because some compilers refuse to overwrite an
9811 # existing .o file with -o, though they will create one.
9812 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
9813 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); };
9823 then
9824 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
9825 if test "x$CC" != xcc; then
9826 # Test first that cc exists at all.
9827 if { ac_try='cc -c conftest.$ac_ext >&5'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
9834 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 (eval $ac_try) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); };
9844 then
9845 # cc works too.
9847 else
9848 # cc exists but doesn't like -o.
9849 eval ac_cv_prog_cc_${ac_cc}_c_o=no
9853 else
9854 eval ac_cv_prog_cc_${ac_cc}_c_o=no
9856 rm -f conftest*
9859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
9860 echo "$as_me:$LINENO: result: yes" >&5
9861 echo "${ECHO_T}yes" >&6
9862 else
9863 echo "$as_me:$LINENO: result: no" >&5
9864 echo "${ECHO_T}no" >&6
9866 cat >>confdefs.h <<\_ACEOF
9867 #define NO_MINUS_C_MINUS_O 1
9868 _ACEOF
9872 # expand $ac_aux_dir to an absolute path
9873 am_aux_dir=`cd $ac_aux_dir && pwd`
9875 # FIXME: we rely on the cache variable name because
9876 # there is no other way.
9877 set dummy $CC
9878 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
9879 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
9880 # Losing compiler, so override with the script.
9881 # FIXME: It is wrong to rewrite CC.
9882 # But if we don't then we get into trouble of one sort or another.
9883 # A longer-term fix would be to have automake use am__CC in this case,
9884 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9885 CC="$am_aux_dir/compile $CC"
9889 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9890 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9891 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9892 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895 cat >conftest.make <<\_ACEOF
9896 all:
9897 @echo 'ac_maketemp="$(MAKE)"'
9898 _ACEOF
9899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9900 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9901 if test -n "$ac_maketemp"; then
9902 eval ac_cv_prog_make_${ac_make}_set=yes
9903 else
9904 eval ac_cv_prog_make_${ac_make}_set=no
9906 rm -f conftest.make
9908 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9909 echo "$as_me:$LINENO: result: yes" >&5
9910 echo "${ECHO_T}yes" >&6
9911 SET_MAKE=
9912 else
9913 echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6
9915 SET_MAKE="MAKE=${MAKE-make}"
9919 # -------
9920 # Headers
9921 # -------
9923 # Sanity check for the cross-compilation case:
9924 if test "${ac_cv_header_stdio_h+set}" = set; then
9925 echo "$as_me:$LINENO: checking for stdio.h" >&5
9926 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
9927 if test "${ac_cv_header_stdio_h+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
9931 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
9932 else
9933 # Is the header compilable?
9934 echo "$as_me:$LINENO: checking stdio.h usability" >&5
9935 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h. */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942 $ac_includes_default
9943 #include <stdio.h>
9944 _ACEOF
9945 rm -f conftest.$ac_objext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947 (eval $ac_compile) 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); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest.$ac_objext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_header_compiler=yes
9968 else
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 ac_header_compiler=no
9974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9976 echo "${ECHO_T}$ac_header_compiler" >&6
9978 # Is the header present?
9979 echo "$as_me:$LINENO: checking stdio.h presence" >&5
9980 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 #include <stdio.h>
9988 _ACEOF
9989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } >/dev/null; then
9997 if test -s conftest.err; then
9998 ac_cpp_err=$ac_c_preproc_warn_flag
9999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10000 else
10001 ac_cpp_err=
10003 else
10004 ac_cpp_err=yes
10006 if test -z "$ac_cpp_err"; then
10007 ac_header_preproc=yes
10008 else
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_header_preproc=no
10014 rm -f conftest.err conftest.$ac_ext
10015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10016 echo "${ECHO_T}$ac_header_preproc" >&6
10018 # So? What about this header?
10019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10020 yes:no: )
10021 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10022 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10023 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
10024 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
10025 ac_header_preproc=yes
10027 no:yes:* )
10028 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
10029 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
10031 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
10033 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
10035 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
10037 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
10038 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
10039 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
10041 cat <<\_ASBOX
10042 ## ----------------------------------------- ##
10043 ## Report this to the package-unused lists. ##
10044 ## ----------------------------------------- ##
10045 _ASBOX
10047 sed "s/^/$as_me: WARNING: /" >&2
10049 esac
10050 echo "$as_me:$LINENO: checking for stdio.h" >&5
10051 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10052 if test "${ac_cv_header_stdio_h+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055 ac_cv_header_stdio_h=$ac_header_preproc
10057 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10058 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10061 if test $ac_cv_header_stdio_h = yes; then
10063 else
10064 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
10065 You must have a usable C system for the target already installed, at least
10066 including headers and, preferably, the library, before you can configure
10067 the Objective C runtime system. If necessary, install gcc now with
10068 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
10069 echo "$as_me: error: Can't find stdio.h.
10070 You must have a usable C system for the target already installed, at least
10071 including headers and, preferably, the library, before you can configure
10072 the Objective C runtime system. If necessary, install gcc now with
10073 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
10074 { (exit 1); exit 1; }; }
10079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10081 if test "${ac_cv_header_stdc+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h. */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10090 #include <stdlib.h>
10091 #include <stdarg.h>
10092 #include <string.h>
10093 #include <float.h>
10096 main ()
10100 return 0;
10102 _ACEOF
10103 rm -f conftest.$ac_objext
10104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10105 (eval $ac_compile) 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag"
10113 || test ! -s conftest.err'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest.$ac_objext'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10122 ac_status=$?
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; }; then
10125 ac_cv_header_stdc=yes
10126 else
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_cv_header_stdc=no
10132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10134 if test $ac_cv_header_stdc = yes; then
10135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 #include <string.h>
10144 _ACEOF
10145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10146 $EGREP "memchr" >/dev/null 2>&1; then
10148 else
10149 ac_cv_header_stdc=no
10151 rm -f conftest*
10155 if test $ac_cv_header_stdc = yes; then
10156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 #include <stdlib.h>
10165 _ACEOF
10166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10167 $EGREP "free" >/dev/null 2>&1; then
10169 else
10170 ac_cv_header_stdc=no
10172 rm -f conftest*
10176 if test $ac_cv_header_stdc = yes; then
10177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10178 if test "$cross_compiling" = yes; then
10180 else
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h. */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 #include <ctype.h>
10188 #if ((' ' & 0x0FF) == 0x020)
10189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10191 #else
10192 # define ISLOWER(c) \
10193 (('a' <= (c) && (c) <= 'i') \
10194 || ('j' <= (c) && (c) <= 'r') \
10195 || ('s' <= (c) && (c) <= 'z'))
10196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10197 #endif
10199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10201 main ()
10203 int i;
10204 for (i = 0; i < 256; i++)
10205 if (XOR (islower (i), ISLOWER (i))
10206 || toupper (i) != TOUPPER (i))
10207 exit(2);
10208 exit (0);
10210 _ACEOF
10211 rm -f conftest$ac_exeext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10213 (eval $ac_link) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10223 else
10224 echo "$as_me: program exited with status $ac_status" >&5
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ( exit $ac_status )
10229 ac_cv_header_stdc=no
10231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10235 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10236 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10237 if test $ac_cv_header_stdc = yes; then
10239 cat >>confdefs.h <<\_ACEOF
10240 #define STDC_HEADERS 1
10241 _ACEOF
10247 for ac_header in sched.h
10249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10251 echo "$as_me:$LINENO: checking for $ac_header" >&5
10252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10258 else
10259 # Is the header compilable?
10260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10261 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10269 #include <$ac_header>
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>conftest.er1
10274 ac_status=$?
10275 grep -v '^ *+' conftest.er1 >conftest.err
10276 rm -f conftest.er1
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag"
10281 || test ! -s conftest.err'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest.$ac_objext'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 ac_header_compiler=yes
10294 else
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_header_compiler=no
10300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10302 echo "${ECHO_T}$ac_header_compiler" >&6
10304 # Is the header present?
10305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 #include <$ac_header>
10314 _ACEOF
10315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } >/dev/null; then
10323 if test -s conftest.err; then
10324 ac_cpp_err=$ac_c_preproc_warn_flag
10325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10326 else
10327 ac_cpp_err=
10329 else
10330 ac_cpp_err=yes
10332 if test -z "$ac_cpp_err"; then
10333 ac_header_preproc=yes
10334 else
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ac_header_preproc=no
10340 rm -f conftest.err conftest.$ac_ext
10341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10342 echo "${ECHO_T}$ac_header_preproc" >&6
10344 # So? What about this header?
10345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10346 yes:no: )
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10351 ac_header_preproc=yes
10353 no:yes:* )
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10367 cat <<\_ASBOX
10368 ## ----------------------------------------- ##
10369 ## Report this to the package-unused lists. ##
10370 ## ----------------------------------------- ##
10371 _ASBOX
10373 sed "s/^/$as_me: WARNING: /" >&2
10375 esac
10376 echo "$as_me:$LINENO: checking for $ac_header" >&5
10377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381 eval "$as_ac_Header=\$ac_header_preproc"
10383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10388 cat >>confdefs.h <<_ACEOF
10389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10390 _ACEOF
10394 done
10397 # -----------
10398 # Miscellanea
10399 # -----------
10401 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
10402 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
10403 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
10404 echo "$as_me:$LINENO: result: $target_thread_file" >&5
10405 echo "${ECHO_T}$target_thread_file" >&6
10407 if test $target_thread_file != single; then
10409 cat >>confdefs.h <<\_ACEOF
10410 #define HAVE_GTHR_DEFAULT 1
10411 _ACEOF
10416 echo "$as_me:$LINENO: checking for exception model to use" >&5
10417 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
10418 ac_ext=c
10419 ac_cpp='$CPP $CPPFLAGS'
10420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10424 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
10425 if test "${enable_sjlj_exceptions+set}" = set; then
10426 enableval="$enable_sjlj_exceptions"
10428 else
10429 cat > conftest.$ac_ext << EOF
10430 #line 10430 "configure"
10431 @interface Frob
10432 @end
10433 @implementation Frob
10434 @end
10435 int proc();
10436 int foo()
10438 @try {
10439 return proc();
10441 @catch (Frob* ex) {
10442 return 0;
10446 old_CFLAGS="$CFLAGS"
10447 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; then
10453 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
10454 enable_sjlj_exceptions=yes
10455 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
10456 enable_sjlj_exceptions=no
10459 CFLAGS="$old_CFLAGS"
10460 rm -f conftest*
10462 if test x$enable_sjlj_exceptions = xyes; then
10464 cat >>confdefs.h <<\_ACEOF
10465 #define SJLJ_EXCEPTIONS 1
10466 _ACEOF
10468 ac_exception_model_name=sjlj
10469 elif test x$enable_sjlj_exceptions = xno; then
10470 ac_exception_model_name="call frame"
10471 else
10472 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
10473 echo "$as_me: error: unable to detect exception model" >&2;}
10474 { (exit 1); exit 1; }; }
10476 ac_ext=c
10477 ac_cpp='$CPP $CPPFLAGS'
10478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10482 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
10483 echo "${ECHO_T}$ac_exception_model_name" >&6
10485 # ------
10486 # Output
10487 # ------
10489 if test ${multilib} = yes; then
10490 multilib_arg="--enable-multilib"
10491 else
10492 multilib_arg=
10495 ac_config_files="$ac_config_files Makefile"
10497 cat >confcache <<\_ACEOF
10498 # This file is a shell script that caches the results of configure
10499 # tests run on this system so they can be shared between configure
10500 # scripts and configure runs, see configure's option --config-cache.
10501 # It is not useful on other systems. If it contains results you don't
10502 # want to keep, you may remove or edit it.
10504 # config.status only pays attention to the cache file if you give it
10505 # the --recheck option to rerun configure.
10507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10509 # following values.
10511 _ACEOF
10513 # The following way of writing the cache mishandles newlines in values,
10514 # but we know of no workaround that is simple, portable, and efficient.
10515 # So, don't put newlines in cache variables' values.
10516 # Ultrix sh set writes to stderr and can't be redirected directly,
10517 # and sets the high bit in the cache file unless we assign to the vars.
10519 (set) 2>&1 |
10520 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10521 *ac_space=\ *)
10522 # `set' does not quote correctly, so add quotes (double-quote
10523 # substitution turns \\\\ into \\, and sed turns \\ into \).
10524 sed -n \
10525 "s/'/'\\\\''/g;
10526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10529 # `set' quotes correctly as required by POSIX, so do not add quotes.
10530 sed -n \
10531 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10533 esac;
10535 sed '
10536 t clear
10537 : clear
10538 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10539 t end
10540 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10541 : end' >>confcache
10542 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10543 if test -w $cache_file; then
10544 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10545 cat confcache >$cache_file
10546 else
10547 echo "not updating unwritable cache $cache_file"
10550 rm -f confcache
10552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10553 # Let make expand exec_prefix.
10554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10556 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10557 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10558 # trailing colons and then remove the whole line if VPATH becomes empty
10559 # (actually we leave an empty line to preserve line numbers).
10560 if test "x$srcdir" = x.; then
10561 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10562 s/:*\$(srcdir):*/:/;
10563 s/:*\${srcdir}:*/:/;
10564 s/:*@srcdir@:*/:/;
10565 s/^\([^=]*=[ ]*\):*/\1/;
10566 s/:*$//;
10567 s/^[^=]*=[ ]*$//;
10571 DEFS=-DHAVE_CONFIG_H
10573 ac_libobjs=
10574 ac_ltlibobjs=
10575 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10576 # 1. Remove the extension, and $U if already installed.
10577 ac_i=`echo "$ac_i" |
10578 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10579 # 2. Add them.
10580 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10581 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10582 done
10583 LIBOBJS=$ac_libobjs
10585 LTLIBOBJS=$ac_ltlibobjs
10588 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10589 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10590 Usually this means the macro was only invoked conditionally." >&5
10591 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10592 Usually this means the macro was only invoked conditionally." >&2;}
10593 { (exit 1); exit 1; }; }
10596 : ${CONFIG_STATUS=./config.status}
10597 ac_clean_files_save=$ac_clean_files
10598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10599 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10600 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10601 cat >$CONFIG_STATUS <<_ACEOF
10602 #! $SHELL
10603 # Generated by $as_me.
10604 # Run this file to recreate the current configuration.
10605 # Compiler output produced by configure, useful for debugging
10606 # configure, is in config.log if it exists.
10608 debug=false
10609 ac_cs_recheck=false
10610 ac_cs_silent=false
10611 SHELL=\${CONFIG_SHELL-$SHELL}
10612 _ACEOF
10614 cat >>$CONFIG_STATUS <<\_ACEOF
10615 ## --------------------- ##
10616 ## M4sh Initialization. ##
10617 ## --------------------- ##
10619 # Be Bourne compatible
10620 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10621 emulate sh
10622 NULLCMD=:
10623 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10624 # is contrary to our usage. Disable this feature.
10625 alias -g '${1+"$@"}'='"$@"'
10626 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10627 set -o posix
10629 DUALCASE=1; export DUALCASE # for MKS sh
10631 # Support unset when possible.
10632 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10633 as_unset=unset
10634 else
10635 as_unset=false
10639 # Work around bugs in pre-3.0 UWIN ksh.
10640 $as_unset ENV MAIL MAILPATH
10641 PS1='$ '
10642 PS2='> '
10643 PS4='+ '
10645 # NLS nuisances.
10646 for as_var in \
10647 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10648 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10649 LC_TELEPHONE LC_TIME
10651 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10652 eval $as_var=C; export $as_var
10653 else
10654 $as_unset $as_var
10656 done
10658 # Required to use basename.
10659 if expr a : '\(a\)' >/dev/null 2>&1; then
10660 as_expr=expr
10661 else
10662 as_expr=false
10665 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10666 as_basename=basename
10667 else
10668 as_basename=false
10672 # Name of the executable.
10673 as_me=`$as_basename "$0" ||
10674 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10675 X"$0" : 'X\(//\)$' \| \
10676 X"$0" : 'X\(/\)$' \| \
10677 . : '\(.\)' 2>/dev/null ||
10678 echo X/"$0" |
10679 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10680 /^X\/\(\/\/\)$/{ s//\1/; q; }
10681 /^X\/\(\/\).*/{ s//\1/; q; }
10682 s/.*/./; q'`
10685 # PATH needs CR, and LINENO needs CR and PATH.
10686 # Avoid depending upon Character Ranges.
10687 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10688 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10689 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10690 as_cr_digits='0123456789'
10691 as_cr_alnum=$as_cr_Letters$as_cr_digits
10693 # The user is always right.
10694 if test "${PATH_SEPARATOR+set}" != set; then
10695 echo "#! /bin/sh" >conf$$.sh
10696 echo "exit 0" >>conf$$.sh
10697 chmod +x conf$$.sh
10698 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10699 PATH_SEPARATOR=';'
10700 else
10701 PATH_SEPARATOR=:
10703 rm -f conf$$.sh
10707 as_lineno_1=$LINENO
10708 as_lineno_2=$LINENO
10709 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10710 test "x$as_lineno_1" != "x$as_lineno_2" &&
10711 test "x$as_lineno_3" = "x$as_lineno_2" || {
10712 # Find who we are. Look in the path if we contain no path at all
10713 # relative or not.
10714 case $0 in
10715 *[\\/]* ) as_myself=$0 ;;
10716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10722 done
10725 esac
10726 # We did not find ourselves, most probably we were run as `sh COMMAND'
10727 # in which case we are not to be found in the path.
10728 if test "x$as_myself" = x; then
10729 as_myself=$0
10731 if test ! -f "$as_myself"; then
10732 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10733 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10734 { (exit 1); exit 1; }; }
10736 case $CONFIG_SHELL in
10738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10739 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10741 IFS=$as_save_IFS
10742 test -z "$as_dir" && as_dir=.
10743 for as_base in sh bash ksh sh5; do
10744 case $as_dir in
10746 if ("$as_dir/$as_base" -c '
10747 as_lineno_1=$LINENO
10748 as_lineno_2=$LINENO
10749 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10750 test "x$as_lineno_1" != "x$as_lineno_2" &&
10751 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10752 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10753 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10754 CONFIG_SHELL=$as_dir/$as_base
10755 export CONFIG_SHELL
10756 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10757 fi;;
10758 esac
10759 done
10760 done
10762 esac
10764 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10765 # uniformly replaced by the line number. The first 'sed' inserts a
10766 # line-number line before each line; the second 'sed' does the real
10767 # work. The second script uses 'N' to pair each line-number line
10768 # with the numbered line, and appends trailing '-' during
10769 # substitution so that $LINENO is not a special case at line end.
10770 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10771 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10772 sed '=' <$as_myself |
10773 sed '
10775 s,$,-,
10776 : loop
10777 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10778 t loop
10779 s,-$,,
10780 s,^['$as_cr_digits']*\n,,
10781 ' >$as_me.lineno &&
10782 chmod +x $as_me.lineno ||
10783 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10784 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10785 { (exit 1); exit 1; }; }
10787 # Don't try to exec as it changes $[0], causing all sort of problems
10788 # (the dirname of $[0] is not the place where we might find the
10789 # original and so on. Autoconf is especially sensible to this).
10790 . ./$as_me.lineno
10791 # Exit status is that of the last command.
10792 exit
10796 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10797 *c*,-n*) ECHO_N= ECHO_C='
10798 ' ECHO_T=' ' ;;
10799 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10800 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10801 esac
10803 if expr a : '\(a\)' >/dev/null 2>&1; then
10804 as_expr=expr
10805 else
10806 as_expr=false
10809 rm -f conf$$ conf$$.exe conf$$.file
10810 echo >conf$$.file
10811 if ln -s conf$$.file conf$$ 2>/dev/null; then
10812 # We could just check for DJGPP; but this test a) works b) is more generic
10813 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10814 if test -f conf$$.exe; then
10815 # Don't use ln at all; we don't have any links
10816 as_ln_s='cp -p'
10817 else
10818 as_ln_s='ln -s'
10820 elif ln conf$$.file conf$$ 2>/dev/null; then
10821 as_ln_s=ln
10822 else
10823 as_ln_s='cp -p'
10825 rm -f conf$$ conf$$.exe conf$$.file
10827 if mkdir -p . 2>/dev/null; then
10828 as_mkdir_p=:
10829 else
10830 test -d ./-p && rmdir ./-p
10831 as_mkdir_p=false
10834 as_executable_p="test -f"
10836 # Sed expression to map a string onto a valid CPP name.
10837 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10839 # Sed expression to map a string onto a valid variable name.
10840 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10843 # IFS
10844 # We need space, tab and new line, in precisely that order.
10845 as_nl='
10847 IFS=" $as_nl"
10849 # CDPATH.
10850 $as_unset CDPATH
10852 exec 6>&1
10854 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10855 # report actual input values of CONFIG_FILES etc. instead of their
10856 # values after options handling. Logging --version etc. is OK.
10857 exec 5>>config.log
10859 echo
10860 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10861 ## Running $as_me. ##
10862 _ASBOX
10863 } >&5
10864 cat >&5 <<_CSEOF
10866 This file was extended by package-unused $as_me version-unused, which was
10867 generated by GNU Autoconf 2.59. Invocation command line was
10869 CONFIG_FILES = $CONFIG_FILES
10870 CONFIG_HEADERS = $CONFIG_HEADERS
10871 CONFIG_LINKS = $CONFIG_LINKS
10872 CONFIG_COMMANDS = $CONFIG_COMMANDS
10873 $ $0 $@
10875 _CSEOF
10876 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10877 echo >&5
10878 _ACEOF
10880 # Files that config.status was made for.
10881 if test -n "$ac_config_files"; then
10882 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10885 if test -n "$ac_config_headers"; then
10886 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10889 if test -n "$ac_config_links"; then
10890 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10893 if test -n "$ac_config_commands"; then
10894 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10897 cat >>$CONFIG_STATUS <<\_ACEOF
10899 ac_cs_usage="\
10900 \`$as_me' instantiates files from templates according to the
10901 current configuration.
10903 Usage: $0 [OPTIONS] [FILE]...
10905 -h, --help print this help, then exit
10906 -V, --version print version number, then exit
10907 -q, --quiet do not print progress messages
10908 -d, --debug don't remove temporary files
10909 --recheck update $as_me by reconfiguring in the same conditions
10910 --file=FILE[:TEMPLATE]
10911 instantiate the configuration file FILE
10912 --header=FILE[:TEMPLATE]
10913 instantiate the configuration header FILE
10915 Configuration files:
10916 $config_files
10918 Configuration headers:
10919 $config_headers
10921 Configuration commands:
10922 $config_commands
10924 Report bugs to <bug-autoconf@gnu.org>."
10925 _ACEOF
10927 cat >>$CONFIG_STATUS <<_ACEOF
10928 ac_cs_version="\\
10929 package-unused config.status version-unused
10930 configured by $0, generated by GNU Autoconf 2.59,
10931 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10933 Copyright (C) 2003 Free Software Foundation, Inc.
10934 This config.status script is free software; the Free Software Foundation
10935 gives unlimited permission to copy, distribute and modify it."
10936 srcdir=$srcdir
10937 INSTALL="$INSTALL"
10938 _ACEOF
10940 cat >>$CONFIG_STATUS <<\_ACEOF
10941 # If no file are specified by the user, then we need to provide default
10942 # value. By we need to know if files were specified by the user.
10943 ac_need_defaults=:
10944 while test $# != 0
10946 case $1 in
10947 --*=*)
10948 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10949 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10950 ac_shift=:
10953 ac_option=$1
10954 ac_optarg=$2
10955 ac_shift=shift
10957 *) # This is not an option, so the user has probably given explicit
10958 # arguments.
10959 ac_option=$1
10960 ac_need_defaults=false;;
10961 esac
10963 case $ac_option in
10964 # Handling of the options.
10965 _ACEOF
10966 cat >>$CONFIG_STATUS <<\_ACEOF
10967 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10968 ac_cs_recheck=: ;;
10969 --version | --vers* | -V )
10970 echo "$ac_cs_version"; exit 0 ;;
10971 --he | --h)
10972 # Conflict between --help and --header
10973 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10974 Try \`$0 --help' for more information." >&5
10975 echo "$as_me: error: ambiguous option: $1
10976 Try \`$0 --help' for more information." >&2;}
10977 { (exit 1); exit 1; }; };;
10978 --help | --hel | -h )
10979 echo "$ac_cs_usage"; exit 0 ;;
10980 --debug | --d* | -d )
10981 debug=: ;;
10982 --file | --fil | --fi | --f )
10983 $ac_shift
10984 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10985 ac_need_defaults=false;;
10986 --header | --heade | --head | --hea )
10987 $ac_shift
10988 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10989 ac_need_defaults=false;;
10990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10991 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10992 ac_cs_silent=: ;;
10994 # This is an error.
10995 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10996 Try \`$0 --help' for more information." >&5
10997 echo "$as_me: error: unrecognized option: $1
10998 Try \`$0 --help' for more information." >&2;}
10999 { (exit 1); exit 1; }; } ;;
11001 *) ac_config_targets="$ac_config_targets $1" ;;
11003 esac
11004 shift
11005 done
11007 ac_configure_extra_args=
11009 if $ac_cs_silent; then
11010 exec 6>/dev/null
11011 ac_configure_extra_args="$ac_configure_extra_args --silent"
11014 _ACEOF
11015 cat >>$CONFIG_STATUS <<_ACEOF
11016 if \$ac_cs_recheck; then
11017 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11018 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11021 _ACEOF
11023 cat >>$CONFIG_STATUS <<_ACEOF
11025 # INIT-COMMANDS section.
11029 srcdir="$srcdir"
11030 host="$host"
11031 target="$target"
11032 with_multisubdir="$with_multisubdir"
11033 with_multisrctop="$with_multisrctop"
11034 with_target_subdir="$with_target_subdir"
11035 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11036 multi_basedir="$multi_basedir"
11037 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11038 CC="$CC"
11041 # The HP-UX ksh and POSIX shell print the target directory to stdout
11042 # if CDPATH is set.
11043 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11045 sed_quote_subst='$sed_quote_subst'
11046 double_quote_subst='$double_quote_subst'
11047 delay_variable_subst='$delay_variable_subst'
11048 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11049 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11050 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11051 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11052 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11053 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11054 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11055 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11056 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11057 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11058 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11059 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11060 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11061 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11062 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11063 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11064 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11065 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11066 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11067 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11068 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11069 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11070 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11071 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11072 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11073 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11074 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11075 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11076 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11077 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11078 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11079 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11080 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11081 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11082 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11083 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11084 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11085 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11086 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11087 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11088 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11089 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11090 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11091 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11092 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11093 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11094 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"`'
11095 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11096 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11097 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11098 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11099 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11100 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11101 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11102 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11103 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11104 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11105 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11106 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11107 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11108 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11109 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11110 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11111 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11112 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11113 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11114 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11115 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11116 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11117 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11118 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11119 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11120 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11121 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11122 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11123 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11124 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11125 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11126 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11127 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11128 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11129 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11130 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11131 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11132 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11133 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11134 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11135 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11136 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11137 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11138 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11139 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11140 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11141 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11142 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11143 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11144 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11145 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11146 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11147 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11148 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11149 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11150 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11151 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11152 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11153 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11154 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11155 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11156 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11157 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11158 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11159 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11160 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11161 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11163 LTCC='$LTCC'
11164 LTCFLAGS='$LTCFLAGS'
11165 compiler='$compiler_DEFAULT'
11167 # Quote evaled strings.
11168 for var in SED \
11169 GREP \
11170 EGREP \
11171 FGREP \
11172 LD \
11173 NM \
11174 LN_S \
11175 lt_SP2NL \
11176 lt_NL2SP \
11177 reload_flag \
11178 deplibs_check_method \
11179 file_magic_cmd \
11180 AR \
11181 AR_FLAGS \
11182 STRIP \
11183 RANLIB \
11184 CC \
11185 CFLAGS \
11186 compiler \
11187 lt_cv_sys_global_symbol_pipe \
11188 lt_cv_sys_global_symbol_to_cdecl \
11189 lt_cv_sys_global_symbol_to_c_name_address \
11190 SHELL \
11191 ECHO \
11192 lt_prog_compiler_no_builtin_flag \
11193 lt_prog_compiler_wl \
11194 lt_prog_compiler_pic \
11195 lt_prog_compiler_static \
11196 lt_cv_prog_compiler_c_o \
11197 need_locks \
11198 shrext_cmds \
11199 export_dynamic_flag_spec \
11200 whole_archive_flag_spec \
11201 compiler_needs_object \
11202 with_gnu_ld \
11203 allow_undefined_flag \
11204 no_undefined_flag \
11205 hardcode_libdir_flag_spec \
11206 hardcode_libdir_flag_spec_ld \
11207 hardcode_libdir_separator \
11208 fix_srcfile_path \
11209 exclude_expsyms \
11210 include_expsyms \
11211 file_list_spec \
11212 variables_saved_for_relink \
11213 libname_spec \
11214 library_names_spec \
11215 soname_spec \
11216 finish_eval \
11217 old_striplib \
11218 striplib; do
11219 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11220 *[\\\\\\\`\\"\\\$]*)
11221 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11224 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11226 esac
11227 done
11229 # Double-quote double-evaled strings.
11230 for var in reload_cmds \
11231 old_postinstall_cmds \
11232 old_postuninstall_cmds \
11233 old_archive_cmds \
11234 extract_expsyms_cmds \
11235 old_archive_from_new_cmds \
11236 old_archive_from_expsyms_cmds \
11237 archive_cmds \
11238 archive_expsym_cmds \
11239 module_cmds \
11240 module_expsym_cmds \
11241 export_symbols_cmds \
11242 prelink_cmds \
11243 postinstall_cmds \
11244 postuninstall_cmds \
11245 finish_cmds \
11246 sys_lib_search_path_spec \
11247 sys_lib_dlsearch_path_spec; do
11248 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11249 *[\\\\\\\`\\"\\\$]*)
11250 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11253 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11255 esac
11256 done
11258 # Fix-up fallback echo if it was mangled by the above quoting rules.
11259 case \$lt_ECHO in
11260 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11262 esac
11264 ac_aux_dir='$ac_aux_dir'
11265 xsi_shell='$xsi_shell'
11266 lt_shell_append='$lt_shell_append'
11268 # See if we are running on zsh, and set the options which allow our
11269 # commands through without removal of \ escapes INIT.
11270 if test -n "\${ZSH_VERSION+set}" ; then
11271 setopt NO_GLOB_SUBST
11275 PACKAGE='$PACKAGE'
11276 VERSION='$VERSION'
11277 TIMESTAMP='$TIMESTAMP'
11278 RM='$RM'
11279 ofile='$ofile'
11284 _ACEOF
11288 cat >>$CONFIG_STATUS <<\_ACEOF
11289 for ac_config_target in $ac_config_targets
11291 case "$ac_config_target" in
11292 # Handling of arguments.
11293 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11294 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11295 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11296 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11297 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11298 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11299 { (exit 1); exit 1; }; };;
11300 esac
11301 done
11303 # If the user did not use the arguments to specify the items to instantiate,
11304 # then the envvar interface is used. Set only those that are not.
11305 # We use the long form for the default assignment because of an extremely
11306 # bizarre bug on SunOS 4.1.3.
11307 if $ac_need_defaults; then
11308 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11309 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11310 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11313 # Have a temporary directory for convenience. Make it in the build tree
11314 # simply because there is no reason to put it here, and in addition,
11315 # creating and moving files from /tmp can sometimes cause problems.
11316 # Create a temporary directory, and hook for its removal unless debugging.
11317 $debug ||
11319 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11320 trap '{ (exit 1); exit 1; }' 1 2 13 15
11323 # Create a (secure) tmp directory for tmp files.
11326 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11327 test -n "$tmp" && test -d "$tmp"
11328 } ||
11330 tmp=./confstat$$-$RANDOM
11331 (umask 077 && mkdir $tmp)
11332 } ||
11334 echo "$me: cannot create a temporary directory in ." >&2
11335 { (exit 1); exit 1; }
11338 _ACEOF
11340 cat >>$CONFIG_STATUS <<_ACEOF
11343 # CONFIG_FILES section.
11346 # No need to generate the scripts if there are no CONFIG_FILES.
11347 # This happens for instance when ./config.status config.h
11348 if test -n "\$CONFIG_FILES"; then
11349 # Protect against being on the right side of a sed subst in config.status.
11350 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11351 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11352 s,@SHELL@,$SHELL,;t t
11353 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11354 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11355 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11356 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11357 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11358 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11359 s,@exec_prefix@,$exec_prefix,;t t
11360 s,@prefix@,$prefix,;t t
11361 s,@program_transform_name@,$program_transform_name,;t t
11362 s,@bindir@,$bindir,;t t
11363 s,@sbindir@,$sbindir,;t t
11364 s,@libexecdir@,$libexecdir,;t t
11365 s,@datadir@,$datadir,;t t
11366 s,@sysconfdir@,$sysconfdir,;t t
11367 s,@sharedstatedir@,$sharedstatedir,;t t
11368 s,@localstatedir@,$localstatedir,;t t
11369 s,@libdir@,$libdir,;t t
11370 s,@includedir@,$includedir,;t t
11371 s,@oldincludedir@,$oldincludedir,;t t
11372 s,@infodir@,$infodir,;t t
11373 s,@mandir@,$mandir,;t t
11374 s,@build_alias@,$build_alias,;t t
11375 s,@host_alias@,$host_alias,;t t
11376 s,@target_alias@,$target_alias,;t t
11377 s,@DEFS@,$DEFS,;t t
11378 s,@ECHO_C@,$ECHO_C,;t t
11379 s,@ECHO_N@,$ECHO_N,;t t
11380 s,@ECHO_T@,$ECHO_T,;t t
11381 s,@LIBS@,$LIBS,;t t
11382 s,@build@,$build,;t t
11383 s,@build_cpu@,$build_cpu,;t t
11384 s,@build_vendor@,$build_vendor,;t t
11385 s,@build_os@,$build_os,;t t
11386 s,@build_libsubdir@,$build_libsubdir,;t t
11387 s,@build_subdir@,$build_subdir,;t t
11388 s,@host_subdir@,$host_subdir,;t t
11389 s,@target_subdir@,$target_subdir,;t t
11390 s,@VERSION@,$VERSION,;t t
11391 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
11392 s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
11393 s,@multi_basedir@,$multi_basedir,;t t
11394 s,@host@,$host,;t t
11395 s,@host_cpu@,$host_cpu,;t t
11396 s,@host_vendor@,$host_vendor,;t t
11397 s,@host_os@,$host_os,;t t
11398 s,@target@,$target,;t t
11399 s,@target_cpu@,$target_cpu,;t t
11400 s,@target_vendor@,$target_vendor,;t t
11401 s,@target_os@,$target_os,;t t
11402 s,@target_noncanonical@,$target_noncanonical,;t t
11403 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
11404 s,@toolexecdir@,$toolexecdir,;t t
11405 s,@toolexeclibdir@,$toolexeclibdir,;t t
11406 s,@includedirname@,$includedirname,;t t
11407 s,@libsuffix@,$libsuffix,;t t
11408 s,@CC@,$CC,;t t
11409 s,@ac_ct_CC@,$ac_ct_CC,;t t
11410 s,@EXEEXT@,$EXEEXT,;t t
11411 s,@OBJEXT@,$OBJEXT,;t t
11412 s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
11413 s,@CFLAGS@,$CFLAGS,;t t
11414 s,@AS@,$AS,;t t
11415 s,@ac_ct_AS@,$ac_ct_AS,;t t
11416 s,@AR@,$AR,;t t
11417 s,@ac_ct_AR@,$ac_ct_AR,;t t
11418 s,@RANLIB@,$RANLIB,;t t
11419 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11420 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11421 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11422 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11423 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11424 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11425 s,@MAINT@,$MAINT,;t t
11426 s,@DLLTOOL@,$DLLTOOL,;t t
11427 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
11428 s,@OBJDUMP@,$OBJDUMP,;t t
11429 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
11430 s,@LIBTOOL@,$LIBTOOL,;t t
11431 s,@SED@,$SED,;t t
11432 s,@EGREP@,$EGREP,;t t
11433 s,@FGREP@,$FGREP,;t t
11434 s,@GREP@,$GREP,;t t
11435 s,@LD@,$LD,;t t
11436 s,@DUMPBIN@,$DUMPBIN,;t t
11437 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11438 s,@NM@,$NM,;t t
11439 s,@LN_S@,$LN_S,;t t
11440 s,@STRIP@,$STRIP,;t t
11441 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11442 s,@lt_ECHO@,$lt_ECHO,;t t
11443 s,@CPP@,$CPP,;t t
11444 s,@CPPFLAGS@,$CPPFLAGS,;t t
11445 s,@SET_MAKE@,$SET_MAKE,;t t
11446 s,@LIBOBJS@,$LIBOBJS,;t t
11447 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11448 CEOF
11450 _ACEOF
11452 cat >>$CONFIG_STATUS <<\_ACEOF
11453 # Split the substitutions into bite-sized pieces for seds with
11454 # small command number limits, like on Digital OSF/1 and HP-UX.
11455 ac_max_sed_lines=48
11456 ac_sed_frag=1 # Number of current file.
11457 ac_beg=1 # First line for current file.
11458 ac_end=$ac_max_sed_lines # Line after last line for current file.
11459 ac_more_lines=:
11460 ac_sed_cmds=
11461 while $ac_more_lines; do
11462 if test $ac_beg -gt 1; then
11463 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11464 else
11465 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11467 if test ! -s $tmp/subs.frag; then
11468 ac_more_lines=false
11469 else
11470 # The purpose of the label and of the branching condition is to
11471 # speed up the sed processing (if there are no `@' at all, there
11472 # is no need to browse any of the substitutions).
11473 # These are the two extra sed commands mentioned above.
11474 (echo ':t
11475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11476 if test -z "$ac_sed_cmds"; then
11477 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11478 else
11479 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11481 ac_sed_frag=`expr $ac_sed_frag + 1`
11482 ac_beg=$ac_end
11483 ac_end=`expr $ac_end + $ac_max_sed_lines`
11485 done
11486 if test -z "$ac_sed_cmds"; then
11487 ac_sed_cmds=cat
11489 fi # test -n "$CONFIG_FILES"
11491 _ACEOF
11492 cat >>$CONFIG_STATUS <<\_ACEOF
11493 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11494 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11495 case $ac_file in
11496 - | *:- | *:-:* ) # input from stdin
11497 cat >$tmp/stdin
11498 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11499 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11500 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11501 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11502 * ) ac_file_in=$ac_file.in ;;
11503 esac
11505 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11506 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11508 X"$ac_file" : 'X\(//\)[^/]' \| \
11509 X"$ac_file" : 'X\(//\)$' \| \
11510 X"$ac_file" : 'X\(/\)' \| \
11511 . : '\(.\)' 2>/dev/null ||
11512 echo X"$ac_file" |
11513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11515 /^X\(\/\/\)$/{ s//\1/; q; }
11516 /^X\(\/\).*/{ s//\1/; q; }
11517 s/.*/./; q'`
11518 { if $as_mkdir_p; then
11519 mkdir -p "$ac_dir"
11520 else
11521 as_dir="$ac_dir"
11522 as_dirs=
11523 while test ! -d "$as_dir"; do
11524 as_dirs="$as_dir $as_dirs"
11525 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11527 X"$as_dir" : 'X\(//\)[^/]' \| \
11528 X"$as_dir" : 'X\(//\)$' \| \
11529 X"$as_dir" : 'X\(/\)' \| \
11530 . : '\(.\)' 2>/dev/null ||
11531 echo X"$as_dir" |
11532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11534 /^X\(\/\/\)$/{ s//\1/; q; }
11535 /^X\(\/\).*/{ s//\1/; q; }
11536 s/.*/./; q'`
11537 done
11538 test ! -n "$as_dirs" || mkdir $as_dirs
11539 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11540 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11541 { (exit 1); exit 1; }; }; }
11543 ac_builddir=.
11545 if test "$ac_dir" != .; then
11546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11547 # A "../" for each directory in $ac_dir_suffix.
11548 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11549 else
11550 ac_dir_suffix= ac_top_builddir=
11553 case $srcdir in
11554 .) # No --srcdir option. We are building in place.
11555 ac_srcdir=.
11556 if test -z "$ac_top_builddir"; then
11557 ac_top_srcdir=.
11558 else
11559 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11560 fi ;;
11561 [\\/]* | ?:[\\/]* ) # Absolute path.
11562 ac_srcdir=$srcdir$ac_dir_suffix;
11563 ac_top_srcdir=$srcdir ;;
11564 *) # Relative path.
11565 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11566 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11567 esac
11569 # Do not use `cd foo && pwd` to compute absolute paths, because
11570 # the directories may not exist.
11571 case `pwd` in
11572 .) ac_abs_builddir="$ac_dir";;
11574 case "$ac_dir" in
11575 .) ac_abs_builddir=`pwd`;;
11576 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11577 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11578 esac;;
11579 esac
11580 case $ac_abs_builddir in
11581 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11583 case ${ac_top_builddir}. in
11584 .) ac_abs_top_builddir=$ac_abs_builddir;;
11585 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11586 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11587 esac;;
11588 esac
11589 case $ac_abs_builddir in
11590 .) ac_abs_srcdir=$ac_srcdir;;
11592 case $ac_srcdir in
11593 .) ac_abs_srcdir=$ac_abs_builddir;;
11594 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11595 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11596 esac;;
11597 esac
11598 case $ac_abs_builddir in
11599 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11601 case $ac_top_srcdir in
11602 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11603 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11604 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11605 esac;;
11606 esac
11609 case $INSTALL in
11610 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11611 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11612 esac
11614 if test x"$ac_file" != x-; then
11615 { echo "$as_me:$LINENO: creating $ac_file" >&5
11616 echo "$as_me: creating $ac_file" >&6;}
11617 rm -f "$ac_file"
11619 # Let's still pretend it is `configure' which instantiates (i.e., don't
11620 # use $as_me), people would be surprised to read:
11621 # /* config.h. Generated by config.status. */
11622 if test x"$ac_file" = x-; then
11623 configure_input=
11624 else
11625 configure_input="$ac_file. "
11627 configure_input=$configure_input"Generated from `echo $ac_file_in |
11628 sed 's,.*/,,'` by configure."
11630 # First look for the input files in the build tree, otherwise in the
11631 # src tree.
11632 ac_file_inputs=`IFS=:
11633 for f in $ac_file_in; do
11634 case $f in
11635 -) echo $tmp/stdin ;;
11636 [\\/$]*)
11637 # Absolute (can't be DOS-style, as IFS=:)
11638 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11639 echo "$as_me: error: cannot find input file: $f" >&2;}
11640 { (exit 1); exit 1; }; }
11641 echo "$f";;
11642 *) # Relative
11643 if test -f "$f"; then
11644 # Build tree
11645 echo "$f"
11646 elif test -f "$srcdir/$f"; then
11647 # Source tree
11648 echo "$srcdir/$f"
11649 else
11650 # /dev/null tree
11651 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11652 echo "$as_me: error: cannot find input file: $f" >&2;}
11653 { (exit 1); exit 1; }; }
11654 fi;;
11655 esac
11656 done` || { (exit 1); exit 1; }
11657 _ACEOF
11658 cat >>$CONFIG_STATUS <<_ACEOF
11659 sed "$ac_vpsub
11660 $extrasub
11661 _ACEOF
11662 cat >>$CONFIG_STATUS <<\_ACEOF
11664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11665 s,@configure_input@,$configure_input,;t t
11666 s,@srcdir@,$ac_srcdir,;t t
11667 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11668 s,@top_srcdir@,$ac_top_srcdir,;t t
11669 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11670 s,@builddir@,$ac_builddir,;t t
11671 s,@abs_builddir@,$ac_abs_builddir,;t t
11672 s,@top_builddir@,$ac_top_builddir,;t t
11673 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11674 s,@INSTALL@,$ac_INSTALL,;t t
11675 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11676 rm -f $tmp/stdin
11677 if test x"$ac_file" != x-; then
11678 mv $tmp/out $ac_file
11679 else
11680 cat $tmp/out
11681 rm -f $tmp/out
11684 done
11685 _ACEOF
11686 cat >>$CONFIG_STATUS <<\_ACEOF
11689 # CONFIG_HEADER section.
11692 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11693 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11695 # ac_d sets the value in "#define NAME VALUE" lines.
11696 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11697 ac_dB='[ ].*$,\1#\2'
11698 ac_dC=' '
11699 ac_dD=',;t'
11700 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11701 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11702 ac_uB='$,\1#\2define\3'
11703 ac_uC=' '
11704 ac_uD=',;t'
11706 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11708 case $ac_file in
11709 - | *:- | *:-:* ) # input from stdin
11710 cat >$tmp/stdin
11711 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11712 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11713 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11715 * ) ac_file_in=$ac_file.in ;;
11716 esac
11718 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11719 echo "$as_me: creating $ac_file" >&6;}
11721 # First look for the input files in the build tree, otherwise in the
11722 # src tree.
11723 ac_file_inputs=`IFS=:
11724 for f in $ac_file_in; do
11725 case $f in
11726 -) echo $tmp/stdin ;;
11727 [\\/$]*)
11728 # Absolute (can't be DOS-style, as IFS=:)
11729 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11730 echo "$as_me: error: cannot find input file: $f" >&2;}
11731 { (exit 1); exit 1; }; }
11732 # Do quote $f, to prevent DOS paths from being IFS'd.
11733 echo "$f";;
11734 *) # Relative
11735 if test -f "$f"; then
11736 # Build tree
11737 echo "$f"
11738 elif test -f "$srcdir/$f"; then
11739 # Source tree
11740 echo "$srcdir/$f"
11741 else
11742 # /dev/null tree
11743 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11744 echo "$as_me: error: cannot find input file: $f" >&2;}
11745 { (exit 1); exit 1; }; }
11746 fi;;
11747 esac
11748 done` || { (exit 1); exit 1; }
11749 # Remove the trailing spaces.
11750 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11752 _ACEOF
11754 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11755 # `conftest.undefs', that substitutes the proper values into
11756 # config.h.in to produce config.h. The first handles `#define'
11757 # templates, and the second `#undef' templates.
11758 # And first: Protect against being on the right side of a sed subst in
11759 # config.status. Protect against being in an unquoted here document
11760 # in config.status.
11761 rm -f conftest.defines conftest.undefs
11762 # Using a here document instead of a string reduces the quoting nightmare.
11763 # Putting comments in sed scripts is not portable.
11765 # `end' is used to avoid that the second main sed command (meant for
11766 # 0-ary CPP macros) applies to n-ary macro definitions.
11767 # See the Autoconf documentation for `clear'.
11768 cat >confdef2sed.sed <<\_ACEOF
11769 s/[\\&,]/\\&/g
11770 s,[\\$`],\\&,g
11771 t clear
11772 : clear
11773 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11774 t end
11775 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11776 : end
11777 _ACEOF
11778 # If some macros were called several times there might be several times
11779 # the same #defines, which is useless. Nevertheless, we may not want to
11780 # sort them, since we want the *last* AC-DEFINE to be honored.
11781 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11782 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11783 rm -f confdef2sed.sed
11785 # This sed command replaces #undef with comments. This is necessary, for
11786 # example, in the case of _POSIX_SOURCE, which is predefined and required
11787 # on some systems where configure will not decide to define it.
11788 cat >>conftest.undefs <<\_ACEOF
11789 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11790 _ACEOF
11792 # Break up conftest.defines because some shells have a limit on the size
11793 # of here documents, and old seds have small limits too (100 cmds).
11794 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11795 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11796 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11797 echo ' :' >>$CONFIG_STATUS
11798 rm -f conftest.tail
11799 while grep . conftest.defines >/dev/null
11801 # Write a limited-size here document to $tmp/defines.sed.
11802 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11803 # Speed up: don't consider the non `#define' lines.
11804 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11805 # Work around the forget-to-reset-the-flag bug.
11806 echo 't clr' >>$CONFIG_STATUS
11807 echo ': clr' >>$CONFIG_STATUS
11808 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11809 echo 'CEOF
11810 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11811 rm -f $tmp/in
11812 mv $tmp/out $tmp/in
11813 ' >>$CONFIG_STATUS
11814 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11815 rm -f conftest.defines
11816 mv conftest.tail conftest.defines
11817 done
11818 rm -f conftest.defines
11819 echo ' fi # grep' >>$CONFIG_STATUS
11820 echo >>$CONFIG_STATUS
11822 # Break up conftest.undefs because some shells have a limit on the size
11823 # of here documents, and old seds have small limits too (100 cmds).
11824 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11825 rm -f conftest.tail
11826 while grep . conftest.undefs >/dev/null
11828 # Write a limited-size here document to $tmp/undefs.sed.
11829 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11830 # Speed up: don't consider the non `#undef'
11831 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11832 # Work around the forget-to-reset-the-flag bug.
11833 echo 't clr' >>$CONFIG_STATUS
11834 echo ': clr' >>$CONFIG_STATUS
11835 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11836 echo 'CEOF
11837 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11838 rm -f $tmp/in
11839 mv $tmp/out $tmp/in
11840 ' >>$CONFIG_STATUS
11841 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11842 rm -f conftest.undefs
11843 mv conftest.tail conftest.undefs
11844 done
11845 rm -f conftest.undefs
11847 cat >>$CONFIG_STATUS <<\_ACEOF
11848 # Let's still pretend it is `configure' which instantiates (i.e., don't
11849 # use $as_me), people would be surprised to read:
11850 # /* config.h. Generated by config.status. */
11851 if test x"$ac_file" = x-; then
11852 echo "/* Generated by configure. */" >$tmp/config.h
11853 else
11854 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11856 cat $tmp/in >>$tmp/config.h
11857 rm -f $tmp/in
11858 if test x"$ac_file" != x-; then
11859 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11860 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11861 echo "$as_me: $ac_file is unchanged" >&6;}
11862 else
11863 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11864 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11865 X"$ac_file" : 'X\(//\)[^/]' \| \
11866 X"$ac_file" : 'X\(//\)$' \| \
11867 X"$ac_file" : 'X\(/\)' \| \
11868 . : '\(.\)' 2>/dev/null ||
11869 echo X"$ac_file" |
11870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11872 /^X\(\/\/\)$/{ s//\1/; q; }
11873 /^X\(\/\).*/{ s//\1/; q; }
11874 s/.*/./; q'`
11875 { if $as_mkdir_p; then
11876 mkdir -p "$ac_dir"
11877 else
11878 as_dir="$ac_dir"
11879 as_dirs=
11880 while test ! -d "$as_dir"; do
11881 as_dirs="$as_dir $as_dirs"
11882 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11883 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11884 X"$as_dir" : 'X\(//\)[^/]' \| \
11885 X"$as_dir" : 'X\(//\)$' \| \
11886 X"$as_dir" : 'X\(/\)' \| \
11887 . : '\(.\)' 2>/dev/null ||
11888 echo X"$as_dir" |
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 done
11895 test ! -n "$as_dirs" || mkdir $as_dirs
11896 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11897 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11898 { (exit 1); exit 1; }; }; }
11900 rm -f $ac_file
11901 mv $tmp/config.h $ac_file
11903 else
11904 cat $tmp/config.h
11905 rm -f $tmp/config.h
11907 done
11908 _ACEOF
11909 cat >>$CONFIG_STATUS <<\_ACEOF
11912 # CONFIG_COMMANDS section.
11914 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11915 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11916 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11917 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11918 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11919 X"$ac_dest" : 'X\(//\)[^/]' \| \
11920 X"$ac_dest" : 'X\(//\)$' \| \
11921 X"$ac_dest" : 'X\(/\)' \| \
11922 . : '\(.\)' 2>/dev/null ||
11923 echo X"$ac_dest" |
11924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11926 /^X\(\/\/\)$/{ s//\1/; q; }
11927 /^X\(\/\).*/{ s//\1/; q; }
11928 s/.*/./; q'`
11929 { if $as_mkdir_p; then
11930 mkdir -p "$ac_dir"
11931 else
11932 as_dir="$ac_dir"
11933 as_dirs=
11934 while test ! -d "$as_dir"; do
11935 as_dirs="$as_dir $as_dirs"
11936 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11937 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11938 X"$as_dir" : 'X\(//\)[^/]' \| \
11939 X"$as_dir" : 'X\(//\)$' \| \
11940 X"$as_dir" : 'X\(/\)' \| \
11941 . : '\(.\)' 2>/dev/null ||
11942 echo X"$as_dir" |
11943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11945 /^X\(\/\/\)$/{ s//\1/; q; }
11946 /^X\(\/\).*/{ s//\1/; q; }
11947 s/.*/./; q'`
11948 done
11949 test ! -n "$as_dirs" || mkdir $as_dirs
11950 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11951 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11952 { (exit 1); exit 1; }; }; }
11954 ac_builddir=.
11956 if test "$ac_dir" != .; then
11957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11958 # A "../" for each directory in $ac_dir_suffix.
11959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11960 else
11961 ac_dir_suffix= ac_top_builddir=
11964 case $srcdir in
11965 .) # No --srcdir option. We are building in place.
11966 ac_srcdir=.
11967 if test -z "$ac_top_builddir"; then
11968 ac_top_srcdir=.
11969 else
11970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11971 fi ;;
11972 [\\/]* | ?:[\\/]* ) # Absolute path.
11973 ac_srcdir=$srcdir$ac_dir_suffix;
11974 ac_top_srcdir=$srcdir ;;
11975 *) # Relative path.
11976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11978 esac
11980 # Do not use `cd foo && pwd` to compute absolute paths, because
11981 # the directories may not exist.
11982 case `pwd` in
11983 .) ac_abs_builddir="$ac_dir";;
11985 case "$ac_dir" in
11986 .) ac_abs_builddir=`pwd`;;
11987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11988 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11989 esac;;
11990 esac
11991 case $ac_abs_builddir in
11992 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11994 case ${ac_top_builddir}. in
11995 .) ac_abs_top_builddir=$ac_abs_builddir;;
11996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11998 esac;;
11999 esac
12000 case $ac_abs_builddir in
12001 .) ac_abs_srcdir=$ac_srcdir;;
12003 case $ac_srcdir in
12004 .) ac_abs_srcdir=$ac_abs_builddir;;
12005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12007 esac;;
12008 esac
12009 case $ac_abs_builddir in
12010 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12012 case $ac_top_srcdir in
12013 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12016 esac;;
12017 esac
12020 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12021 echo "$as_me: executing $ac_dest commands" >&6;}
12022 case $ac_dest in
12023 default-1 )
12024 # Only add multilib support code if we just rebuilt the top-level
12025 # Makefile.
12026 case " $CONFIG_FILES " in
12027 *" Makefile "*)
12028 ac_file=Makefile . ${multi_basedir}/config-ml.in
12030 esac ;;
12031 libtool )
12033 # See if we are running on zsh, and set the options which allow our
12034 # commands through without removal of \ escapes.
12035 if test -n "${ZSH_VERSION+set}" ; then
12036 setopt NO_GLOB_SUBST
12039 cfgfile="${ofile}T"
12040 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12041 $RM "$cfgfile"
12043 cat <<_LT_EOF >> "$cfgfile"
12044 #! $SHELL
12046 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12047 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12049 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12051 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12052 # 2006, 2007 Free Software Foundation, Inc.
12054 # This file is part of GNU Libtool:
12055 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12057 # This program is free software; you can redistribute it and/or modify
12058 # it under the terms of the GNU General Public License as published by
12059 # the Free Software Foundation; either version 2 of the License, or
12060 # (at your option) any later version.
12062 # This program is distributed in the hope that it will be useful, but
12063 # WITHOUT ANY WARRANTY; without even the implied warranty of
12064 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12065 # General Public License for more details.
12067 # You should have received a copy of the GNU General Public License
12068 # along with this program; if not, a copy can be downloaded from
12069 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12070 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12071 # MA 02110-1301, USA.
12073 # As a special exception to the GNU General Public License, if you
12074 # distribute this file as part of a program that contains a
12075 # configuration script generated by Autoconf, you may include it under
12076 # the same distribution terms that you use for the rest of that program.
12079 # The names of the tagged configurations supported by this script.
12080 available_tags=""
12082 # ### BEGIN LIBTOOL CONFIG
12084 # Assembler program.
12085 AS=$AS
12087 # DLL creation program.
12088 DLLTOOL=$DLLTOOL
12090 # Object dumper program.
12091 OBJDUMP=$OBJDUMP
12093 # Which release of libtool.m4 was used?
12094 macro_version=$macro_version
12095 macro_revision=$macro_revision
12097 # Whether or not to build shared libraries.
12098 build_libtool_libs=$enable_shared
12100 # Whether or not to build static libraries.
12101 build_old_libs=$enable_static
12103 # What type of objects to build.
12104 pic_mode=$pic_mode
12106 # Whether or not to optimize for fast installation.
12107 fast_install=$enable_fast_install
12109 # The host system.
12110 host_alias=$host_alias
12111 host=$host
12112 host_os=$host_os
12114 # The build system.
12115 build_alias=$build_alias
12116 build=$build
12117 build_os=$build_os
12119 # A sed program that does not truncate output.
12120 SED=$lt_SED
12122 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12123 Xsed="\$SED -e 1s/^X//"
12125 # A grep program that handles long lines.
12126 GREP=$lt_GREP
12128 # An ERE matcher.
12129 EGREP=$lt_EGREP
12131 # A literal string matcher.
12132 FGREP=$lt_FGREP
12134 # A BSD- or MS-compatible name lister.
12135 NM=$lt_NM
12137 # Whether we need soft or hard links.
12138 LN_S=$lt_LN_S
12140 # What is the maximum length of a command?
12141 max_cmd_len=$max_cmd_len
12143 # Object file suffix (normally "o").
12144 objext=$ac_objext
12146 # Executable file suffix (normally "").
12147 exeext=$exeext
12149 # whether the shell understands "unset".
12150 lt_unset=$lt_unset
12152 # turn spaces into newlines.
12153 SP2NL=$lt_lt_SP2NL
12155 # turn newlines into spaces.
12156 NL2SP=$lt_lt_NL2SP
12158 # How to create reloadable object files.
12159 reload_flag=$lt_reload_flag
12160 reload_cmds=$lt_reload_cmds
12162 # Method to check whether dependent libraries are shared objects.
12163 deplibs_check_method=$lt_deplibs_check_method
12165 # Command to use when deplibs_check_method == "file_magic".
12166 file_magic_cmd=$lt_file_magic_cmd
12168 # The archiver.
12169 AR=$lt_AR
12170 AR_FLAGS=$lt_AR_FLAGS
12172 # A symbol stripping program.
12173 STRIP=$lt_STRIP
12175 # Commands used to install an old-style archive.
12176 RANLIB=$lt_RANLIB
12177 old_postinstall_cmds=$lt_old_postinstall_cmds
12178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12180 # A C compiler.
12181 LTCC=$lt_CC
12183 # LTCC compiler flags.
12184 LTCFLAGS=$lt_CFLAGS
12186 # Take the output of nm and produce a listing of raw symbols and C names.
12187 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12189 # Transform the output of nm in a proper C declaration.
12190 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12192 # Transform the output of nm in a C name address pair.
12193 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12195 # The name of the directory that contains temporary libtool files.
12196 objdir=$objdir
12198 # Shell to use when invoking shell scripts.
12199 SHELL=$lt_SHELL
12201 # An echo program that does not interpret backslashes.
12202 ECHO=$lt_ECHO
12204 # Used to examine libraries when file_magic_cmd begins with "file".
12205 MAGIC_CMD=$MAGIC_CMD
12207 # Must we lock files when doing compilation?
12208 need_locks=$lt_need_locks
12210 # Old archive suffix (normally "a").
12211 libext=$libext
12213 # Shared library suffix (normally ".so").
12214 shrext_cmds=$lt_shrext_cmds
12216 # The commands to extract the exported symbol list from a shared archive.
12217 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12219 # Variables whose values should be saved in libtool wrapper scripts and
12220 # restored at link time.
12221 variables_saved_for_relink=$lt_variables_saved_for_relink
12223 # Do we need the "lib" prefix for modules?
12224 need_lib_prefix=$need_lib_prefix
12226 # Do we need a version for libraries?
12227 need_version=$need_version
12229 # Library versioning type.
12230 version_type=$version_type
12232 # Shared library runtime path variable.
12233 runpath_var=$runpath_var
12235 # Shared library path variable.
12236 shlibpath_var=$shlibpath_var
12238 # Is shlibpath searched before the hard-coded library search path?
12239 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12241 # Format of library name prefix.
12242 libname_spec=$lt_libname_spec
12244 # List of archive names. First name is the real one, the rest are links.
12245 # The last name is the one that the linker finds with -lNAME
12246 library_names_spec=$lt_library_names_spec
12248 # The coded name of the library, if different from the real name.
12249 soname_spec=$lt_soname_spec
12251 # Command to use after installation of a shared archive.
12252 postinstall_cmds=$lt_postinstall_cmds
12254 # Command to use after uninstallation of a shared archive.
12255 postuninstall_cmds=$lt_postuninstall_cmds
12257 # Commands used to finish a libtool library installation in a directory.
12258 finish_cmds=$lt_finish_cmds
12260 # As "finish_cmds", except a single script fragment to be evaled but
12261 # not shown.
12262 finish_eval=$lt_finish_eval
12264 # Whether we should hardcode library paths into libraries.
12265 hardcode_into_libs=$hardcode_into_libs
12267 # Compile-time system search path for libraries.
12268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12270 # Run-time system search path for libraries.
12271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12273 # Whether dlopen is supported.
12274 dlopen_support=$enable_dlopen
12276 # Whether dlopen of programs is supported.
12277 dlopen_self=$enable_dlopen_self
12279 # Whether dlopen of statically linked programs is supported.
12280 dlopen_self_static=$enable_dlopen_self_static
12282 # Commands to strip libraries.
12283 old_striplib=$lt_old_striplib
12284 striplib=$lt_striplib
12287 # The linker used to build libraries.
12288 LD=$lt_LD
12290 # Commands used to build an old-style archive.
12291 old_archive_cmds=$lt_old_archive_cmds
12293 # A language specific compiler.
12294 CC=$lt_compiler
12296 # Is the compiler the GNU compiler?
12297 with_gcc=$GCC
12299 # Compiler flag to turn off builtin functions.
12300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12302 # How to pass a linker flag through the compiler.
12303 wl=$lt_lt_prog_compiler_wl
12305 # Additional compiler flags for building library objects.
12306 pic_flag=$lt_lt_prog_compiler_pic
12308 # Compiler flag to prevent dynamic linking.
12309 link_static_flag=$lt_lt_prog_compiler_static
12311 # Does compiler simultaneously support -c and -o options?
12312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12314 # Whether or not to add -lc for building shared libraries.
12315 build_libtool_need_lc=$archive_cmds_need_lc
12317 # Whether or not to disallow shared libs when runtime libs are static.
12318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12320 # Compiler flag to allow reflexive dlopens.
12321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12323 # Compiler flag to generate shared objects directly from archives.
12324 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12326 # Whether the compiler copes with passing no objects directly.
12327 compiler_needs_object=$lt_compiler_needs_object
12329 # Create an old-style archive from a shared archive.
12330 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12332 # Create a temporary old-style archive to link instead of a shared archive.
12333 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12335 # Commands used to build a shared archive.
12336 archive_cmds=$lt_archive_cmds
12337 archive_expsym_cmds=$lt_archive_expsym_cmds
12339 # Commands used to build a loadable module if different from building
12340 # a shared archive.
12341 module_cmds=$lt_module_cmds
12342 module_expsym_cmds=$lt_module_expsym_cmds
12344 # Whether we are building with GNU ld or not.
12345 with_gnu_ld=$lt_with_gnu_ld
12347 # Flag that allows shared libraries with undefined symbols to be built.
12348 allow_undefined_flag=$lt_allow_undefined_flag
12350 # Flag that enforces no undefined symbols.
12351 no_undefined_flag=$lt_no_undefined_flag
12353 # Flag to hardcode \$libdir into a binary during linking.
12354 # This must work even if \$libdir does not exist
12355 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12357 # If ld is used when linking, flag to hardcode \$libdir into a binary
12358 # during linking. This must work even if \$libdir does not exist.
12359 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12361 # Whether we need a single "-rpath" flag with a separated argument.
12362 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12364 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12365 # DIR into the resulting binary.
12366 hardcode_direct=$hardcode_direct
12368 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12369 # DIR into the resulting binary and the resulting library dependency is
12370 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12371 # library is relocated.
12372 hardcode_direct_absolute=$hardcode_direct_absolute
12374 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12375 # into the resulting binary.
12376 hardcode_minus_L=$hardcode_minus_L
12378 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12379 # into the resulting binary.
12380 hardcode_shlibpath_var=$hardcode_shlibpath_var
12382 # Set to "yes" if building a shared library automatically hardcodes DIR
12383 # into the library and all subsequent libraries and executables linked
12384 # against it.
12385 hardcode_automatic=$hardcode_automatic
12387 # Set to yes if linker adds runtime paths of dependent libraries
12388 # to runtime path list.
12389 inherit_rpath=$inherit_rpath
12391 # Whether libtool must link a program against all its dependency libraries.
12392 link_all_deplibs=$link_all_deplibs
12394 # Fix the shell variable \$srcfile for the compiler.
12395 fix_srcfile_path=$lt_fix_srcfile_path
12397 # Set to "yes" if exported symbols are required.
12398 always_export_symbols=$always_export_symbols
12400 # The commands to list exported symbols.
12401 export_symbols_cmds=$lt_export_symbols_cmds
12403 # Symbols that should not be listed in the preloaded symbols.
12404 exclude_expsyms=$lt_exclude_expsyms
12406 # Symbols that must always be exported.
12407 include_expsyms=$lt_include_expsyms
12409 # Commands necessary for linking programs (against libraries) with templates.
12410 prelink_cmds=$lt_prelink_cmds
12412 # Specify filename containing input files.
12413 file_list_spec=$lt_file_list_spec
12415 # How to hardcode a shared library path into an executable.
12416 hardcode_action=$hardcode_action
12418 # ### END LIBTOOL CONFIG
12420 _LT_EOF
12422 case $host_os in
12423 aix3*)
12424 cat <<\_LT_EOF >> "$cfgfile"
12425 # AIX sometimes has problems with the GCC collect2 program. For some
12426 # reason, if we set the COLLECT_NAMES environment variable, the problems
12427 # vanish in a puff of smoke.
12428 if test "X${COLLECT_NAMES+set}" != Xset; then
12429 COLLECT_NAMES=
12430 export COLLECT_NAMES
12432 _LT_EOF
12434 esac
12437 ltmain="$ac_aux_dir/ltmain.sh"
12440 # We use sed instead of cat because bash on DJGPP gets confused if
12441 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12442 # text mode, it properly converts lines to CR/LF. This bash problem
12443 # is reportedly fixed, but why not run on old versions too?
12444 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12445 || (rm -f "$cfgfile"; exit 1)
12447 case $xsi_shell in
12448 yes)
12449 cat << \_LT_EOF >> "$cfgfile"
12450 # func_dirname file append nondir_replacement
12451 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12452 # otherwise set result to NONDIR_REPLACEMENT.
12453 func_dirname ()
12455 case ${1} in
12456 */*) func_dirname_result="${1%/*}${2}" ;;
12457 * ) func_dirname_result="${3}" ;;
12458 esac
12461 # func_basename file
12462 func_basename ()
12464 func_basename_result="${1##*/}"
12467 # func_stripname prefix suffix name
12468 # strip PREFIX and SUFFIX off of NAME.
12469 # PREFIX and SUFFIX must not contain globbing or regex special
12470 # characters, hashes, percent signs, but SUFFIX may contain a leading
12471 # dot (in which case that matches only a dot).
12472 func_stripname ()
12474 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12475 # positional parameters, so assign one to ordinary parameter first.
12476 func_stripname_result=${3}
12477 func_stripname_result=${func_stripname_result#"${1}"}
12478 func_stripname_result=${func_stripname_result%"${2}"}
12481 # func_opt_split
12482 func_opt_split ()
12484 func_opt_split_opt=${1%%=*}
12485 func_opt_split_arg=${1#*=}
12488 # func_lo2o object
12489 func_lo2o ()
12491 case ${1} in
12492 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12493 *) func_lo2o_result=${1} ;;
12494 esac
12496 _LT_EOF
12498 *) # Bourne compatible functions.
12499 cat << \_LT_EOF >> "$cfgfile"
12500 # func_dirname file append nondir_replacement
12501 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12502 # otherwise set result to NONDIR_REPLACEMENT.
12503 func_dirname ()
12505 # Extract subdirectory from the argument.
12506 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12507 if test "X$func_dirname_result" = "X${1}"; then
12508 func_dirname_result="${3}"
12509 else
12510 func_dirname_result="$func_dirname_result${2}"
12514 # func_basename file
12515 func_basename ()
12517 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12520 # func_stripname prefix suffix name
12521 # strip PREFIX and SUFFIX off of NAME.
12522 # PREFIX and SUFFIX must not contain globbing or regex special
12523 # characters, hashes, percent signs, but SUFFIX may contain a leading
12524 # dot (in which case that matches only a dot).
12525 # func_strip_suffix prefix name
12526 func_stripname ()
12528 case ${2} in
12529 .*) func_stripname_result=`$ECHO "X${3}" \
12530 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12531 *) func_stripname_result=`$ECHO "X${3}" \
12532 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12533 esac
12536 # sed scripts:
12537 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12538 my_sed_long_arg='1s/^-[^=]*=//'
12540 # func_opt_split
12541 func_opt_split ()
12543 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12544 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12547 # func_lo2o object
12548 func_lo2o ()
12550 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12552 _LT_EOF
12553 esac
12555 case $lt_shell_append in
12556 yes)
12557 cat << \_LT_EOF >> "$cfgfile"
12559 # func_append var value
12560 # Append VALUE to the end of shell variable VAR.
12561 func_append ()
12563 eval "$1+=\$2"
12565 _LT_EOF
12568 cat << \_LT_EOF >> "$cfgfile"
12570 # func_append var value
12571 # Append VALUE to the end of shell variable VAR.
12572 func_append ()
12574 eval "$1=\$$1\$2"
12576 _LT_EOF
12578 esac
12581 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12582 || (rm -f "$cfgfile"; exit 1)
12584 mv -f "$cfgfile" "$ofile" ||
12585 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12586 chmod +x "$ofile"
12589 esac
12590 done
12591 _ACEOF
12593 cat >>$CONFIG_STATUS <<\_ACEOF
12595 { (exit 0); exit 0; }
12596 _ACEOF
12597 chmod +x $CONFIG_STATUS
12598 ac_clean_files=$ac_clean_files_save
12601 # configure is writing to config.log, and then calls config.status.
12602 # config.status does its own redirection, appending to config.log.
12603 # Unfortunately, on DOS this fails, as config.log is still kept open
12604 # by configure, so config.status won't be able to write to it; its
12605 # output is simply discarded. So we exec the FD to /dev/null,
12606 # effectively closing config.log, so it can be properly (re)opened and
12607 # appended to by config.status. When coming back to configure, we
12608 # need to make the FD available again.
12609 if test "$no_create" != yes; then
12610 ac_cs_success=:
12611 ac_config_status_args=
12612 test "$silent" = yes &&
12613 ac_config_status_args="$ac_config_status_args --quiet"
12614 exec 5>/dev/null
12615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12616 exec 5>>config.log
12617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12618 # would make configure fail if this is the last instruction.
12619 $ac_cs_success || { (exit 1); exit 1; }