| 46 |
|
|
| 47 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 48 |
# if CDPATH is set. |
# if CDPATH is set. |
| 49 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 50 |
|
|
| 51 |
if test -z "$ECHO"; then |
if test -z "$ECHO"; then |
| 52 |
if test "X${echo_test_string+set}" != Xset; then |
if test "X${echo_test_string+set}" != Xset; then |
| 53 |
# find a string as large as possible, as long as the shell can cope with it |
# find a string as large as possible, as long as the shell can cope with it |
| 54 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 55 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 56 |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 57 |
echo_test_string="`eval $cmd`" && |
echo_test_string=`eval $cmd` && |
| 58 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 59 |
then |
then |
| 60 |
break |
break |
| 159 |
|
|
| 160 |
|
|
| 161 |
|
|
| 162 |
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` |
tagnames=${tagnames+${tagnames},}CXX |
| 163 |
|
|
| 164 |
tagnames=`echo "$tagnames,F77" | sed 's/^,//'` |
tagnames=${tagnames+${tagnames},}F77 |
| 165 |
|
|
| 166 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 167 |
as_expr=expr |
as_expr=expr |
| 3093 |
done |
done |
| 3094 |
done |
done |
| 3095 |
done |
done |
| 3096 |
|
IFS=$as_save_IFS |
| 3097 |
lt_ac_max=0 |
lt_ac_max=0 |
| 3098 |
lt_ac_count=0 |
lt_ac_count=0 |
| 3099 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3100 |
# along with /bin/sed that truncates output. |
# along with /bin/sed that truncates output. |
| 3101 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3102 |
test ! -f $lt_ac_sed && break |
test ! -f $lt_ac_sed && continue |
| 3103 |
cat /dev/null > conftest.in |
cat /dev/null > conftest.in |
| 3104 |
lt_ac_count=0 |
lt_ac_count=0 |
| 3105 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3124 |
fi |
fi |
| 3125 |
done |
done |
| 3126 |
done |
done |
|
SED=$lt_cv_path_SED |
|
| 3127 |
|
|
| 3128 |
fi |
fi |
| 3129 |
|
|
| 3130 |
|
SED=$lt_cv_path_SED |
| 3131 |
|
|
| 3132 |
echo "$as_me:$LINENO: result: $SED" >&5 |
echo "$as_me:$LINENO: result: $SED" >&5 |
| 3133 |
echo "${ECHO_T}$SED" >&6 |
echo "${ECHO_T}$SED" >&6 |
| 3134 |
|
|
| 3171 |
# Accept absolute paths. |
# Accept absolute paths. |
| 3172 |
[\\/]* | ?:[\\/]*) |
[\\/]* | ?:[\\/]*) |
| 3173 |
re_direlt='/[^/][^/]*/\.\./' |
re_direlt='/[^/][^/]*/\.\./' |
| 3174 |
# Canonicalize the path of ld |
# Canonicalize the pathname of ld |
| 3175 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 3176 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3177 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 3205 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3206 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3207 |
# Check to see if the program is GNU ld. I'd rather use --version, |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 3208 |
# but apparently some GNU ld's only accept -v. |
# but apparently some variants of GNU ld only accept -v. |
| 3209 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 3210 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3211 |
*GNU* | *'with BFD'*) |
*GNU* | *'with BFD'*) |
| 3239 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3240 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3241 |
else |
else |
| 3242 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 3243 |
case `"$LD" -v 2>&1 </dev/null` in |
case `$LD -v 2>&1 </dev/null` in |
| 3244 |
*GNU* | *'with BFD'*) |
*GNU* | *'with BFD'*) |
| 3245 |
lt_cv_prog_gnu_ld=yes |
lt_cv_prog_gnu_ld=yes |
| 3246 |
;; |
;; |
| 3269 |
*) reload_flag=" $reload_flag" ;; |
*) reload_flag=" $reload_flag" ;; |
| 3270 |
esac |
esac |
| 3271 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3272 |
|
case $host_os in |
| 3273 |
|
darwin*) |
| 3274 |
|
if test "$GCC" = yes; then |
| 3275 |
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 3276 |
|
else |
| 3277 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3278 |
|
fi |
| 3279 |
|
;; |
| 3280 |
|
esac |
| 3281 |
|
|
| 3282 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3283 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3288 |
# Let the user override the test. |
# Let the user override the test. |
| 3289 |
lt_cv_path_NM="$NM" |
lt_cv_path_NM="$NM" |
| 3290 |
else |
else |
| 3291 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
lt_nm_to_check="${ac_tool_prefix}nm" |
| 3292 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 3293 |
IFS="$lt_save_ifs" |
lt_nm_to_check="$lt_nm_to_check nm" |
| 3294 |
test -z "$ac_dir" && ac_dir=. |
fi |
| 3295 |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
for lt_tmp_nm in $lt_nm_to_check; do |
| 3296 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3297 |
# Check to see if the nm accepts a BSD-compat flag. |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 3298 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
IFS="$lt_save_ifs" |
| 3299 |
# nm: unknown option "B" ignored |
test -z "$ac_dir" && ac_dir=. |
| 3300 |
# Tru64's nm complains that /dev/null is an invalid object file |
tmp_nm="$ac_dir/$lt_tmp_nm" |
| 3301 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3302 |
*/dev/null* | *'Invalid file or object type'*) |
# Check to see if the nm accepts a BSD-compat flag. |
| 3303 |
lt_cv_path_NM="$tmp_nm -B" |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3304 |
break |
# nm: unknown option "B" ignored |
| 3305 |
;; |
# Tru64's nm complains that /dev/null is an invalid object file |
| 3306 |
*) |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3307 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
*/dev/null* | *'Invalid file or object type'*) |
| 3308 |
*/dev/null*) |
lt_cv_path_NM="$tmp_nm -B" |
|
lt_cv_path_NM="$tmp_nm -p" |
|
| 3309 |
break |
break |
| 3310 |
;; |
;; |
| 3311 |
*) |
*) |
| 3312 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3313 |
continue # so that we can try to find one that supports BSD flags |
*/dev/null*) |
| 3314 |
|
lt_cv_path_NM="$tmp_nm -p" |
| 3315 |
|
break |
| 3316 |
|
;; |
| 3317 |
|
*) |
| 3318 |
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3319 |
|
continue # so that we can try to find one that supports BSD flags |
| 3320 |
|
;; |
| 3321 |
|
esac |
| 3322 |
;; |
;; |
| 3323 |
esac |
esac |
| 3324 |
esac |
fi |
| 3325 |
fi |
done |
| 3326 |
|
IFS="$lt_save_ifs" |
| 3327 |
done |
done |
|
IFS="$lt_save_ifs" |
|
| 3328 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3329 |
fi |
fi |
| 3330 |
fi |
fi |
| 3332 |
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 3333 |
NM="$lt_cv_path_NM" |
NM="$lt_cv_path_NM" |
| 3334 |
|
|
| 3335 |
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
| 3336 |
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 |
| 3337 |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3338 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3339 |
else |
else |
| 3352 |
# whether `pass_all' will *always* work, you probably want this one. |
# whether `pass_all' will *always* work, you probably want this one. |
| 3353 |
|
|
| 3354 |
case $host_os in |
case $host_os in |
| 3355 |
aix4* | aix5*) |
aix[4-9]*) |
| 3356 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
| 3357 |
;; |
;; |
| 3358 |
|
|
| 3360 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
| 3361 |
;; |
;; |
| 3362 |
|
|
| 3363 |
bsdi4*) |
bsdi[45]*) |
| 3364 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3365 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3366 |
lt_cv_file_magic_test_file=/shlib/libc.so |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 3367 |
;; |
;; |
| 3368 |
|
|
| 3369 |
cygwin* | mingw* | pw32*) |
cygwin*) |
| 3370 |
# win32_libid is a shell function defined in ltmain.sh |
# func_win32_libid is a shell function defined in ltmain.sh |
| 3371 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3372 |
lt_cv_file_magic_cmd='win32_libid' |
lt_cv_file_magic_cmd='func_win32_libid' |
| 3373 |
|
;; |
| 3374 |
|
|
| 3375 |
|
mingw* | pw32*) |
| 3376 |
|
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 3377 |
|
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 3378 |
|
# unless we find 'file', for example because we are cross-compiling. |
| 3379 |
|
if ( file / ) >/dev/null 2>&1; then |
| 3380 |
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3381 |
|
lt_cv_file_magic_cmd='func_win32_libid' |
| 3382 |
|
else |
| 3383 |
|
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3384 |
|
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3385 |
|
fi |
| 3386 |
;; |
;; |
| 3387 |
|
|
| 3388 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
|
# this will be overwritten by pass_all, but leave it in just in case |
|
|
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
case "$host_os" in |
|
|
rhapsody* | darwin1.[012]) |
|
|
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
|
|
;; |
|
|
*) # Darwin 1.3 on |
|
|
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
|
|
;; |
|
|
esac |
|
| 3389 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
| 3390 |
;; |
;; |
| 3391 |
|
|
| 3392 |
freebsd*) |
freebsd* | dragonfly*) |
| 3393 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3394 |
case $host_cpu in |
case $host_cpu in |
| 3395 |
i*86 ) |
i*86 ) |
| 3396 |
# Not sure whether the presence of OpenBSD here was a mistake. |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 3397 |
# Let's accept both of them until this is cleared up. |
# Let's accept both of them until this is cleared up. |
| 3398 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 3399 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
| 3400 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3401 |
;; |
;; |
| 3411 |
|
|
| 3412 |
hpux10.20* | hpux11*) |
hpux10.20* | hpux11*) |
| 3413 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
| 3414 |
case "$host_cpu" in |
case $host_cpu in |
| 3415 |
ia64*) |
ia64*) |
| 3416 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3417 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3427 |
esac |
esac |
| 3428 |
;; |
;; |
| 3429 |
|
|
| 3430 |
|
interix[3-9]*) |
| 3431 |
|
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 3432 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 3433 |
|
;; |
| 3434 |
|
|
| 3435 |
irix5* | irix6* | nonstopux*) |
irix5* | irix6* | nonstopux*) |
| 3436 |
case $host_os in |
case $LD in |
| 3437 |
irix5* | nonstopux*) |
*-32|*"-32 ") libmagic=32-bit;; |
| 3438 |
# this will be overridden with pass_all, but let us keep it just in case |
*-n32|*"-n32 ") libmagic=N32;; |
| 3439 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
*-64|*"-64 ") libmagic=64-bit;; |
| 3440 |
;; |
*) libmagic=never-match;; |
|
*) |
|
|
case $LD in |
|
|
*-32|*"-32 ") libmagic=32-bit;; |
|
|
*-n32|*"-n32 ") libmagic=N32;; |
|
|
*-64|*"-64 ") libmagic=64-bit;; |
|
|
*) libmagic=never-match;; |
|
|
esac |
|
|
# this will be overridden with pass_all, but let us keep it just in case |
|
|
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
|
|
;; |
|
| 3441 |
esac |
esac |
|
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
| 3442 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
| 3443 |
;; |
;; |
| 3444 |
|
|
| 3445 |
# This must be Linux ELF. |
# This must be Linux ELF. |
| 3446 |
linux*) |
linux* | k*bsd*-gnu) |
| 3447 |
case $host_cpu in |
lt_cv_deplibs_check_method=pass_all |
|
alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) |
|
|
lt_cv_deplibs_check_method=pass_all ;; |
|
|
*) |
|
|
# glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
esac |
|
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
| 3448 |
;; |
;; |
| 3449 |
|
|
| 3450 |
netbsd*) |
netbsd*) |
| 3461 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3462 |
;; |
;; |
| 3463 |
|
|
| 3464 |
nto-qnx) |
nto-qnx*) |
| 3465 |
lt_cv_deplibs_check_method=unknown |
lt_cv_deplibs_check_method=unknown |
| 3466 |
;; |
;; |
| 3467 |
|
|
| 3468 |
openbsd*) |
openbsd*) |
|
lt_cv_file_magic_cmd=/usr/bin/file |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
| 3469 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3470 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 3471 |
else |
else |
| 3472 |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 3473 |
fi |
fi |
| 3474 |
;; |
;; |
| 3475 |
|
|
| 3476 |
osf3* | osf4* | osf5*) |
osf3* | osf4* | osf5*) |
|
# this will be overridden with pass_all, but let us keep it just in case |
|
|
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
|
lt_cv_file_magic_test_file=/shlib/libc.so |
|
| 3477 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
| 3478 |
;; |
;; |
| 3479 |
|
|
| 3480 |
sco3.2v5*) |
rdos*) |
| 3481 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
| 3482 |
;; |
;; |
| 3483 |
|
|
| 3484 |
solaris*) |
solaris*) |
| 3485 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
|
lt_cv_file_magic_test_file=/lib/libc.so |
|
| 3486 |
;; |
;; |
| 3487 |
|
|
| 3488 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.3*) |
| 3489 |
case $host_vendor in |
case $host_vendor in |
| 3490 |
motorola) |
motorola) |
| 3491 |
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]' |
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]' |
| 3506 |
siemens) |
siemens) |
| 3507 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
| 3508 |
;; |
;; |
| 3509 |
|
pc) |
| 3510 |
|
lt_cv_deplibs_check_method=pass_all |
| 3511 |
|
;; |
| 3512 |
esac |
esac |
| 3513 |
;; |
;; |
| 3514 |
|
|
| 3515 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 3516 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
| 3517 |
;; |
;; |
| 3518 |
esac |
esac |
| 3530 |
# If no C compiler was specified, use CC. |
# If no C compiler was specified, use CC. |
| 3531 |
LTCC=${LTCC-"$CC"} |
LTCC=${LTCC-"$CC"} |
| 3532 |
|
|
| 3533 |
|
# If no C compiler flags were specified, use CFLAGS. |
| 3534 |
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 3535 |
|
|
| 3536 |
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
| 3537 |
compiler=$CC |
compiler=$CC |
| 3538 |
|
|
| 3568 |
;; |
;; |
| 3569 |
*-*-irix6*) |
*-*-irix6*) |
| 3570 |
# Find out which ABI we are using. |
# Find out which ABI we are using. |
| 3571 |
echo '#line 3564 "configure"' > conftest.$ac_ext |
echo '#line 3571 "configure"' > conftest.$ac_ext |
| 3572 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3573 |
(eval $ac_compile) 2>&5 |
(eval $ac_compile) 2>&5 |
| 3574 |
ac_status=$? |
ac_status=$? |
| 3603 |
rm -rf conftest* |
rm -rf conftest* |
| 3604 |
;; |
;; |
| 3605 |
|
|
| 3606 |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 3607 |
|
s390*-*linux*|sparc*-*linux*) |
| 3608 |
# Find out which ABI we are using. |
# Find out which ABI we are using. |
| 3609 |
echo 'int i;' > conftest.$ac_ext |
echo 'int i;' > conftest.$ac_ext |
| 3610 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3612 |
ac_status=$? |
ac_status=$? |
| 3613 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3614 |
(exit $ac_status); }; then |
(exit $ac_status); }; then |
| 3615 |
case "`/usr/bin/file conftest.o`" in |
case `/usr/bin/file conftest.o` in |
| 3616 |
*32-bit*) |
*32-bit*) |
| 3617 |
case $host in |
case $host in |
| 3618 |
|
x86_64-*kfreebsd*-gnu) |
| 3619 |
|
LD="${LD-ld} -m elf_i386_fbsd" |
| 3620 |
|
;; |
| 3621 |
x86_64-*linux*) |
x86_64-*linux*) |
| 3622 |
LD="${LD-ld} -m elf_i386" |
LD="${LD-ld} -m elf_i386" |
| 3623 |
;; |
;; |
| 3624 |
ppc64-*linux*) |
ppc64-*linux*|powerpc64-*linux*) |
| 3625 |
LD="${LD-ld} -m elf32ppclinux" |
LD="${LD-ld} -m elf32ppclinux" |
| 3626 |
;; |
;; |
| 3627 |
s390x-*linux*) |
s390x-*linux*) |
| 3634 |
;; |
;; |
| 3635 |
*64-bit*) |
*64-bit*) |
| 3636 |
case $host in |
case $host in |
| 3637 |
|
x86_64-*kfreebsd*-gnu) |
| 3638 |
|
LD="${LD-ld} -m elf_x86_64_fbsd" |
| 3639 |
|
;; |
| 3640 |
x86_64-*linux*) |
x86_64-*linux*) |
| 3641 |
LD="${LD-ld} -m elf_x86_64" |
LD="${LD-ld} -m elf_x86_64" |
| 3642 |
;; |
;; |
| 3722 |
CFLAGS="$SAVE_CFLAGS" |
CFLAGS="$SAVE_CFLAGS" |
| 3723 |
fi |
fi |
| 3724 |
;; |
;; |
| 3725 |
|
sparc*-*solaris*) |
| 3726 |
|
# Find out which ABI we are using. |
| 3727 |
|
echo 'int i;' > conftest.$ac_ext |
| 3728 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3729 |
|
(eval $ac_compile) 2>&5 |
| 3730 |
|
ac_status=$? |
| 3731 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3732 |
|
(exit $ac_status); }; then |
| 3733 |
|
case `/usr/bin/file conftest.o` in |
| 3734 |
|
*64-bit*) |
| 3735 |
|
case $lt_cv_prog_gnu_ld in |
| 3736 |
|
yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 3737 |
|
*) |
| 3738 |
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 3739 |
|
LD="${LD-ld} -64" |
| 3740 |
|
fi |
| 3741 |
|
;; |
| 3742 |
|
esac |
| 3743 |
|
;; |
| 3744 |
|
esac |
| 3745 |
|
fi |
| 3746 |
|
rm -rf conftest* |
| 3747 |
|
;; |
| 3748 |
|
|
| 3749 |
|
|
| 3750 |
esac |
esac |
| 3751 |
|
|
| 4388 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4389 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4390 |
|
|
| 4391 |
ac_ext=cc |
|
| 4392 |
|
|
| 4393 |
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 4394 |
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 4395 |
|
(test "X$CXX" != "Xg++"))) ; then |
| 4396 |
|
ac_ext=cc |
| 4397 |
ac_cpp='$CXXCPP $CPPFLAGS' |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4398 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4399 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4589 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4590 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4591 |
|
|
| 4592 |
|
fi |
| 4593 |
|
|
| 4594 |
|
|
| 4595 |
ac_ext=f |
ac_ext=f |
| 4596 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 4684 |
|
|
| 4685 |
|
|
| 4686 |
# Provide some information about the compiler. |
# Provide some information about the compiler. |
| 4687 |
echo "$as_me:4642:" \ |
echo "$as_me:4687:" \ |
| 4688 |
"checking for Fortran 77 compiler version" >&5 |
"checking for Fortran 77 compiler version" >&5 |
| 4689 |
ac_compiler=`set X $ac_compile; echo $2` |
ac_compiler=`set X $ac_compile; echo $2` |
| 4690 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4807 |
|
|
| 4808 |
|
|
| 4809 |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
|
|
| 4810 |
# find the maximum length of command line arguments |
# find the maximum length of command line arguments |
| 4811 |
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 4812 |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 4814 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4815 |
else |
else |
| 4816 |
i=0 |
i=0 |
| 4817 |
testring="ABCD" |
teststring="ABCD" |
| 4818 |
|
|
| 4819 |
case $build_os in |
case $build_os in |
| 4820 |
msdosdjgpp*) |
msdosdjgpp*) |
| 4843 |
lt_cv_sys_max_cmd_len=8192; |
lt_cv_sys_max_cmd_len=8192; |
| 4844 |
;; |
;; |
| 4845 |
|
|
| 4846 |
*) |
amigaos*) |
| 4847 |
# If test is not a shell built-in, we'll probably end up computing a |
# On AmigaOS with pdksh, this test takes hours, literally. |
| 4848 |
# maximum length that is only half of the actual maximum length, but |
# So we just punt and use a minimum line length of 8192. |
| 4849 |
# we can't tell. |
lt_cv_sys_max_cmd_len=8192; |
| 4850 |
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
;; |
| 4851 |
= "XX$testring") >/dev/null 2>&1 && |
|
| 4852 |
new_result=`expr "X$testring" : ".*" 2>&1` && |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 4853 |
lt_cv_sys_max_cmd_len=$new_result && |
# This has been around since 386BSD, at least. Likely further. |
| 4854 |
test $i != 17 # 1/2 MB should be enough |
if test -x /sbin/sysctl; then |
| 4855 |
do |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4856 |
i=`expr $i + 1` |
elif test -x /usr/sbin/sysctl; then |
| 4857 |
testring=$testring$testring |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4858 |
done |
else |
| 4859 |
testring= |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4860 |
# Add a significant safety factor because C++ compilers can tack on massive |
fi |
| 4861 |
# amounts of additional arguments before passing them to the linker. |
# And add a safety zone |
| 4862 |
# It appears as though 1/2 is a usable value. |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4863 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4864 |
|
;; |
| 4865 |
|
|
| 4866 |
|
interix*) |
| 4867 |
|
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4868 |
|
lt_cv_sys_max_cmd_len=196608 |
| 4869 |
|
;; |
| 4870 |
|
|
| 4871 |
|
osf*) |
| 4872 |
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4873 |
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4874 |
|
# nice to cause kernel panics so lets avoid the loop below. |
| 4875 |
|
# First set a reasonable default. |
| 4876 |
|
lt_cv_sys_max_cmd_len=16384 |
| 4877 |
|
# |
| 4878 |
|
if test -x /sbin/sysconfig; then |
| 4879 |
|
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4880 |
|
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4881 |
|
esac |
| 4882 |
|
fi |
| 4883 |
|
;; |
| 4884 |
|
sco3.2v5*) |
| 4885 |
|
lt_cv_sys_max_cmd_len=102400 |
| 4886 |
|
;; |
| 4887 |
|
sysv5* | sco5v6* | sysv4.2uw2*) |
| 4888 |
|
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4889 |
|
if test -n "$kargmax"; then |
| 4890 |
|
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4891 |
|
else |
| 4892 |
|
lt_cv_sys_max_cmd_len=32768 |
| 4893 |
|
fi |
| 4894 |
|
;; |
| 4895 |
|
*) |
| 4896 |
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4897 |
|
if test -n "$lt_cv_sys_max_cmd_len"; then |
| 4898 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4899 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4900 |
|
else |
| 4901 |
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4902 |
|
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 4903 |
|
= "XX$teststring") >/dev/null 2>&1 && |
| 4904 |
|
new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 4905 |
|
lt_cv_sys_max_cmd_len=$new_result && |
| 4906 |
|
test $i != 17 # 1/2 MB should be enough |
| 4907 |
|
do |
| 4908 |
|
i=`expr $i + 1` |
| 4909 |
|
teststring=$teststring$teststring |
| 4910 |
|
done |
| 4911 |
|
teststring= |
| 4912 |
|
# Add a significant safety factor because C++ compilers can tack on massive |
| 4913 |
|
# amounts of additional arguments before passing them to the linker. |
| 4914 |
|
# It appears as though 1/2 is a usable value. |
| 4915 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4916 |
|
fi |
| 4917 |
;; |
;; |
| 4918 |
esac |
esac |
| 4919 |
|
|
| 4930 |
|
|
| 4931 |
|
|
| 4932 |
|
|
| 4933 |
|
|
| 4934 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 4935 |
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 4936 |
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 4947 |
# Regexp to match symbols that can be accessed directly from C. |
# Regexp to match symbols that can be accessed directly from C. |
| 4948 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 4949 |
|
|
|
# Transform the above into a raw symbol and a C symbol. |
|
|
symxfrm='\1 \2\3 \3' |
|
|
|
|
| 4950 |
# Transform an extracted symbol line into a proper C declaration |
# Transform an extracted symbol line into a proper C declaration |
| 4951 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 4952 |
|
|
| 4968 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4969 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 4970 |
;; |
;; |
| 4971 |
|
linux* | k*bsd*-gnu) |
| 4972 |
|
if test "$host_cpu" = ia64; then |
| 4973 |
|
symcode='[ABCDGIRSTW]' |
| 4974 |
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4975 |
|
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 4976 |
|
fi |
| 4977 |
|
;; |
| 4978 |
irix* | nonstopux*) |
irix* | nonstopux*) |
| 4979 |
symcode='[BCDEGRST]' |
symcode='[BCDEGRST]' |
| 4980 |
;; |
;; |
| 4981 |
osf*) |
osf*) |
| 4982 |
symcode='[BCDEGQRST]' |
symcode='[BCDEGQRST]' |
| 4983 |
;; |
;; |
| 4984 |
solaris* | sysv5*) |
solaris*) |
| 4985 |
symcode='[BDT]' |
symcode='[BDRT]' |
| 4986 |
|
;; |
| 4987 |
|
sco3.2v5*) |
| 4988 |
|
symcode='[DT]' |
| 4989 |
|
;; |
| 4990 |
|
sysv4.2uw2*) |
| 4991 |
|
symcode='[DT]' |
| 4992 |
|
;; |
| 4993 |
|
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 4994 |
|
symcode='[ABDT]' |
| 4995 |
;; |
;; |
| 4996 |
sysv4) |
sysv4) |
| 4997 |
symcode='[DFNSTU]' |
symcode='[DFNSTU]' |
| 5009 |
# If we're using GNU nm, then use its standard symbol codes. |
# If we're using GNU nm, then use its standard symbol codes. |
| 5010 |
case `$NM -V 2>&1` in |
case `$NM -V 2>&1` in |
| 5011 |
*GNU* | *'with BFD'*) |
*GNU* | *'with BFD'*) |
| 5012 |
symcode='[ABCDGISTW]' ;; |
symcode='[ABCDGIRSTW]' ;; |
| 5013 |
esac |
esac |
| 5014 |
|
|
| 5015 |
# Try without a prefix undercore, then with it. |
# Try without a prefix undercore, then with it. |
| 5016 |
for ac_symprfx in "" "_"; do |
for ac_symprfx in "" "_"; do |
| 5017 |
|
|
| 5018 |
|
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 5019 |
|
symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 5020 |
|
|
| 5021 |
# Write the raw and C identifiers. |
# Write the raw and C identifiers. |
| 5022 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 5023 |
|
|
| 5024 |
# Check to see that the pipe works correctly. |
# Check to see that the pipe works correctly. |
| 5025 |
pipe_works=no |
pipe_works=no |
| 5121 |
echo "$progname: failed program was:" >&5 |
echo "$progname: failed program was:" >&5 |
| 5122 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
| 5123 |
fi |
fi |
| 5124 |
rm -f conftest* conftst* |
rm -rf conftest* conftst* |
| 5125 |
|
|
| 5126 |
# Do not use the global_symbol_pipe unless it works. |
# Do not use the global_symbol_pipe unless it works. |
| 5127 |
if test "$pipe_works" = yes; then |
if test "$pipe_works" = yes; then |
| 5181 |
|
|
| 5182 |
# Sed substitution that helps us do robust quoting. It backslashifies |
# Sed substitution that helps us do robust quoting. It backslashifies |
| 5183 |
# metacharacters that are still active within double-quoted strings. |
# metacharacters that are still active within double-quoted strings. |
| 5184 |
Xsed='sed -e s/^X//' |
Xsed='sed -e 1s/^X//' |
| 5185 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5186 |
|
|
| 5187 |
# Same as above, but do not quote variable references. |
# Same as above, but do not quote variable references. |
| 5201 |
default_ofile=libtool |
default_ofile=libtool |
| 5202 |
can_build_shared=yes |
can_build_shared=yes |
| 5203 |
|
|
| 5204 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
# All known linkers require a `.a' archive for static linking (except MSVC, |
| 5205 |
# which needs '.lib'). |
# which needs '.lib'). |
| 5206 |
libext=a |
libext=a |
| 5207 |
ltmain="$ac_aux_dir/ltmain.sh" |
ltmain="$ac_aux_dir/ltmain.sh" |
| 5458 |
test -z "$AS" && AS=as |
test -z "$AS" && AS=as |
| 5459 |
test -z "$CC" && CC=cc |
test -z "$CC" && CC=cc |
| 5460 |
test -z "$LTCC" && LTCC=$CC |
test -z "$LTCC" && LTCC=$CC |
| 5461 |
|
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 5462 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5463 |
test -z "$LD" && LD=ld |
test -z "$LD" && LD=ld |
| 5464 |
test -z "$LN_S" && LN_S="ln -s" |
test -z "$LN_S" && LN_S="ln -s" |
| 5471 |
test -z "$ac_objext" && ac_objext=o |
test -z "$ac_objext" && ac_objext=o |
| 5472 |
|
|
| 5473 |
# Determine commands to create old-style static archives. |
# Determine commands to create old-style static archives. |
| 5474 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 5475 |
old_postinstall_cmds='chmod 644 $oldlib' |
old_postinstall_cmds='chmod 644 $oldlib' |
| 5476 |
old_postuninstall_cmds= |
old_postuninstall_cmds= |
| 5477 |
|
|
| 5478 |
if test -n "$RANLIB"; then |
if test -n "$RANLIB"; then |
| 5479 |
case $host_os in |
case $host_os in |
| 5480 |
openbsd*) |
openbsd*) |
| 5481 |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 5482 |
;; |
;; |
| 5483 |
*) |
*) |
| 5484 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 5485 |
;; |
;; |
| 5486 |
esac |
esac |
| 5487 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5488 |
fi |
fi |
| 5489 |
|
|
| 5490 |
|
for cc_temp in $compiler""; do |
| 5491 |
|
case $cc_temp in |
| 5492 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 5493 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 5494 |
|
\-*) ;; |
| 5495 |
|
*) break;; |
| 5496 |
|
esac |
| 5497 |
|
done |
| 5498 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 5499 |
|
|
| 5500 |
|
|
| 5501 |
# Only perform the check for file, if the check method requires it |
# Only perform the check for file, if the check method requires it |
| 5502 |
case $deplibs_check_method in |
case $deplibs_check_method in |
| 5503 |
file_magic*) |
file_magic*) |
| 5523 |
if test -n "$file_magic_test_file"; then |
if test -n "$file_magic_test_file"; then |
| 5524 |
case $deplibs_check_method in |
case $deplibs_check_method in |
| 5525 |
"file_magic "*) |
"file_magic "*) |
| 5526 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 5527 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5528 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5529 |
$EGREP "$file_magic_regex" > /dev/null; then |
$EGREP "$file_magic_regex" > /dev/null; then |
| 5585 |
if test -n "$file_magic_test_file"; then |
if test -n "$file_magic_test_file"; then |
| 5586 |
case $deplibs_check_method in |
case $deplibs_check_method in |
| 5587 |
"file_magic "*) |
"file_magic "*) |
| 5588 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 5589 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5590 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5591 |
$EGREP "$file_magic_regex" > /dev/null; then |
$EGREP "$file_magic_regex" > /dev/null; then |
| 5633 |
;; |
;; |
| 5634 |
esac |
esac |
| 5635 |
|
|
| 5636 |
|
|
| 5637 |
|
case $host_os in |
| 5638 |
|
rhapsody* | darwin*) |
| 5639 |
|
if test -n "$ac_tool_prefix"; then |
| 5640 |
|
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 5641 |
|
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 5642 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5643 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5644 |
|
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
| 5645 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5646 |
|
else |
| 5647 |
|
if test -n "$DSYMUTIL"; then |
| 5648 |
|
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 5649 |
|
else |
| 5650 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5651 |
|
for as_dir in $PATH |
| 5652 |
|
do |
| 5653 |
|
IFS=$as_save_IFS |
| 5654 |
|
test -z "$as_dir" && as_dir=. |
| 5655 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5656 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5657 |
|
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 5658 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5659 |
|
break 2 |
| 5660 |
|
fi |
| 5661 |
|
done |
| 5662 |
|
done |
| 5663 |
|
|
| 5664 |
|
fi |
| 5665 |
|
fi |
| 5666 |
|
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 5667 |
|
if test -n "$DSYMUTIL"; then |
| 5668 |
|
echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
| 5669 |
|
echo "${ECHO_T}$DSYMUTIL" >&6 |
| 5670 |
|
else |
| 5671 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 5672 |
|
echo "${ECHO_T}no" >&6 |
| 5673 |
|
fi |
| 5674 |
|
|
| 5675 |
|
fi |
| 5676 |
|
if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 5677 |
|
ac_ct_DSYMUTIL=$DSYMUTIL |
| 5678 |
|
# Extract the first word of "dsymutil", so it can be a program name with args. |
| 5679 |
|
set dummy dsymutil; ac_word=$2 |
| 5680 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5681 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5682 |
|
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
| 5683 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5684 |
|
else |
| 5685 |
|
if test -n "$ac_ct_DSYMUTIL"; then |
| 5686 |
|
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 5687 |
|
else |
| 5688 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5689 |
|
for as_dir in $PATH |
| 5690 |
|
do |
| 5691 |
|
IFS=$as_save_IFS |
| 5692 |
|
test -z "$as_dir" && as_dir=. |
| 5693 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5694 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5695 |
|
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 5696 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5697 |
|
break 2 |
| 5698 |
|
fi |
| 5699 |
|
done |
| 5700 |
|
done |
| 5701 |
|
|
| 5702 |
|
test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" |
| 5703 |
|
fi |
| 5704 |
|
fi |
| 5705 |
|
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 5706 |
|
if test -n "$ac_ct_DSYMUTIL"; then |
| 5707 |
|
echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
| 5708 |
|
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 |
| 5709 |
|
else |
| 5710 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 5711 |
|
echo "${ECHO_T}no" >&6 |
| 5712 |
|
fi |
| 5713 |
|
|
| 5714 |
|
DSYMUTIL=$ac_ct_DSYMUTIL |
| 5715 |
|
else |
| 5716 |
|
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 5717 |
|
fi |
| 5718 |
|
|
| 5719 |
|
if test -n "$ac_tool_prefix"; then |
| 5720 |
|
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 5721 |
|
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 5722 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5723 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5724 |
|
if test "${ac_cv_prog_NMEDIT+set}" = set; then |
| 5725 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5726 |
|
else |
| 5727 |
|
if test -n "$NMEDIT"; then |
| 5728 |
|
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 5729 |
|
else |
| 5730 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5731 |
|
for as_dir in $PATH |
| 5732 |
|
do |
| 5733 |
|
IFS=$as_save_IFS |
| 5734 |
|
test -z "$as_dir" && as_dir=. |
| 5735 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5736 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5737 |
|
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 5738 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5739 |
|
break 2 |
| 5740 |
|
fi |
| 5741 |
|
done |
| 5742 |
|
done |
| 5743 |
|
|
| 5744 |
|
fi |
| 5745 |
|
fi |
| 5746 |
|
NMEDIT=$ac_cv_prog_NMEDIT |
| 5747 |
|
if test -n "$NMEDIT"; then |
| 5748 |
|
echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
| 5749 |
|
echo "${ECHO_T}$NMEDIT" >&6 |
| 5750 |
|
else |
| 5751 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 5752 |
|
echo "${ECHO_T}no" >&6 |
| 5753 |
|
fi |
| 5754 |
|
|
| 5755 |
|
fi |
| 5756 |
|
if test -z "$ac_cv_prog_NMEDIT"; then |
| 5757 |
|
ac_ct_NMEDIT=$NMEDIT |
| 5758 |
|
# Extract the first word of "nmedit", so it can be a program name with args. |
| 5759 |
|
set dummy nmedit; ac_word=$2 |
| 5760 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5761 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5762 |
|
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
| 5763 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5764 |
|
else |
| 5765 |
|
if test -n "$ac_ct_NMEDIT"; then |
| 5766 |
|
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 5767 |
|
else |
| 5768 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5769 |
|
for as_dir in $PATH |
| 5770 |
|
do |
| 5771 |
|
IFS=$as_save_IFS |
| 5772 |
|
test -z "$as_dir" && as_dir=. |
| 5773 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5774 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5775 |
|
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 5776 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5777 |
|
break 2 |
| 5778 |
|
fi |
| 5779 |
|
done |
| 5780 |
|
done |
| 5781 |
|
|
| 5782 |
|
test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" |
| 5783 |
|
fi |
| 5784 |
|
fi |
| 5785 |
|
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 5786 |
|
if test -n "$ac_ct_NMEDIT"; then |
| 5787 |
|
echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
| 5788 |
|
echo "${ECHO_T}$ac_ct_NMEDIT" >&6 |
| 5789 |
|
else |
| 5790 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 5791 |
|
echo "${ECHO_T}no" >&6 |
| 5792 |
|
fi |
| 5793 |
|
|
| 5794 |
|
NMEDIT=$ac_ct_NMEDIT |
| 5795 |
|
else |
| 5796 |
|
NMEDIT="$ac_cv_prog_NMEDIT" |
| 5797 |
|
fi |
| 5798 |
|
|
| 5799 |
|
|
| 5800 |
|
echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
| 5801 |
|
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 |
| 5802 |
|
if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
| 5803 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5804 |
|
else |
| 5805 |
|
lt_cv_apple_cc_single_mod=no |
| 5806 |
|
if test -z "${LT_MULTI_MODULE}"; then |
| 5807 |
|
# By default we will add the -single_module flag. You can override |
| 5808 |
|
# by either setting the environment variable LT_MULTI_MODULE |
| 5809 |
|
# non-empty at configure time, or by adding -multi_module to the |
| 5810 |
|
# link flags. |
| 5811 |
|
echo "int foo(void){return 1;}" > conftest.c |
| 5812 |
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 5813 |
|
-dynamiclib ${wl}-single_module conftest.c |
| 5814 |
|
if test -f libconftest.dylib; then |
| 5815 |
|
lt_cv_apple_cc_single_mod=yes |
| 5816 |
|
rm -rf libconftest.dylib* |
| 5817 |
|
fi |
| 5818 |
|
rm conftest.c |
| 5819 |
|
fi |
| 5820 |
|
fi |
| 5821 |
|
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
| 5822 |
|
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 |
| 5823 |
|
echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
| 5824 |
|
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 |
| 5825 |
|
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
| 5826 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5827 |
|
else |
| 5828 |
|
lt_cv_ld_exported_symbols_list=no |
| 5829 |
|
save_LDFLAGS=$LDFLAGS |
| 5830 |
|
echo "_main" > conftest.sym |
| 5831 |
|
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 5832 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 5833 |
|
#line $LINENO "configure" |
| 5834 |
|
#include "confdefs.h" |
| 5835 |
|
|
| 5836 |
|
#ifdef F77_DUMMY_MAIN |
| 5837 |
|
# ifdef __cplusplus |
| 5838 |
|
extern "C" |
| 5839 |
|
# endif |
| 5840 |
|
int F77_DUMMY_MAIN() { return 1; } |
| 5841 |
|
#endif |
| 5842 |
|
int |
| 5843 |
|
main () |
| 5844 |
|
{ |
| 5845 |
|
|
| 5846 |
|
; |
| 5847 |
|
return 0; |
| 5848 |
|
} |
| 5849 |
|
_ACEOF |
| 5850 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5851 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5852 |
|
(eval $ac_link) 2>&5 |
| 5853 |
|
ac_status=$? |
| 5854 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5855 |
|
(exit $ac_status); } && |
| 5856 |
|
{ ac_try='test -s conftest$ac_exeext' |
| 5857 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5858 |
|
(eval $ac_try) 2>&5 |
| 5859 |
|
ac_status=$? |
| 5860 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5861 |
|
(exit $ac_status); }; }; then |
| 5862 |
|
lt_cv_ld_exported_symbols_list=yes |
| 5863 |
|
else |
| 5864 |
|
echo "$as_me: failed program was:" >&5 |
| 5865 |
|
cat conftest.$ac_ext >&5 |
| 5866 |
|
lt_cv_ld_exported_symbols_list=no |
| 5867 |
|
fi |
| 5868 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5869 |
|
LDFLAGS="$save_LDFLAGS" |
| 5870 |
|
|
| 5871 |
|
fi |
| 5872 |
|
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 5873 |
|
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 |
| 5874 |
|
case $host_os in |
| 5875 |
|
rhapsody* | darwin1.[0123]) |
| 5876 |
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 5877 |
|
darwin1.*) |
| 5878 |
|
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 5879 |
|
darwin*) |
| 5880 |
|
# if running on 10.5 or later, the deployment target defaults |
| 5881 |
|
# to the OS version, if on x86, and 10.4, the deployment |
| 5882 |
|
# target defaults to 10.4. Don't you love it? |
| 5883 |
|
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 5884 |
|
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 5885 |
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 5886 |
|
10.[012]*) |
| 5887 |
|
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 5888 |
|
10.*) |
| 5889 |
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 5890 |
|
esac |
| 5891 |
|
;; |
| 5892 |
|
esac |
| 5893 |
|
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 5894 |
|
_lt_dar_single_mod='$single_module' |
| 5895 |
|
fi |
| 5896 |
|
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 5897 |
|
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 5898 |
|
else |
| 5899 |
|
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" |
| 5900 |
|
fi |
| 5901 |
|
if test "$DSYMUTIL" != ":"; then |
| 5902 |
|
_lt_dsymutil="~$DSYMUTIL \$lib || :" |
| 5903 |
|
else |
| 5904 |
|
_lt_dsymutil= |
| 5905 |
|
fi |
| 5906 |
|
;; |
| 5907 |
|
esac |
| 5908 |
|
|
| 5909 |
|
|
| 5910 |
enable_dlopen=no |
enable_dlopen=no |
| 5911 |
enable_win32_dll=no |
enable_win32_dll=no |
| 5912 |
|
|
| 5945 |
objext=$objext |
objext=$objext |
| 5946 |
|
|
| 5947 |
# Code to be used in simple compile tests |
# Code to be used in simple compile tests |
| 5948 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
lt_simple_compile_test_code="int some_variable = 0;" |
| 5949 |
|
|
| 5950 |
# Code to be used in simple link tests |
# Code to be used in simple link tests |
| 5951 |
lt_simple_link_test_code='int main(){return(0);}\n' |
lt_simple_link_test_code='int main(){return(0);}' |
| 5952 |
|
|
| 5953 |
|
|
| 5954 |
# If no C compiler was specified, use CC. |
# If no C compiler was specified, use CC. |
| 5955 |
LTCC=${LTCC-"$CC"} |
LTCC=${LTCC-"$CC"} |
| 5956 |
|
|
| 5957 |
|
# If no C compiler flags were specified, use CFLAGS. |
| 5958 |
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5959 |
|
|
| 5960 |
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
| 5961 |
compiler=$CC |
compiler=$CC |
| 5962 |
|
|
| 5963 |
|
|
| 5964 |
# |
# save warnings/boilerplate of simple test code |
| 5965 |
# Check for any special shared library compilation flags. |
ac_outfile=conftest.$ac_objext |
| 5966 |
# |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 5967 |
lt_prog_cc_shlib= |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 5968 |
if test "$GCC" = no; then |
_lt_compiler_boilerplate=`cat conftest.err` |
| 5969 |
case $host_os in |
$rm conftest* |
| 5970 |
sco3.2v5*) |
|
| 5971 |
lt_prog_cc_shlib='-belf' |
ac_outfile=conftest.$ac_objext |
| 5972 |
;; |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 5973 |
esac |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 5974 |
fi |
_lt_linker_boilerplate=`cat conftest.err` |
| 5975 |
if test -n "$lt_prog_cc_shlib"; then |
$rm -r conftest* |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
|
|
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
else |
|
|
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
lt_cv_prog_cc_can_build_shared=no |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# |
|
|
# Check to make sure the static flag actually works. |
|
|
# |
|
|
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
|
|
if test "${lt_prog_compiler_static_works+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
lt_prog_compiler_static_works=no |
|
|
save_LDFLAGS="$LDFLAGS" |
|
|
LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
|
|
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
# The compiler can only warn and ignore the option if not recognized |
|
|
# So say no if there are warnings |
|
|
if test -s conftest.err; then |
|
|
# Append any errors to the config.log. |
|
|
cat conftest.err 1>&5 |
|
|
else |
|
|
lt_prog_compiler_static_works=yes |
|
|
fi |
|
|
fi |
|
|
$rm conftest* |
|
|
LDFLAGS="$save_LDFLAGS" |
|
|
|
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
|
|
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
|
|
|
|
if test x"$lt_prog_compiler_static_works" = xyes; then |
|
|
: |
|
|
else |
|
|
lt_prog_compiler_static= |
|
|
fi |
|
|
|
|
| 5976 |
|
|
| 5977 |
|
|
| 5978 |
|
|
| 5981 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
| 5982 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 5983 |
|
|
| 5984 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
| 5985 |
|
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5986 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5987 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 5988 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5989 |
else |
else |
| 5990 |
lt_cv_prog_compiler_rtti_exceptions=no |
lt_cv_prog_compiler_rtti_exceptions=no |
| 5991 |
ac_outfile=conftest.$ac_objext |
ac_outfile=conftest.$ac_objext |
| 5992 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5993 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 5994 |
# Insert the option either (1) after the last *FLAGS variable, or |
# Insert the option either (1) after the last *FLAGS variable, or |
| 5995 |
# (2) before a word containing "conftest.", or (3) at the end. |
# (2) before a word containing "conftest.", or (3) at the end. |
| 5997 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5998 |
# The option is referenced via a variable to avoid confusing sed. |
# The option is referenced via a variable to avoid confusing sed. |
| 5999 |
lt_compile=`echo "$ac_compile" | $SED \ |
lt_compile=`echo "$ac_compile" | $SED \ |
| 6000 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6001 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6002 |
-e 's:$: $lt_compiler_flag:'` |
-e 's:$: $lt_compiler_flag:'` |
| 6003 |
(eval echo "\"\$as_me:5645: $lt_compile\"" >&5) |
(eval echo "\"\$as_me:6003: $lt_compile\"" >&5) |
| 6004 |
(eval "$lt_compile" 2>conftest.err) |
(eval "$lt_compile" 2>conftest.err) |
| 6005 |
ac_status=$? |
ac_status=$? |
| 6006 |
cat conftest.err >&5 |
cat conftest.err >&5 |
| 6007 |
echo "$as_me:5649: \$? = $ac_status" >&5 |
echo "$as_me:6007: \$? = $ac_status" >&5 |
| 6008 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6009 |
# The compiler can only warn and ignore the option if not recognized |
# The compiler can only warn and ignore the option if not recognized |
| 6010 |
# So say no if there are warnings |
# So say no if there are warnings other than the usual output. |
| 6011 |
if test ! -s conftest.err; then |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 6012 |
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6013 |
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 6014 |
lt_cv_prog_compiler_rtti_exceptions=yes |
lt_cv_prog_compiler_rtti_exceptions=yes |
| 6015 |
fi |
fi |
| 6016 |
fi |
fi |
| 6055 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 6056 |
;; |
;; |
| 6057 |
|
|
| 6058 |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 6059 |
# PIC is the default for these OSes. |
# PIC is the default for these OSes. |
| 6060 |
;; |
;; |
| 6061 |
|
|
| 6062 |
mingw* | pw32* | os2*) |
mingw* | cygwin* | pw32* | os2*) |
| 6063 |
# This hack is so that the source file can tell whether it is being |
# This hack is so that the source file can tell whether it is being |
| 6064 |
# built for inclusion in a dll (and should export symbols for example). |
# built for inclusion in a dll (and should export symbols for example). |
| 6065 |
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 6066 |
|
# (--disable-auto-import) libraries |
| 6067 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6068 |
;; |
;; |
| 6069 |
|
|
| 6073 |
lt_prog_compiler_pic='-fno-common' |
lt_prog_compiler_pic='-fno-common' |
| 6074 |
;; |
;; |
| 6075 |
|
|
| 6076 |
|
interix[3-9]*) |
| 6077 |
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 6078 |
|
# Instead, we relocate shared libraries at runtime. |
| 6079 |
|
;; |
| 6080 |
|
|
| 6081 |
msdosdjgpp*) |
msdosdjgpp*) |
| 6082 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6083 |
# on systems that don't support them. |
# on systems that don't support them. |
| 6094 |
hpux*) |
hpux*) |
| 6095 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6096 |
# not for PA HP-UX. |
# not for PA HP-UX. |
| 6097 |
case "$host_cpu" in |
case $host_cpu in |
| 6098 |
hppa*64*|ia64*) |
hppa*64*|ia64*) |
| 6099 |
# +Z the default |
# +Z the default |
| 6100 |
;; |
;; |
| 6120 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 6121 |
fi |
fi |
| 6122 |
;; |
;; |
| 6123 |
|
darwin*) |
| 6124 |
|
# PIC is the default on this platform |
| 6125 |
|
# Common symbols not allowed in MH_DYLIB files |
| 6126 |
|
case $cc_basename in |
| 6127 |
|
xlc*) |
| 6128 |
|
lt_prog_compiler_pic='-qnocommon' |
| 6129 |
|
lt_prog_compiler_wl='-Wl,' |
| 6130 |
|
;; |
| 6131 |
|
esac |
| 6132 |
|
;; |
| 6133 |
|
|
| 6134 |
mingw* | pw32* | os2*) |
mingw* | cygwin* | pw32* | os2*) |
| 6135 |
# This hack is so that the source file can tell whether it is being |
# This hack is so that the source file can tell whether it is being |
| 6136 |
# built for inclusion in a dll (and should export symbols for example). |
# built for inclusion in a dll (and should export symbols for example). |
| 6137 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6141 |
lt_prog_compiler_wl='-Wl,' |
lt_prog_compiler_wl='-Wl,' |
| 6142 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6143 |
# not for PA HP-UX. |
# not for PA HP-UX. |
| 6144 |
case "$host_cpu" in |
case $host_cpu in |
| 6145 |
hppa*64*|ia64*) |
hppa*64*|ia64*) |
| 6146 |
# +Z the default |
# +Z the default |
| 6147 |
;; |
;; |
| 6164 |
lt_prog_compiler_static='-Bstatic' |
lt_prog_compiler_static='-Bstatic' |
| 6165 |
;; |
;; |
| 6166 |
|
|
| 6167 |
linux*) |
linux* | k*bsd*-gnu) |
| 6168 |
case $CC in |
case $cc_basename in |
| 6169 |
icc|ecc) |
icc* | ecc*) |
| 6170 |
lt_prog_compiler_wl='-Wl,' |
lt_prog_compiler_wl='-Wl,' |
| 6171 |
lt_prog_compiler_pic='-KPIC' |
lt_prog_compiler_pic='-KPIC' |
| 6172 |
lt_prog_compiler_static='-static' |
lt_prog_compiler_static='-static' |
| 6173 |
;; |
;; |
| 6174 |
ccc) |
pgcc* | pgf77* | pgf90* | pgf95*) |
| 6175 |
|
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 6176 |
|
# which looks to be a dead project) |
| 6177 |
|
lt_prog_compiler_wl='-Wl,' |
| 6178 |
|
lt_prog_compiler_pic='-fpic' |
| 6179 |
|
lt_prog_compiler_static='-Bstatic' |
| 6180 |
|
;; |
| 6181 |
|
ccc*) |
| 6182 |
lt_prog_compiler_wl='-Wl,' |
lt_prog_compiler_wl='-Wl,' |
| 6183 |
# All Alpha code is PIC. |
# All Alpha code is PIC. |
| 6184 |
lt_prog_compiler_static='-non_shared' |
lt_prog_compiler_static='-non_shared' |
| 6185 |
;; |
;; |
| 6186 |
|
*) |
| 6187 |
|
case `$CC -V 2>&1 | sed 5q` in |
| 6188 |
|
*Sun\ C*) |
| 6189 |
|
# Sun C 5.9 |
| 6190 |
|
lt_prog_compiler_pic='-KPIC' |
| 6191 |
|
lt_prog_compiler_static='-Bstatic' |
| 6192 |
|
lt_prog_compiler_wl='-Wl,' |
| 6193 |
|
;; |
| 6194 |
|
*Sun\ F*) |
| 6195 |
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 6196 |
|
lt_prog_compiler_pic='-KPIC' |
| 6197 |
|
lt_prog_compiler_static='-Bstatic' |
| 6198 |
|
lt_prog_compiler_wl='' |
| 6199 |
|
;; |
| 6200 |
|
esac |
| 6201 |
|
;; |
| 6202 |
esac |
esac |
| 6203 |
;; |
;; |
| 6204 |
|
|
| 6208 |
lt_prog_compiler_static='-non_shared' |
lt_prog_compiler_static='-non_shared' |
| 6209 |
;; |
;; |
| 6210 |
|
|
| 6211 |
sco3.2v5*) |
rdos*) |
| 6212 |
lt_prog_compiler_pic='-Kpic' |
lt_prog_compiler_static='-non_shared' |
|
lt_prog_compiler_static='-dn' |
|
| 6213 |
;; |
;; |
| 6214 |
|
|
| 6215 |
solaris*) |
solaris*) |
|
lt_prog_compiler_wl='-Wl,' |
|
| 6216 |
lt_prog_compiler_pic='-KPIC' |
lt_prog_compiler_pic='-KPIC' |
| 6217 |
lt_prog_compiler_static='-Bstatic' |
lt_prog_compiler_static='-Bstatic' |
| 6218 |
|
case $cc_basename in |
| 6219 |
|
f77* | f90* | f95*) |
| 6220 |
|
lt_prog_compiler_wl='-Qoption ld ';; |
| 6221 |
|
*) |
| 6222 |
|
lt_prog_compiler_wl='-Wl,';; |
| 6223 |
|
esac |
| 6224 |
;; |
;; |
| 6225 |
|
|
| 6226 |
sunos4*) |
sunos4*) |
| 6229 |
lt_prog_compiler_static='-Bstatic' |
lt_prog_compiler_static='-Bstatic' |
| 6230 |
;; |
;; |
| 6231 |
|
|
| 6232 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 6233 |
lt_prog_compiler_wl='-Wl,' |
lt_prog_compiler_wl='-Wl,' |
| 6234 |
lt_prog_compiler_pic='-KPIC' |
lt_prog_compiler_pic='-KPIC' |
| 6235 |
lt_prog_compiler_static='-Bstatic' |
lt_prog_compiler_static='-Bstatic' |
| 6242 |
fi |
fi |
| 6243 |
;; |
;; |
| 6244 |
|
|
| 6245 |
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 6246 |
|
lt_prog_compiler_wl='-Wl,' |
| 6247 |
|
lt_prog_compiler_pic='-KPIC' |
| 6248 |
|
lt_prog_compiler_static='-Bstatic' |
| 6249 |
|
;; |
| 6250 |
|
|
| 6251 |
|
unicos*) |
| 6252 |
|
lt_prog_compiler_wl='-Wl,' |
| 6253 |
|
lt_prog_compiler_can_build_shared=no |
| 6254 |
|
;; |
| 6255 |
|
|
| 6256 |
uts4*) |
uts4*) |
| 6257 |
lt_prog_compiler_pic='-pic' |
lt_prog_compiler_pic='-pic' |
| 6258 |
lt_prog_compiler_static='-Bstatic' |
lt_prog_compiler_static='-Bstatic' |
| 6271 |
# Check to make sure the PIC flag actually works. |
# Check to make sure the PIC flag actually works. |
| 6272 |
# |
# |
| 6273 |
if test -n "$lt_prog_compiler_pic"; then |
if test -n "$lt_prog_compiler_pic"; then |
| 6274 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
|
| 6275 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6276 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 6277 |
if test "${lt_prog_compiler_pic_works+set}" = set; then |
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
| 6278 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6279 |
else |
else |
| 6280 |
lt_prog_compiler_pic_works=no |
lt_cv_prog_compiler_pic_works=no |
| 6281 |
ac_outfile=conftest.$ac_objext |
ac_outfile=conftest.$ac_objext |
| 6282 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6283 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6284 |
# Insert the option either (1) after the last *FLAGS variable, or |
# Insert the option either (1) after the last *FLAGS variable, or |
| 6285 |
# (2) before a word containing "conftest.", or (3) at the end. |
# (2) before a word containing "conftest.", or (3) at the end. |
| 6287 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6288 |
# The option is referenced via a variable to avoid confusing sed. |
# The option is referenced via a variable to avoid confusing sed. |
| 6289 |
lt_compile=`echo "$ac_compile" | $SED \ |
lt_compile=`echo "$ac_compile" | $SED \ |
| 6290 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6291 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6292 |
-e 's:$: $lt_compiler_flag:'` |
-e 's:$: $lt_compiler_flag:'` |
| 6293 |
(eval echo "\"\$as_me:5877: $lt_compile\"" >&5) |
(eval echo "\"\$as_me:6293: $lt_compile\"" >&5) |
| 6294 |
(eval "$lt_compile" 2>conftest.err) |
(eval "$lt_compile" 2>conftest.err) |
| 6295 |
ac_status=$? |
ac_status=$? |
| 6296 |
cat conftest.err >&5 |
cat conftest.err >&5 |
| 6297 |
echo "$as_me:5881: \$? = $ac_status" >&5 |
echo "$as_me:6297: \$? = $ac_status" >&5 |
| 6298 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6299 |
# The compiler can only warn and ignore the option if not recognized |
# The compiler can only warn and ignore the option if not recognized |
| 6300 |
# So say no if there are warnings |
# So say no if there are warnings other than the usual output. |
| 6301 |
if test ! -s conftest.err; then |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 6302 |
lt_prog_compiler_pic_works=yes |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6303 |
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 6304 |
|
lt_cv_prog_compiler_pic_works=yes |
| 6305 |
fi |
fi |
| 6306 |
fi |
fi |
| 6307 |
$rm conftest* |
$rm conftest* |
| 6308 |
|
|
| 6309 |
fi |
fi |
| 6310 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 6311 |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 |
| 6312 |
|
|
| 6313 |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 6314 |
case $lt_prog_compiler_pic in |
case $lt_prog_compiler_pic in |
| 6315 |
"" | " "*) ;; |
"" | " "*) ;; |
| 6316 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6321 |
fi |
fi |
| 6322 |
|
|
| 6323 |
fi |
fi |
| 6324 |
case "$host_os" in |
case $host_os in |
| 6325 |
# For platforms which do not support PIC, -DPIC is meaningless: |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 6326 |
*djgpp*) |
*djgpp*) |
| 6327 |
lt_prog_compiler_pic= |
lt_prog_compiler_pic= |
| 6331 |
;; |
;; |
| 6332 |
esac |
esac |
| 6333 |
|
|
| 6334 |
|
# |
| 6335 |
|
# Check to make sure the static flag actually works. |
| 6336 |
|
# |
| 6337 |
|
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 6338 |
|
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 6339 |
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 6340 |
|
if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
| 6341 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6342 |
|
else |
| 6343 |
|
lt_cv_prog_compiler_static_works=no |
| 6344 |
|
save_LDFLAGS="$LDFLAGS" |
| 6345 |
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 6346 |
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 6347 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6348 |
|
# The linker can only warn and ignore the option if not recognized |
| 6349 |
|
# So say no if there are warnings |
| 6350 |
|
if test -s conftest.err; then |
| 6351 |
|
# Append any errors to the config.log. |
| 6352 |
|
cat conftest.err 1>&5 |
| 6353 |
|
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 6354 |
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6355 |
|
if diff conftest.exp conftest.er2 >/dev/null; then |
| 6356 |
|
lt_cv_prog_compiler_static_works=yes |
| 6357 |
|
fi |
| 6358 |
|
else |
| 6359 |
|
lt_cv_prog_compiler_static_works=yes |
| 6360 |
|
fi |
| 6361 |
|
fi |
| 6362 |
|
$rm -r conftest* |
| 6363 |
|
LDFLAGS="$save_LDFLAGS" |
| 6364 |
|
|
| 6365 |
|
fi |
| 6366 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
| 6367 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 |
| 6368 |
|
|
| 6369 |
|
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 6370 |
|
: |
| 6371 |
|
else |
| 6372 |
|
lt_prog_compiler_static= |
| 6373 |
|
fi |
| 6374 |
|
|
| 6375 |
|
|
| 6376 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6377 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 6378 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 6383 |
mkdir conftest |
mkdir conftest |
| 6384 |
cd conftest |
cd conftest |
| 6385 |
mkdir out |
mkdir out |
| 6386 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
|
|
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
# that will create temporary files in the current directory regardless of |
|
|
# the output directory. Thus, making CWD read-only will cause this test |
|
|
# to fail, enabling locking or at least warning the user not to do parallel |
|
|
# builds. |
|
|
chmod -w . |
|
| 6387 |
|
|
| 6388 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6389 |
# Insert the option either (1) after the last *FLAGS variable, or |
# Insert the option either (1) after the last *FLAGS variable, or |
| 6391 |
# Note that $ac_compile itself does not contain backslashes and begins |
# Note that $ac_compile itself does not contain backslashes and begins |
| 6392 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6393 |
lt_compile=`echo "$ac_compile" | $SED \ |
lt_compile=`echo "$ac_compile" | $SED \ |
| 6394 |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6395 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6396 |
-e 's:$: $lt_compiler_flag:'` |
-e 's:$: $lt_compiler_flag:'` |
| 6397 |
(eval echo "\"\$as_me:5944: $lt_compile\"" >&5) |
(eval echo "\"\$as_me:6397: $lt_compile\"" >&5) |
| 6398 |
(eval "$lt_compile" 2>out/conftest.err) |
(eval "$lt_compile" 2>out/conftest.err) |
| 6399 |
ac_status=$? |
ac_status=$? |
| 6400 |
cat out/conftest.err >&5 |
cat out/conftest.err >&5 |
| 6401 |
echo "$as_me:5948: \$? = $ac_status" >&5 |
echo "$as_me:6401: \$? = $ac_status" >&5 |
| 6402 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6403 |
then |
then |
| 6404 |
# The compiler can only warn and ignore the option if not recognized |
# The compiler can only warn and ignore the option if not recognized |
| 6405 |
# So say no if there are warnings |
# So say no if there are warnings |
| 6406 |
if test ! -s out/conftest.err; then |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 6407 |
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 6408 |
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 6409 |
lt_cv_prog_compiler_c_o=yes |
lt_cv_prog_compiler_c_o=yes |
| 6410 |
fi |
fi |
| 6411 |
fi |
fi |
| 6412 |
chmod u+w . |
chmod u+w . 2>&5 |
| 6413 |
$rm conftest* out/* |
$rm conftest* |
| 6414 |
rmdir out |
# SGI C++ compiler will create directory out/ii_files/ for |
| 6415 |
|
# template instantiation |
| 6416 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 6417 |
|
$rm out/* && rmdir out |
| 6418 |
cd .. |
cd .. |
| 6419 |
rmdir conftest |
rmdir conftest |
| 6420 |
$rm conftest* |
$rm conftest* |
| 6478 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6479 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6480 |
# as well as any symbol that contains `d'. |
# as well as any symbol that contains `d'. |
| 6481 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 6482 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6483 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 6484 |
# the symbol is explicitly referenced. Since portable code cannot |
# the symbol is explicitly referenced. Since portable code cannot |
| 6485 |
# rely on this symbol name, it's probably fine to never include it in |
# rely on this symbol name, it's probably fine to never include it in |
| 6486 |
# preloaded symbol tables. |
# preloaded symbol tables. |
| 6487 |
|
# Exclude shared library initialization/finalization symbols. |
| 6488 |
extract_expsyms_cmds= |
extract_expsyms_cmds= |
| 6489 |
|
# Just being paranoid about ensuring that cc_basename is set. |
| 6490 |
|
for cc_temp in $compiler""; do |
| 6491 |
|
case $cc_temp in |
| 6492 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6493 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6494 |
|
\-*) ;; |
| 6495 |
|
*) break;; |
| 6496 |
|
esac |
| 6497 |
|
done |
| 6498 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 6499 |
|
|
| 6500 |
case $host_os in |
case $host_os in |
| 6501 |
cygwin* | mingw* | pw32*) |
cygwin* | mingw* | pw32*) |
| 6506 |
with_gnu_ld=no |
with_gnu_ld=no |
| 6507 |
fi |
fi |
| 6508 |
;; |
;; |
| 6509 |
|
interix*) |
| 6510 |
|
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 6511 |
|
with_gnu_ld=yes |
| 6512 |
|
;; |
| 6513 |
openbsd*) |
openbsd*) |
| 6514 |
with_gnu_ld=no |
with_gnu_ld=no |
| 6515 |
;; |
;; |
| 6520 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 6521 |
wlarc='${wl}' |
wlarc='${wl}' |
| 6522 |
|
|
| 6523 |
|
# Set some defaults for GNU ld with shared library support. These |
| 6524 |
|
# are reset later if shared libraries are not supported. Putting them |
| 6525 |
|
# here allows them to be overridden if necessary. |
| 6526 |
|
runpath_var=LD_RUN_PATH |
| 6527 |
|
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6528 |
|
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6529 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
| 6530 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6531 |
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6532 |
|
else |
| 6533 |
|
whole_archive_flag_spec= |
| 6534 |
|
fi |
| 6535 |
|
supports_anon_versioning=no |
| 6536 |
|
case `$LD -v 2>/dev/null` in |
| 6537 |
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 6538 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 6539 |
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 6540 |
|
*\ 2.11.*) ;; # other 2.11 versions |
| 6541 |
|
*) supports_anon_versioning=yes ;; |
| 6542 |
|
esac |
| 6543 |
|
|
| 6544 |
# See if GNU ld supports shared libraries. |
# See if GNU ld supports shared libraries. |
| 6545 |
case $host_os in |
case $host_os in |
| 6546 |
aix3* | aix4* | aix5*) |
aix[3-9]*) |
| 6547 |
# On AIX/PPC, the GNU linker is very broken |
# On AIX/PPC, the GNU linker is very broken |
| 6548 |
if test "$host_cpu" != ia64; then |
if test "$host_cpu" != ia64; then |
| 6549 |
ld_shlibs=no |
ld_shlibs=no |
| 6591 |
allow_undefined_flag=unsupported |
allow_undefined_flag=unsupported |
| 6592 |
always_export_symbols=no |
always_export_symbols=no |
| 6593 |
enable_shared_with_static_runtimes=yes |
enable_shared_with_static_runtimes=yes |
| 6594 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 6595 |
|
|
| 6596 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6597 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 6598 |
# If the export-symbols file already is a .def file (1st line |
# If the export-symbols file already is a .def file (1st line |
| 6599 |
# is EXPORTS), use it as is; otherwise, prepend... |
# is EXPORTS), use it as is; otherwise, prepend... |
| 6600 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6603 |
echo EXPORTS > $output_objdir/$soname.def; |
echo EXPORTS > $output_objdir/$soname.def; |
| 6604 |
cat $export_symbols >> $output_objdir/$soname.def; |
cat $export_symbols >> $output_objdir/$soname.def; |
| 6605 |
fi~ |
fi~ |
| 6606 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 6607 |
|
else |
| 6608 |
|
ld_shlibs=no |
| 6609 |
|
fi |
| 6610 |
|
;; |
| 6611 |
|
|
| 6612 |
|
interix[3-9]*) |
| 6613 |
|
hardcode_direct=no |
| 6614 |
|
hardcode_shlibpath_var=no |
| 6615 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6616 |
|
export_dynamic_flag_spec='${wl}-E' |
| 6617 |
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 6618 |
|
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 6619 |
|
# default) and relocated if they conflict, which is a slow very memory |
| 6620 |
|
# consuming and fragmenting process. To avoid this, we pick a random, |
| 6621 |
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 6622 |
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 6623 |
|
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 6624 |
|
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' |
| 6625 |
|
;; |
| 6626 |
|
|
| 6627 |
|
gnu* | linux* | k*bsd*-gnu) |
| 6628 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6629 |
|
tmp_addflag= |
| 6630 |
|
case $cc_basename,$host_cpu in |
| 6631 |
|
pgcc*) # Portland Group C compiler |
| 6632 |
|
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' |
| 6633 |
|
tmp_addflag=' $pic_flag' |
| 6634 |
|
;; |
| 6635 |
|
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 6636 |
|
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' |
| 6637 |
|
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 6638 |
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 6639 |
|
tmp_addflag=' -i_dynamic' ;; |
| 6640 |
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 6641 |
|
tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 6642 |
|
ifc* | ifort*) # Intel Fortran compiler |
| 6643 |
|
tmp_addflag=' -nofor_main' ;; |
| 6644 |
|
esac |
| 6645 |
|
case `$CC -V 2>&1 | sed 5q` in |
| 6646 |
|
*Sun\ C*) # Sun C 5.9 |
| 6647 |
|
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' |
| 6648 |
|
tmp_sharedflag='-G' ;; |
| 6649 |
|
*Sun\ F*) # Sun Fortran 8.3 |
| 6650 |
|
tmp_sharedflag='-G' ;; |
| 6651 |
|
*) |
| 6652 |
|
tmp_sharedflag='-shared' ;; |
| 6653 |
|
esac |
| 6654 |
|
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6655 |
|
|
| 6656 |
|
if test $supports_anon_versioning = yes; then |
| 6657 |
|
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 6658 |
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 6659 |
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 6660 |
|
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 6661 |
|
fi |
| 6662 |
else |
else |
| 6663 |
ld_shlibs=no |
ld_shlibs=no |
| 6664 |
fi |
fi |
| 6674 |
fi |
fi |
| 6675 |
;; |
;; |
| 6676 |
|
|
| 6677 |
solaris* | sysv5*) |
solaris*) |
| 6678 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6679 |
ld_shlibs=no |
ld_shlibs=no |
| 6680 |
cat <<EOF 1>&2 |
cat <<EOF 1>&2 |
| 6695 |
fi |
fi |
| 6696 |
;; |
;; |
| 6697 |
|
|
| 6698 |
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 6699 |
|
case `$LD -v 2>&1` in |
| 6700 |
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 6701 |
|
ld_shlibs=no |
| 6702 |
|
cat <<_LT_EOF 1>&2 |
| 6703 |
|
|
| 6704 |
|
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 6705 |
|
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 6706 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 6707 |
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 6708 |
|
*** your PATH or compiler configuration so that the native linker is |
| 6709 |
|
*** used, and then restart. |
| 6710 |
|
|
| 6711 |
|
_LT_EOF |
| 6712 |
|
;; |
| 6713 |
|
*) |
| 6714 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6715 |
|
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 6716 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 6717 |
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 6718 |
|
else |
| 6719 |
|
ld_shlibs=no |
| 6720 |
|
fi |
| 6721 |
|
;; |
| 6722 |
|
esac |
| 6723 |
|
;; |
| 6724 |
|
|
| 6725 |
sunos4*) |
sunos4*) |
| 6726 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6727 |
wlarc= |
wlarc= |
| 6739 |
;; |
;; |
| 6740 |
esac |
esac |
| 6741 |
|
|
| 6742 |
if test "$ld_shlibs" = yes; then |
if test "$ld_shlibs" = no; then |
| 6743 |
runpath_var=LD_RUN_PATH |
runpath_var= |
| 6744 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
hardcode_libdir_flag_spec= |
| 6745 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
export_dynamic_flag_spec= |
| 6746 |
# ancient GNU ld didn't support --whole-archive et. al. |
whole_archive_flag_spec= |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
else |
|
|
whole_archive_flag_spec= |
|
|
fi |
|
| 6747 |
fi |
fi |
| 6748 |
else |
else |
| 6749 |
# PORTME fill in a description of your system's linker (not GNU ld) |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 6755 |
# Note: this linker hardcodes the directories in LIBPATH if there |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 6756 |
# are no directories specified by -L. |
# are no directories specified by -L. |
| 6757 |
hardcode_minus_L=yes |
hardcode_minus_L=yes |
| 6758 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 6759 |
# Neither direct hardcoding nor static linking is supported with a |
# Neither direct hardcoding nor static linking is supported with a |
| 6760 |
# broken collect2. |
# broken collect2. |
| 6761 |
hardcode_direct=unsupported |
hardcode_direct=unsupported |
| 6762 |
fi |
fi |
| 6763 |
;; |
;; |
| 6764 |
|
|
| 6765 |
aix4* | aix5*) |
aix[4-9]*) |
| 6766 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
| 6767 |
# On IA64, the linker does run time linking by default, so we don't |
# On IA64, the linker does run time linking by default, so we don't |
| 6768 |
# have to do anything special. |
# have to do anything special. |
| 6782 |
# Test if we are trying to use run time linking or normal |
# Test if we are trying to use run time linking or normal |
| 6783 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6784 |
# need to do runtime linking. |
# need to do runtime linking. |
| 6785 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 6786 |
for ld_flag in $LDFLAGS; do |
for ld_flag in $LDFLAGS; do |
| 6787 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6788 |
aix_use_runtimelinking=yes |
aix_use_runtimelinking=yes |
| 6789 |
break |
break |
| 6790 |
fi |
fi |
| 6791 |
done |
done |
| 6792 |
|
;; |
| 6793 |
esac |
esac |
| 6794 |
|
|
| 6795 |
exp_sym_flag='-bexport' |
exp_sym_flag='-bexport' |
| 6808 |
link_all_deplibs=yes |
link_all_deplibs=yes |
| 6809 |
|
|
| 6810 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
| 6811 |
case $host_os in aix4.012|aix4.012.*) |
case $host_os in aix4.[012]|aix4.[012].*) |
| 6812 |
# We only want to do this on AIX 4.2 and lower, the check |
# We only want to do this on AIX 4.2 and lower, the check |
| 6813 |
# below for broken collect2 doesn't work under 4.3+ |
# below for broken collect2 doesn't work under 4.3+ |
| 6814 |
collect2name=`${CC} -print-prog-name=collect2` |
collect2name=`${CC} -print-prog-name=collect2` |
| 6816 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6817 |
then |
then |
| 6818 |
# We have reworked collect2 |
# We have reworked collect2 |
| 6819 |
hardcode_direct=yes |
: |
| 6820 |
else |
else |
| 6821 |
# We have old collect2 |
# We have old collect2 |
| 6822 |
hardcode_direct=unsupported |
hardcode_direct=unsupported |
| 6827 |
hardcode_libdir_flag_spec='-L$libdir' |
hardcode_libdir_flag_spec='-L$libdir' |
| 6828 |
hardcode_libdir_separator= |
hardcode_libdir_separator= |
| 6829 |
fi |
fi |
| 6830 |
|
;; |
| 6831 |
esac |
esac |
| 6832 |
shared_flag='-shared' |
shared_flag='-shared' |
| 6833 |
|
if test "$aix_use_runtimelinking" = yes; then |
| 6834 |
|
shared_flag="$shared_flag "'${wl}-G' |
| 6835 |
|
fi |
| 6836 |
else |
else |
| 6837 |
# not using gcc |
# not using gcc |
| 6838 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
| 6840 |
# chokes on -Wl,-G. The following line is correct: |
# chokes on -Wl,-G. The following line is correct: |
| 6841 |
shared_flag='-G' |
shared_flag='-G' |
| 6842 |
else |
else |
| 6843 |
if test "$aix_use_runtimelinking" = yes; then |
if test "$aix_use_runtimelinking" = yes; then |
| 6844 |
shared_flag='${wl}-G' |
shared_flag='${wl}-G' |
| 6845 |
else |
else |
| 6846 |
shared_flag='${wl}-bM:SRE' |
shared_flag='${wl}-bM:SRE' |
| 6847 |
fi |
fi |
| 6848 |
fi |
fi |
| 6849 |
fi |
fi |
| 6850 |
|
|
| 6887 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6888 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
| 6889 |
|
|
| 6890 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
lt_aix_libpath_sed=' |
| 6891 |
}'` |
/Import File Strings/,/^$/ { |
| 6892 |
|
/^0/ { |
| 6893 |
|
s/^0 *\(.*\)$/\1/ |
| 6894 |
|
p |
| 6895 |
|
} |
| 6896 |
|
}' |
| 6897 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 6898 |
# Check for a 64-bit object if we didn't find anything. |
# Check for a 64-bit object if we didn't find anything. |
| 6899 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
if test -z "$aix_libpath"; then |
| 6900 |
}'`; fi |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 6901 |
|
fi |
| 6902 |
else |
else |
| 6903 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
| 6904 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
| 6907 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 6908 |
|
|
| 6909 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6910 |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 6911 |
else |
else |
| 6912 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
| 6913 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6914 |
allow_undefined_flag="-z nodefs" |
allow_undefined_flag="-z nodefs" |
| 6915 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
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" |
| 6916 |
else |
else |
| 6917 |
# Determine the default libpath from the value encoded in an empty executable. |
# Determine the default libpath from the value encoded in an empty executable. |
| 6918 |
cat >conftest.$ac_ext <<_ACEOF |
cat >conftest.$ac_ext <<_ACEOF |
| 6946 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6947 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
| 6948 |
|
|
| 6949 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
lt_aix_libpath_sed=' |
| 6950 |
}'` |
/Import File Strings/,/^$/ { |
| 6951 |
|
/^0/ { |
| 6952 |
|
s/^0 *\(.*\)$/\1/ |
| 6953 |
|
p |
| 6954 |
|
} |
| 6955 |
|
}' |
| 6956 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 6957 |
# Check for a 64-bit object if we didn't find anything. |
# Check for a 64-bit object if we didn't find anything. |
| 6958 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
if test -z "$aix_libpath"; then |
| 6959 |
}'`; fi |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 6960 |
|
fi |
| 6961 |
else |
else |
| 6962 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
| 6963 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
| 6970 |
# -berok will link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
| 6971 |
no_undefined_flag=' ${wl}-bernotok' |
no_undefined_flag=' ${wl}-bernotok' |
| 6972 |
allow_undefined_flag=' ${wl}-berok' |
allow_undefined_flag=' ${wl}-berok' |
|
# -bexpall does not export symbols beginning with underscore (_) |
|
|
always_export_symbols=yes |
|
| 6973 |
# Exported symbols can be pulled into shared objects from archives |
# Exported symbols can be pulled into shared objects from archives |
| 6974 |
whole_archive_flag_spec=' ' |
whole_archive_flag_spec='$convenience' |
| 6975 |
archive_cmds_need_lc=yes |
archive_cmds_need_lc=yes |
| 6976 |
# This is similar to how AIX traditionally builds it's shared libraries. |
# This is similar to how AIX traditionally builds its shared libraries. |
| 6977 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
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' |
| 6978 |
fi |
fi |
| 6979 |
fi |
fi |
| 6980 |
;; |
;; |
| 6987 |
ld_shlibs=no |
ld_shlibs=no |
| 6988 |
;; |
;; |
| 6989 |
|
|
| 6990 |
bsdi4*) |
bsdi[45]*) |
| 6991 |
export_dynamic_flag_spec=-rdynamic |
export_dynamic_flag_spec=-rdynamic |
| 6992 |
;; |
;; |
| 6993 |
|
|
| 7001 |
# Tell ltmain to make .lib files, not .a files. |
# Tell ltmain to make .lib files, not .a files. |
| 7002 |
libext=lib |
libext=lib |
| 7003 |
# Tell ltmain to make .dll files, not .so files. |
# Tell ltmain to make .dll files, not .so files. |
| 7004 |
shrext=".dll" |
shrext_cmds=".dll" |
| 7005 |
# FIXME: Setting linknames here is a bad hack. |
# FIXME: Setting linknames here is a bad hack. |
| 7006 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 7007 |
# The linker will automatically build a .lib file if we build a DLL. |
# The linker will automatically build a .lib file if we build a DLL. |
| 7008 |
old_archive_From_new_cmds='true' |
old_archive_From_new_cmds='true' |
| 7009 |
# FIXME: Should let the user specify the lib program. |
# FIXME: Should let the user specify the lib program. |
| 7010 |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 7011 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 7012 |
enable_shared_with_static_runtimes=yes |
enable_shared_with_static_runtimes=yes |
| 7013 |
;; |
;; |
| 7014 |
|
|
| 7015 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
| 7016 |
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
case $host_os in |
| 7017 |
archive_cmds_need_lc=no |
rhapsody* | darwin1.[012]) |
| 7018 |
case "$host_os" in |
allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 7019 |
rhapsody* | darwin1.[012]) |
;; |
| 7020 |
allow_undefined_flag='-undefined suppress' |
*) # Darwin 1.3 on |
| 7021 |
;; |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 7022 |
*) # Darwin 1.3 on |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 7023 |
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' |
else |
| 7024 |
;; |
case ${MACOSX_DEPLOYMENT_TARGET} in |
| 7025 |
|
10.[012]) |
| 7026 |
|
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 7027 |
|
;; |
| 7028 |
|
10.*) |
| 7029 |
|
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 7030 |
|
;; |
| 7031 |
|
esac |
| 7032 |
|
fi |
| 7033 |
|
;; |
| 7034 |
esac |
esac |
| 7035 |
# FIXME: Relying on posixy $() will cause problems for |
archive_cmds_need_lc=no |
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
|
|
# `"' quotes if we put them in here... so don't! |
|
|
lt_int_apple_cc_single_mod=no |
|
|
output_verbose_link_cmd='echo' |
|
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
lt_int_apple_cc_single_mod=yes |
|
|
fi |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
else |
|
|
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
fi |
|
|
module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
else |
|
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
fi |
|
|
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
| 7036 |
hardcode_direct=no |
hardcode_direct=no |
| 7037 |
hardcode_automatic=yes |
hardcode_automatic=yes |
| 7038 |
hardcode_shlibpath_var=unsupported |
hardcode_shlibpath_var=unsupported |
| 7039 |
whole_archive_flag_spec='-all_load $convenience' |
whole_archive_flag_spec='' |
| 7040 |
link_all_deplibs=yes |
link_all_deplibs=yes |
| 7041 |
|
if test "$GCC" = yes ; then |
| 7042 |
|
output_verbose_link_cmd='echo' |
| 7043 |
|
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 7044 |
|
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 7045 |
|
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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 7046 |
|
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 7047 |
|
else |
| 7048 |
|
case $cc_basename in |
| 7049 |
|
xlc*) |
| 7050 |
|
output_verbose_link_cmd='echo' |
| 7051 |
|
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
| 7052 |
|
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7053 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 7054 |
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7055 |
|
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
| 7056 |
|
;; |
| 7057 |
|
*) |
| 7058 |
|
ld_shlibs=no |
| 7059 |
|
;; |
| 7060 |
|
esac |
| 7061 |
fi |
fi |
| 7062 |
;; |
;; |
| 7063 |
|
|
| 7091 |
;; |
;; |
| 7092 |
|
|
| 7093 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 7094 |
freebsd*) |
freebsd* | dragonfly*) |
| 7095 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7096 |
hardcode_libdir_flag_spec='-R$libdir' |
hardcode_libdir_flag_spec='-R$libdir' |
| 7097 |
hardcode_direct=yes |
hardcode_direct=yes |
| 7114 |
export_dynamic_flag_spec='${wl}-E' |
export_dynamic_flag_spec='${wl}-E' |
| 7115 |
;; |
;; |
| 7116 |
|
|
| 7117 |
hpux10* | hpux11*) |
hpux10*) |
| 7118 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7119 |
case "$host_cpu" in |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7120 |
hppa*64*|ia64*) |
else |
| 7121 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7122 |
|
fi |
| 7123 |
|
if test "$with_gnu_ld" = no; then |
| 7124 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7125 |
|
hardcode_libdir_separator=: |
| 7126 |
|
|
| 7127 |
|
hardcode_direct=yes |
| 7128 |
|
export_dynamic_flag_spec='${wl}-E' |
| 7129 |
|
|
| 7130 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 7131 |
|
# but as the default location of the library. |
| 7132 |
|
hardcode_minus_L=yes |
| 7133 |
|
fi |
| 7134 |
|
;; |
| 7135 |
|
|
| 7136 |
|
hpux11*) |
| 7137 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7138 |
|
case $host_cpu in |
| 7139 |
|
hppa*64*) |
| 7140 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7141 |
;; |
;; |
| 7142 |
|
ia64*) |
| 7143 |
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 7144 |
|
;; |
| 7145 |
*) |
*) |
| 7146 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7147 |
;; |
;; |
| 7148 |
esac |
esac |
| 7149 |
else |
else |
| 7150 |
case "$host_cpu" in |
case $host_cpu in |
| 7151 |
hppa*64*|ia64*) |
hppa*64*) |
| 7152 |
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7153 |
|
;; |
| 7154 |
|
ia64*) |
| 7155 |
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 7156 |
;; |
;; |
| 7157 |
*) |
*) |
| 7158 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7159 |
;; |
;; |
| 7160 |
esac |
esac |
| 7161 |
fi |
fi |
| 7162 |
if test "$with_gnu_ld" = no; then |
if test "$with_gnu_ld" = no; then |
| 7163 |
case "$host_cpu" in |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7164 |
hppa*64*) |
hardcode_libdir_separator=: |
| 7165 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
| 7166 |
|
case $host_cpu in |
| 7167 |
|
hppa*64*|ia64*) |
| 7168 |
hardcode_libdir_flag_spec_ld='+b $libdir' |
hardcode_libdir_flag_spec_ld='+b $libdir' |
|
hardcode_libdir_separator=: |
|
|
hardcode_direct=no |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
|
ia64*) |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
| 7169 |
hardcode_direct=no |
hardcode_direct=no |
| 7170 |
hardcode_shlibpath_var=no |
hardcode_shlibpath_var=no |
|
|
|
|
# hardcode_minus_L: Not really in the search PATH, |
|
|
# but as the default location of the library. |
|
|
hardcode_minus_L=yes |
|
| 7171 |
;; |
;; |
| 7172 |
*) |
*) |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
hardcode_libdir_separator=: |
|
| 7173 |
hardcode_direct=yes |
hardcode_direct=yes |
| 7174 |
export_dynamic_flag_spec='${wl}-E' |
export_dynamic_flag_spec='${wl}-E' |
| 7175 |
|
|
| 7213 |
;; |
;; |
| 7214 |
|
|
| 7215 |
openbsd*) |
openbsd*) |
| 7216 |
hardcode_direct=yes |
if test -f /usr/libexec/ld.so; then |
| 7217 |
hardcode_shlibpath_var=no |
hardcode_direct=yes |
| 7218 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
hardcode_shlibpath_var=no |
| 7219 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7220 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7221 |
export_dynamic_flag_spec='${wl}-E' |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 7222 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7223 |
|
export_dynamic_flag_spec='${wl}-E' |
| 7224 |
|
else |
| 7225 |
|
case $host_os in |
| 7226 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7227 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7228 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 7229 |
|
;; |
| 7230 |
|
*) |
| 7231 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7232 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7233 |
|
;; |
| 7234 |
|
esac |
| 7235 |
|
fi |
| 7236 |
else |
else |
| 7237 |
case $host_os in |
ld_shlibs=no |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
;; |
|
|
*) |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
;; |
|
|
esac |
|
| 7238 |
fi |
fi |
| 7239 |
;; |
;; |
| 7240 |
|
|
| 7267 |
allow_undefined_flag=' -expect_unresolved \*' |
allow_undefined_flag=' -expect_unresolved \*' |
| 7268 |
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 7269 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 7270 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
| 7271 |
|
|
| 7272 |
# Both c and cxx compiler support -rpath directly |
# Both c and cxx compiler support -rpath directly |
| 7273 |
hardcode_libdir_flag_spec='-rpath $libdir' |
hardcode_libdir_flag_spec='-rpath $libdir' |
| 7275 |
hardcode_libdir_separator=: |
hardcode_libdir_separator=: |
| 7276 |
;; |
;; |
| 7277 |
|
|
|
sco3.2v5*) |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_shlibpath_var=no |
|
|
export_dynamic_flag_spec='${wl}-Bexport' |
|
|
runpath_var=LD_RUN_PATH |
|
|
hardcode_runpath_var=yes |
|
|
;; |
|
|
|
|
| 7278 |
solaris*) |
solaris*) |
| 7279 |
no_undefined_flag=' -z text' |
no_undefined_flag=' -z text' |
| 7280 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
| 7281 |
|
wlarc='${wl}' |
| 7282 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7283 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7284 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 7285 |
else |
else |
| 7286 |
|
wlarc='' |
| 7287 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7288 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7289 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 7292 |
hardcode_shlibpath_var=no |
hardcode_shlibpath_var=no |
| 7293 |
case $host_os in |
case $host_os in |
| 7294 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 7295 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
*) |
| 7296 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
# The compiler driver will combine and reorder linker options, |
| 7297 |
|
# but understands `-z linker_flag'. GCC discards it without `$wl', |
| 7298 |
|
# but is careful enough not to reorder. |
| 7299 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 7300 |
|
if test "$GCC" = yes; then |
| 7301 |
|
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 7302 |
|
else |
| 7303 |
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 7304 |
|
fi |
| 7305 |
|
;; |
| 7306 |
esac |
esac |
| 7307 |
link_all_deplibs=yes |
link_all_deplibs=yes |
| 7308 |
;; |
;; |
| 7359 |
fi |
fi |
| 7360 |
;; |
;; |
| 7361 |
|
|
| 7362 |
sysv4.2uw2*) |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 7363 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
no_undefined_flag='${wl}-z,text' |
| 7364 |
hardcode_direct=yes |
archive_cmds_need_lc=no |
|
hardcode_minus_L=no |
|
| 7365 |
hardcode_shlibpath_var=no |
hardcode_shlibpath_var=no |
| 7366 |
hardcode_runpath_var=yes |
runpath_var='LD_RUN_PATH' |
|
runpath_var=LD_RUN_PATH |
|
|
;; |
|
| 7367 |
|
|
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
|
no_undefined_flag='${wl}-z ${wl}text' |
|
| 7368 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
| 7369 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7370 |
|
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7371 |
else |
else |
| 7372 |
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7373 |
|
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7374 |
fi |
fi |
|
runpath_var='LD_RUN_PATH' |
|
|
hardcode_shlibpath_var=no |
|
| 7375 |
;; |
;; |
| 7376 |
|
|
| 7377 |
sysv5*) |
sysv5* | sco3.2v5* | sco5v6*) |
| 7378 |
no_undefined_flag=' -z text' |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 7379 |
# $CC -shared without GNU ld will not create a library from C++ |
# link with -lc, and that would cause any symbols used from libc to |
| 7380 |
# object files and a static libstdc++, better avoid it by now |
# always be unresolved, which means just about no library would |
| 7381 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
# ever link correctly. If we're not using GNU ld we use -z text |
| 7382 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 7383 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
# as -z defs. |
| 7384 |
hardcode_libdir_flag_spec= |
no_undefined_flag='${wl}-z,text' |
| 7385 |
|
allow_undefined_flag='${wl}-z,nodefs' |
| 7386 |
|
archive_cmds_need_lc=no |
| 7387 |
hardcode_shlibpath_var=no |
hardcode_shlibpath_var=no |
| 7388 |
|
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 7389 |
|
hardcode_libdir_separator=':' |
| 7390 |
|
link_all_deplibs=yes |
| 7391 |
|
export_dynamic_flag_spec='${wl}-Bexport' |
| 7392 |
runpath_var='LD_RUN_PATH' |
runpath_var='LD_RUN_PATH' |
| 7393 |
|
|
| 7394 |
|
if test "$GCC" = yes; then |
| 7395 |
|
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7396 |
|
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7397 |
|
else |
| 7398 |
|
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7399 |
|
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7400 |
|
fi |
| 7401 |
;; |
;; |
| 7402 |
|
|
| 7403 |
uts4*) |
uts4*) |
| 7416 |
echo "${ECHO_T}$ld_shlibs" >&6 |
echo "${ECHO_T}$ld_shlibs" >&6 |
| 7417 |
test "$ld_shlibs" = no && can_build_shared=no |
test "$ld_shlibs" = no && can_build_shared=no |
| 7418 |
|
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
if test "$GCC" = yes; then |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
fi |
|
|
|
|
| 7419 |
# |
# |
| 7420 |
# Do we need to explicitly link libc? |
# Do we need to explicitly link libc? |
| 7421 |
# |
# |
| 7436 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7437 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7438 |
$rm conftest* |
$rm conftest* |
| 7439 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7440 |
|
|
| 7441 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7442 |
(eval $ac_compile) 2>&5 |
(eval $ac_compile) 2>&5 |
| 7448 |
libobjs=conftest.$ac_objext |
libobjs=conftest.$ac_objext |
| 7449 |
deplibs= |
deplibs= |
| 7450 |
wl=$lt_prog_compiler_wl |
wl=$lt_prog_compiler_wl |
| 7451 |
|
pic_flag=$lt_prog_compiler_pic |
| 7452 |
compiler_flags=-v |
compiler_flags=-v |
| 7453 |
linker_flags=-v |
linker_flags=-v |
| 7454 |
verstring= |
verstring= |
| 7479 |
;; |
;; |
| 7480 |
esac |
esac |
| 7481 |
|
|
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
hardcode_action= |
|
|
if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
test -n "$runpath_var " || \ |
|
|
test "X$hardcode_automatic"="Xyes" ; then |
|
|
|
|
|
# We can hardcode non-existant directories. |
|
|
if test "$hardcode_direct" != no && |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
# have to relink, otherwise we might link with an installed library |
|
|
# when we should be linking with a yet-to-be-installed one |
|
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
|
test "$hardcode_minus_L" != no; then |
|
|
# Linking always hardcodes the temporary library directory. |
|
|
hardcode_action=relink |
|
|
else |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
hardcode_action=immediate |
|
|
fi |
|
|
else |
|
|
# We cannot hardcode anything, or else we can only hardcode existing |
|
|
# directories. |
|
|
hardcode_action=unsupported |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
echo "${ECHO_T}$hardcode_action" >&6 |
|
|
|
|
|
if test "$hardcode_action" = relink; then |
|
|
# Fast installation is not supported |
|
|
enable_fast_install=no |
|
|
elif test "$shlibpath_overrides_runpath" = yes || |
|
|
test "$enable_shared" = no; then |
|
|
# Fast installation is not necessary |
|
|
enable_fast_install=needless |
|
|
fi |
|
|
|
|
|
striplib= |
|
|
old_striplib= |
|
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
echo "$as_me:$LINENO: result: yes" >&5 |
|
|
echo "${ECHO_T}yes" >&6 |
|
|
else |
|
|
# FIXME - insert some real tests, host_os isn't really good enough |
|
|
case $host_os in |
|
|
darwin*) |
|
|
if test -n "$STRIP" ; then |
|
|
striplib="$STRIP -x" |
|
|
echo "$as_me:$LINENO: result: yes" >&5 |
|
|
echo "${ECHO_T}yes" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
;; |
|
|
*) |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
|
|
| 7482 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7483 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 7484 |
library_names_spec= |
library_names_spec= |
| 7485 |
libname_spec='lib$name' |
libname_spec='lib$name' |
| 7486 |
soname_spec= |
soname_spec= |
| 7487 |
shrext=".so" |
shrext_cmds=".so" |
| 7488 |
postinstall_cmds= |
postinstall_cmds= |
| 7489 |
postuninstall_cmds= |
postuninstall_cmds= |
| 7490 |
finish_cmds= |
finish_cmds= |
| 7494 |
version_type=none |
version_type=none |
| 7495 |
dynamic_linker="$host_os ld.so" |
dynamic_linker="$host_os ld.so" |
| 7496 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 7497 |
|
|
| 7498 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
| 7499 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
case $host_os in |
| 7500 |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 7501 |
|
*) lt_awk_arg="/^libraries:/" ;; |
| 7502 |
|
esac |
| 7503 |
|
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7504 |
|
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
| 7505 |
# if the path contains ";" then we assume it to be the separator |
# if the path contains ";" then we assume it to be the separator |
| 7506 |
# otherwise default to the standard path separator (i.e. ":") - it is |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 7507 |
# assumed that no part of a normal pathname contains ";" but that should |
# assumed that no part of a normal pathname contains ";" but that should |
| 7508 |
# okay in the real world where ";" in dirpaths is itself problematic. |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 7509 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 7510 |
else |
else |
| 7511 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7512 |
fi |
fi |
| 7513 |
|
# Ok, now we have the path, separated by spaces, we can step through it |
| 7514 |
|
# and add multilib dir if necessary. |
| 7515 |
|
lt_tmp_lt_search_path_spec= |
| 7516 |
|
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 7517 |
|
for lt_sys_path in $lt_search_path_spec; do |
| 7518 |
|
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 7519 |
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 7520 |
|
else |
| 7521 |
|
test -d "$lt_sys_path" && \ |
| 7522 |
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 7523 |
|
fi |
| 7524 |
|
done |
| 7525 |
|
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
| 7526 |
|
BEGIN {RS=" "; FS="/|\n";} { |
| 7527 |
|
lt_foo=""; |
| 7528 |
|
lt_count=0; |
| 7529 |
|
for (lt_i = NF; lt_i > 0; lt_i--) { |
| 7530 |
|
if ($lt_i != "" && $lt_i != ".") { |
| 7531 |
|
if ($lt_i == "..") { |
| 7532 |
|
lt_count++; |
| 7533 |
|
} else { |
| 7534 |
|
if (lt_count == 0) { |
| 7535 |
|
lt_foo="/" $lt_i lt_foo; |
| 7536 |
|
} else { |
| 7537 |
|
lt_count--; |
| 7538 |
|
} |
| 7539 |
|
} |
| 7540 |
|
} |
| 7541 |
|
} |
| 7542 |
|
if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 7543 |
|
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 7544 |
|
}'` |
| 7545 |
|
sys_lib_search_path_spec=`echo $lt_search_path_spec` |
| 7546 |
else |
else |
| 7547 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7548 |
fi |
fi |
| 7563 |
soname_spec='${libname}${release}${shared_ext}$major' |
soname_spec='${libname}${release}${shared_ext}$major' |
| 7564 |
;; |
;; |
| 7565 |
|
|
| 7566 |
aix4* | aix5*) |
aix[4-9]*) |
| 7567 |
version_type=linux |
version_type=linux |
| 7568 |
need_lib_prefix=no |
need_lib_prefix=no |
| 7569 |
need_version=no |
need_version=no |
| 7610 |
amigaos*) |
amigaos*) |
| 7611 |
library_names_spec='$libname.ixlibrary $libname.a' |
library_names_spec='$libname.ixlibrary $libname.a' |
| 7612 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 7613 |
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' |
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' |
| 7614 |
;; |
;; |
| 7615 |
|
|
| 7616 |
beos*) |
beos*) |
| 7619 |
shlibpath_var=LIBRARY_PATH |
shlibpath_var=LIBRARY_PATH |
| 7620 |
;; |
;; |
| 7621 |
|
|
| 7622 |
bsdi4*) |
bsdi[45]*) |
| 7623 |
version_type=linux |
version_type=linux |
| 7624 |
need_version=no |
need_version=no |
| 7625 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7635 |
|
|
| 7636 |
cygwin* | mingw* | pw32*) |
cygwin* | mingw* | pw32*) |
| 7637 |
version_type=windows |
version_type=windows |
| 7638 |
shrext=".dll" |
shrext_cmds=".dll" |
| 7639 |
need_version=no |
need_version=no |
| 7640 |
need_lib_prefix=no |
need_lib_prefix=no |
| 7641 |
|
|
| 7647 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 7648 |
dldir=$destdir/`dirname \$dlpath`~ |
dldir=$destdir/`dirname \$dlpath`~ |
| 7649 |
test -d \$dldir || mkdir -p \$dldir~ |
test -d \$dldir || mkdir -p \$dldir~ |
| 7650 |
$install_prog $dir/$dlname \$dldir/$dlname' |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 7651 |
|
chmod a+x \$dldir/$dlname' |
| 7652 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 7653 |
dlpath=$dir/\$dldll~ |
dlpath=$dir/\$dldll~ |
| 7654 |
$rm \$dlpath' |
$rm \$dlpath' |
| 7658 |
cygwin*) |
cygwin*) |
| 7659 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7660 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7661 |
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 7662 |
;; |
;; |
| 7663 |
mingw*) |
mingw*) |
| 7664 |
# MinGW DLLs use traditional 'lib' prefix |
# MinGW DLLs use traditional 'lib' prefix |
| 7678 |
;; |
;; |
| 7679 |
pw32*) |
pw32*) |
| 7680 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 7681 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7682 |
;; |
;; |
| 7683 |
esac |
esac |
| 7684 |
;; |
;; |
| 7697 |
version_type=darwin |
version_type=darwin |
| 7698 |
need_lib_prefix=no |
need_lib_prefix=no |
| 7699 |
need_version=no |
need_version=no |
|
# FIXME: Relying on posixy $() will cause problems for |
|
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
# yet detect zsh echo's removal of \ escapes. |
|
| 7700 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 7701 |
soname_spec='${libname}${release}${major}$shared_ext' |
soname_spec='${libname}${release}${major}$shared_ext' |
| 7702 |
shlibpath_overrides_runpath=yes |
shlibpath_overrides_runpath=yes |
| 7703 |
shlibpath_var=DYLD_LIBRARY_PATH |
shlibpath_var=DYLD_LIBRARY_PATH |
| 7704 |
shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 7705 |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
| 7706 |
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
fi |
|
| 7707 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7708 |
;; |
;; |
| 7709 |
|
|
| 7720 |
dynamic_linker=no |
dynamic_linker=no |
| 7721 |
;; |
;; |
| 7722 |
|
|
| 7723 |
freebsd*) |
freebsd* | dragonfly*) |
| 7724 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
# DragonFly does not have aout. When/if they implement a new |
| 7725 |
|
# versioning mechanism, adjust this. |
| 7726 |
|
if test -x /usr/bin/objformat; then |
| 7727 |
|
objformat=`/usr/bin/objformat` |
| 7728 |
|
else |
| 7729 |
|
case $host_os in |
| 7730 |
|
freebsd[123]*) objformat=aout ;; |
| 7731 |
|
*) objformat=elf ;; |
| 7732 |
|
esac |
| 7733 |
|
fi |
| 7734 |
version_type=freebsd-$objformat |
version_type=freebsd-$objformat |
| 7735 |
case $version_type in |
case $version_type in |
| 7736 |
freebsd-elf*) |
freebsd-elf*) |
| 7748 |
freebsd2*) |
freebsd2*) |
| 7749 |
shlibpath_overrides_runpath=yes |
shlibpath_overrides_runpath=yes |
| 7750 |
;; |
;; |
| 7751 |
freebsd3.01* | freebsdelf3.01*) |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 7752 |
shlibpath_overrides_runpath=yes |
shlibpath_overrides_runpath=yes |
| 7753 |
hardcode_into_libs=yes |
hardcode_into_libs=yes |
| 7754 |
;; |
;; |
| 7755 |
*) # from 3.2 on |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 7756 |
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 7757 |
shlibpath_overrides_runpath=no |
shlibpath_overrides_runpath=no |
| 7758 |
hardcode_into_libs=yes |
hardcode_into_libs=yes |
| 7759 |
;; |
;; |
| 7760 |
|
*) # from 4.6 on, and DragonFly |
| 7761 |
|
shlibpath_overrides_runpath=yes |
| 7762 |
|
hardcode_into_libs=yes |
| 7763 |
|
;; |
| 7764 |
esac |
esac |
| 7765 |
;; |
;; |
| 7766 |
|
|
| 7780 |
version_type=sunos |
version_type=sunos |
| 7781 |
need_lib_prefix=no |
need_lib_prefix=no |
| 7782 |
need_version=no |
need_version=no |
| 7783 |
case "$host_cpu" in |
case $host_cpu in |
| 7784 |
ia64*) |
ia64*) |
| 7785 |
shrext='.so' |
shrext_cmds='.so' |
| 7786 |
hardcode_into_libs=yes |
hardcode_into_libs=yes |
| 7787 |
dynamic_linker="$host_os dld.so" |
dynamic_linker="$host_os dld.so" |
| 7788 |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
| 7797 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7798 |
;; |
;; |
| 7799 |
hppa*64*) |
hppa*64*) |
| 7800 |
shrext='.sl' |
shrext_cmds='.sl' |
| 7801 |
hardcode_into_libs=yes |
hardcode_into_libs=yes |
| 7802 |
dynamic_linker="$host_os dld.sl" |
dynamic_linker="$host_os dld.sl" |
| 7803 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7808 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7809 |
;; |
;; |
| 7810 |
*) |
*) |
| 7811 |
shrext='.sl' |
shrext_cmds='.sl' |
| 7812 |
dynamic_linker="$host_os dld.sl" |
dynamic_linker="$host_os dld.sl" |
| 7813 |
shlibpath_var=SHLIB_PATH |
shlibpath_var=SHLIB_PATH |
| 7814 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7820 |
postinstall_cmds='chmod 555 $lib' |
postinstall_cmds='chmod 555 $lib' |
| 7821 |
;; |
;; |
| 7822 |
|
|
| 7823 |
|
interix[3-9]*) |
| 7824 |
|
version_type=linux |
| 7825 |
|
need_lib_prefix=no |
| 7826 |
|
need_version=no |
| 7827 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7828 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 7829 |
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 7830 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 7831 |
|
shlibpath_overrides_runpath=no |
| 7832 |
|
hardcode_into_libs=yes |
| 7833 |
|
;; |
| 7834 |
|
|
| 7835 |
irix5* | irix6* | nonstopux*) |
irix5* | irix6* | nonstopux*) |
| 7836 |
case $host_os in |
case $host_os in |
| 7837 |
nonstopux*) version_type=nonstopux ;; |
nonstopux*) version_type=nonstopux ;; |
| 7875 |
;; |
;; |
| 7876 |
|
|
| 7877 |
# This must be Linux ELF. |
# This must be Linux ELF. |
| 7878 |
linux*) |
linux* | k*bsd*-gnu) |
| 7879 |
version_type=linux |
version_type=linux |
| 7880 |
need_lib_prefix=no |
need_lib_prefix=no |
| 7881 |
need_version=no |
need_version=no |
| 7889 |
# before this can be enabled. |
# before this can be enabled. |
| 7890 |
hardcode_into_libs=yes |
hardcode_into_libs=yes |
| 7891 |
|
|
| 7892 |
|
# Append ld.so.conf contents to the search path |
| 7893 |
|
if test -f /etc/ld.so.conf; then |
| 7894 |
|
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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 7895 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 7896 |
|
fi |
| 7897 |
|
|
| 7898 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7899 |
# powerpc, because MkLinux only supported shared libraries with the |
# powerpc, because MkLinux only supported shared libraries with the |
| 7900 |
# GNU dynamic linker. Since this was broken with cross compilers, |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 7913 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7914 |
dynamic_linker='NetBSD (a.out) ld.so' |
dynamic_linker='NetBSD (a.out) ld.so' |
| 7915 |
else |
else |
| 7916 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7917 |
soname_spec='${libname}${release}${shared_ext}$major' |
soname_spec='${libname}${release}${shared_ext}$major' |
| 7918 |
dynamic_linker='NetBSD ld.elf_so' |
dynamic_linker='NetBSD ld.elf_so' |
| 7919 |
fi |
fi |
| 7929 |
shlibpath_overrides_runpath=yes |
shlibpath_overrides_runpath=yes |
| 7930 |
;; |
;; |
| 7931 |
|
|
| 7932 |
nto-qnx) |
nto-qnx*) |
| 7933 |
version_type=linux |
version_type=linux |
| 7934 |
need_lib_prefix=no |
need_lib_prefix=no |
| 7935 |
need_version=no |
need_version=no |
| 7941 |
|
|
| 7942 |
openbsd*) |
openbsd*) |
| 7943 |
version_type=sunos |
version_type=sunos |
| 7944 |
|
sys_lib_dlsearch_path_spec="/usr/lib" |
| 7945 |
need_lib_prefix=no |
need_lib_prefix=no |
| 7946 |
need_version=no |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 7947 |
|
case $host_os in |
| 7948 |
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 7949 |
|
*) need_version=no ;; |
| 7950 |
|
esac |
| 7951 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7952 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7953 |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
| 7967 |
|
|
| 7968 |
os2*) |
os2*) |
| 7969 |
libname_spec='$name' |
libname_spec='$name' |
| 7970 |
shrext=".dll" |
shrext_cmds=".dll" |
| 7971 |
need_lib_prefix=no |
need_lib_prefix=no |
| 7972 |
library_names_spec='$libname${shared_ext} $libname.a' |
library_names_spec='$libname${shared_ext} $libname.a' |
| 7973 |
dynamic_linker='OS/2 ld.exe' |
dynamic_linker='OS/2 ld.exe' |
| 7985 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7986 |
;; |
;; |
| 7987 |
|
|
| 7988 |
sco3.2v5*) |
rdos*) |
| 7989 |
version_type=osf |
dynamic_linker=no |
|
soname_spec='${libname}${release}${shared_ext}$major' |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
| 7990 |
;; |
;; |
| 7991 |
|
|
| 7992 |
solaris*) |
solaris*) |
| 8014 |
need_version=yes |
need_version=yes |
| 8015 |
;; |
;; |
| 8016 |
|
|
| 8017 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.3*) |
| 8018 |
version_type=linux |
version_type=linux |
| 8019 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8020 |
soname_spec='${libname}${release}${shared_ext}$major' |
soname_spec='${libname}${release}${shared_ext}$major' |
| 8047 |
fi |
fi |
| 8048 |
;; |
;; |
| 8049 |
|
|
| 8050 |
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 8051 |
|
version_type=freebsd-elf |
| 8052 |
|
need_lib_prefix=no |
| 8053 |
|
need_version=no |
| 8054 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8055 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
| 8056 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 8057 |
|
hardcode_into_libs=yes |
| 8058 |
|
if test "$with_gnu_ld" = yes; then |
| 8059 |
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 8060 |
|
shlibpath_overrides_runpath=no |
| 8061 |
|
else |
| 8062 |
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 8063 |
|
shlibpath_overrides_runpath=yes |
| 8064 |
|
case $host_os in |
| 8065 |
|
sco3.2v5*) |
| 8066 |
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 8067 |
|
;; |
| 8068 |
|
esac |
| 8069 |
|
fi |
| 8070 |
|
sys_lib_dlsearch_path_spec='/usr/lib' |
| 8071 |
|
;; |
| 8072 |
|
|
| 8073 |
uts4*) |
uts4*) |
| 8074 |
version_type=linux |
version_type=linux |
| 8075 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8085 |
echo "${ECHO_T}$dynamic_linker" >&6 |
echo "${ECHO_T}$dynamic_linker" >&6 |
| 8086 |
test "$dynamic_linker" = no && can_build_shared=no |
test "$dynamic_linker" = no && can_build_shared=no |
| 8087 |
|
|
| 8088 |
|
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 8089 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8090 |
|
else |
| 8091 |
|
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" |
| 8092 |
|
fi |
| 8093 |
|
|
| 8094 |
|
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 8095 |
|
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 8096 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8097 |
|
else |
| 8098 |
|
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" |
| 8099 |
|
fi |
| 8100 |
|
|
| 8101 |
|
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 8102 |
|
|
| 8103 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 8104 |
|
if test "$GCC" = yes; then |
| 8105 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 8106 |
|
fi |
| 8107 |
|
|
| 8108 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 8109 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 8110 |
|
hardcode_action= |
| 8111 |
|
if test -n "$hardcode_libdir_flag_spec" || \ |
| 8112 |
|
test -n "$runpath_var" || \ |
| 8113 |
|
test "X$hardcode_automatic" = "Xyes" ; then |
| 8114 |
|
|
| 8115 |
|
# We can hardcode non-existant directories. |
| 8116 |
|
if test "$hardcode_direct" != no && |
| 8117 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 8118 |
|
# have to relink, otherwise we might link with an installed library |
| 8119 |
|
# when we should be linking with a yet-to-be-installed one |
| 8120 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 8121 |
|
test "$hardcode_minus_L" != no; then |
| 8122 |
|
# Linking always hardcodes the temporary library directory. |
| 8123 |
|
hardcode_action=relink |
| 8124 |
|
else |
| 8125 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 8126 |
|
hardcode_action=immediate |
| 8127 |
|
fi |
| 8128 |
|
else |
| 8129 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
| 8130 |
|
# directories. |
| 8131 |
|
hardcode_action=unsupported |
| 8132 |
|
fi |
| 8133 |
|
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 8134 |
|
echo "${ECHO_T}$hardcode_action" >&6 |
| 8135 |
|
|
| 8136 |
|
if test "$hardcode_action" = relink; then |
| 8137 |
|
# Fast installation is not supported |
| 8138 |
|
enable_fast_install=no |
| 8139 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
| 8140 |
|
test "$enable_shared" = no; then |
| 8141 |
|
# Fast installation is not necessary |
| 8142 |
|
enable_fast_install=needless |
| 8143 |
|
fi |
| 8144 |
|
|
| 8145 |
|
striplib= |
| 8146 |
|
old_striplib= |
| 8147 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 8148 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 8149 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 8150 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 8151 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 8152 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
| 8153 |
|
echo "${ECHO_T}yes" >&6 |
| 8154 |
|
else |
| 8155 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
| 8156 |
|
case $host_os in |
| 8157 |
|
darwin*) |
| 8158 |
|
if test -n "$STRIP" ; then |
| 8159 |
|
striplib="$STRIP -x" |
| 8160 |
|
old_striplib="$STRIP -S" |
| 8161 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
| 8162 |
|
echo "${ECHO_T}yes" >&6 |
| 8163 |
|
else |
| 8164 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 8165 |
|
echo "${ECHO_T}no" >&6 |
| 8166 |
|
fi |
| 8167 |
|
;; |
| 8168 |
|
*) |
| 8169 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 8170 |
|
echo "${ECHO_T}no" >&6 |
| 8171 |
|
;; |
| 8172 |
|
esac |
| 8173 |
|
fi |
| 8174 |
|
|
| 8175 |
if test "x$enable_dlopen" != xyes; then |
if test "x$enable_dlopen" != xyes; then |
| 8176 |
enable_dlopen=unknown |
enable_dlopen=unknown |
| 8177 |
enable_dlopen_self=unknown |
enable_dlopen_self=unknown |
| 8390 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8391 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 8392 |
if test $ac_cv_lib_dld_shl_load = yes; then |
if test $ac_cv_lib_dld_shl_load = yes; then |
| 8393 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 8394 |
else |
else |
| 8395 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 8396 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 8631 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 8632 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 8633 |
if test $ac_cv_lib_dld_dld_link = yes; then |
if test $ac_cv_lib_dld_dld_link = yes; then |
| 8634 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 8635 |
fi |
fi |
| 8636 |
|
|
| 8637 |
|
|
| 8664 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 8665 |
|
|
| 8666 |
save_LDFLAGS="$LDFLAGS" |
save_LDFLAGS="$LDFLAGS" |
| 8667 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8668 |
|
|
| 8669 |
save_LIBS="$LIBS" |
save_LIBS="$LIBS" |
| 8670 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8680 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8681 |
lt_status=$lt_dlunknown |
lt_status=$lt_dlunknown |
| 8682 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
| 8683 |
#line 7947 "configure" |
#line 8683 "configure" |
| 8684 |
#include "confdefs.h" |
#include "confdefs.h" |
| 8685 |
|
|
| 8686 |
#if HAVE_DLFCN_H |
#if HAVE_DLFCN_H |
| 8737 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8738 |
/* dlclose (self); */ |
/* dlclose (self); */ |
| 8739 |
} |
} |
| 8740 |
|
else |
| 8741 |
|
puts (dlerror ()); |
| 8742 |
|
|
| 8743 |
exit (status); |
exit (status); |
| 8744 |
} |
} |
| 8748 |
ac_status=$? |
ac_status=$? |
| 8749 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8750 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8751 |
(./conftest; exit; ) 2>/dev/null |
(./conftest; exit; ) >&5 2>/dev/null |
| 8752 |
lt_status=$? |
lt_status=$? |
| 8753 |
case x$lt_status in |
case x$lt_status in |
| 8754 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8755 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8756 |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 8757 |
esac |
esac |
| 8758 |
else : |
else : |
| 8759 |
# compilation failed |
# compilation failed |
| 8768 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8769 |
|
|
| 8770 |
if test "x$lt_cv_dlopen_self" = xyes; then |
if test "x$lt_cv_dlopen_self" = xyes; then |
| 8771 |
LDFLAGS="$LDFLAGS $link_static_flag" |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 8772 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 8773 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8774 |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8780 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8781 |
lt_status=$lt_dlunknown |
lt_status=$lt_dlunknown |
| 8782 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
| 8783 |
#line 8045 "configure" |
#line 8783 "configure" |
| 8784 |
#include "confdefs.h" |
#include "confdefs.h" |
| 8785 |
|
|
| 8786 |
#if HAVE_DLFCN_H |
#if HAVE_DLFCN_H |
| 8837 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8838 |
/* dlclose (self); */ |
/* dlclose (self); */ |
| 8839 |
} |
} |
| 8840 |
|
else |
| 8841 |
|
puts (dlerror ()); |
| 8842 |
|
|
| 8843 |
exit (status); |
exit (status); |
| 8844 |
} |
} |
| 8848 |
ac_status=$? |
ac_status=$? |
| 8849 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8850 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8851 |
(./conftest; exit; ) 2>/dev/null |
(./conftest; exit; ) >&5 2>/dev/null |
| 8852 |
lt_status=$? |
lt_status=$? |
| 8853 |
case x$lt_status in |
case x$lt_status in |
| 8854 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8855 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8856 |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8857 |
esac |
esac |
| 8858 |
else : |
else : |
| 8859 |
# compilation failed |
# compilation failed |
| 8886 |
fi |
fi |
| 8887 |
|
|
| 8888 |
|
|
| 8889 |
# Report which librarie types wil actually be built |
# Report which library types will actually be built |
| 8890 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 8891 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 8892 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 8898 |
|
|
| 8899 |
# On AIX, shared libraries and static libraries use the same namespace, and |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 8900 |
# are all built from PIC. |
# are all built from PIC. |
| 8901 |
case "$host_os" in |
case $host_os in |
| 8902 |
aix3*) |
aix3*) |
| 8903 |
test "$enable_shared" = yes && enable_static=no |
test "$enable_shared" = yes && enable_static=no |
| 8904 |
if test -n "$RANLIB"; then |
if test -n "$RANLIB"; then |
| 8907 |
fi |
fi |
| 8908 |
;; |
;; |
| 8909 |
|
|
| 8910 |
aix4*) |
aix[4-9]*) |
| 8911 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 8912 |
test "$enable_shared" = yes && enable_static=no |
test "$enable_shared" = yes && enable_static=no |
| 8913 |
fi |
fi |
|
;; |
|
|
darwin* | rhapsody*) |
|
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
|
|
archive_cmds_need_lc=no |
|
|
case "$host_os" in |
|
|
rhapsody* | darwin1.[012]) |
|
|
allow_undefined_flag='-undefined suppress' |
|
|
;; |
|
|
*) # Darwin 1.3 on |
|
|
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' |
|
|
;; |
|
|
esac |
|
|
# FIXME: Relying on posixy $() will cause problems for |
|
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
|
|
# `"' quotes if we put them in here... so don't! |
|
|
output_verbose_link_cmd='echo' |
|
|
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
|
|
module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}' |
|
|
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
hardcode_direct=no |
|
|
hardcode_automatic=yes |
|
|
hardcode_shlibpath_var=unsupported |
|
|
whole_archive_flag_spec='-all_load $convenience' |
|
|
link_all_deplibs=yes |
|
|
fi |
|
| 8914 |
;; |
;; |
| 8915 |
esac |
esac |
| 8916 |
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 8936 |
# Now quote all the things that may contain metacharacters while being |
# Now quote all the things that may contain metacharacters while being |
| 8937 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| 8938 |
# variables and quote the copies for generation of the libtool script. |
# variables and quote the copies for generation of the libtool script. |
| 8939 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 8940 |
|
SED SHELL STRIP \ |
| 8941 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 8942 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 8943 |
deplibs_check_method reload_flag reload_cmds need_locks \ |
deplibs_check_method reload_flag reload_cmds need_locks \ |
| 8963 |
predeps \ |
predeps \ |
| 8964 |
postdeps \ |
postdeps \ |
| 8965 |
compiler_lib_search_path \ |
compiler_lib_search_path \ |
| 8966 |
|
compiler_lib_search_dirs \ |
| 8967 |
archive_cmds \ |
archive_cmds \ |
| 8968 |
archive_expsym_cmds \ |
archive_expsym_cmds \ |
| 8969 |
postinstall_cmds \ |
postinstall_cmds \ |
| 8979 |
module_cmds \ |
module_cmds \ |
| 8980 |
module_expsym_cmds \ |
module_expsym_cmds \ |
| 8981 |
lt_cv_prog_compiler_c_o \ |
lt_cv_prog_compiler_c_o \ |
| 8982 |
|
fix_srcfile_path \ |
| 8983 |
exclude_expsyms \ |
exclude_expsyms \ |
| 8984 |
include_expsyms; do |
include_expsyms; do |
| 8985 |
|
|
| 9024 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 9025 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 9026 |
# |
# |
| 9027 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| 9028 |
# Free Software Foundation, Inc. |
# Free Software Foundation, Inc. |
| 9029 |
# |
# |
| 9030 |
# This file is part of GNU Libtool: |
# This file is part of GNU Libtool: |
| 9042 |
# |
# |
| 9043 |
# You should have received a copy of the GNU General Public License |
# You should have received a copy of the GNU General Public License |
| 9044 |
# along with this program; if not, write to the Free Software |
# along with this program; if not, write to the Free Software |
| 9045 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 9046 |
# |
# |
| 9047 |
# As a special exception to the GNU General Public License, if you |
# As a special exception to the GNU General Public License, if you |
| 9048 |
# distribute this file as part of a program that contains a |
# distribute this file as part of a program that contains a |
| 9053 |
SED=$lt_SED |
SED=$lt_SED |
| 9054 |
|
|
| 9055 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 9056 |
Xsed="$SED -e s/^X//" |
Xsed="$SED -e 1s/^X//" |
| 9057 |
|
|
| 9058 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 9059 |
# if CDPATH is set. |
# if CDPATH is set. |
| 9060 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 9061 |
|
|
| 9062 |
# The names of the tagged configurations supported by this script. |
# The names of the tagged configurations supported by this script. |
| 9063 |
available_tags= |
available_tags= |
| 9087 |
# The host system. |
# The host system. |
| 9088 |
host_alias=$host_alias |
host_alias=$host_alias |
| 9089 |
host=$host |
host=$host |
| 9090 |
|
host_os=$host_os |
| 9091 |
|
|
| 9092 |
|
# The build system. |
| 9093 |
|
build_alias=$build_alias |
| 9094 |
|
build=$build |
| 9095 |
|
build_os=$build_os |
| 9096 |
|
|
| 9097 |
# An echo program that does not interpret backslashes. |
# An echo program that does not interpret backslashes. |
| 9098 |
echo=$lt_echo |
echo=$lt_echo |
| 9104 |
# A C compiler. |
# A C compiler. |
| 9105 |
LTCC=$lt_LTCC |
LTCC=$lt_LTCC |
| 9106 |
|
|
| 9107 |
|
# LTCC compiler flags. |
| 9108 |
|
LTCFLAGS=$lt_LTCFLAGS |
| 9109 |
|
|
| 9110 |
# A language-specific compiler. |
# A language-specific compiler. |
| 9111 |
CC=$lt_compiler |
CC=$lt_compiler |
| 9112 |
|
|
| 9126 |
NM=$lt_NM |
NM=$lt_NM |
| 9127 |
|
|
| 9128 |
# A symbol stripping program |
# A symbol stripping program |
| 9129 |
STRIP=$STRIP |
STRIP=$lt_STRIP |
| 9130 |
|
|
| 9131 |
# Used to examine libraries when file_magic_cmd begins "file" |
# Used to examine libraries when file_magic_cmd begins "file" |
| 9132 |
MAGIC_CMD=$MAGIC_CMD |
MAGIC_CMD=$MAGIC_CMD |
| 9157 |
libext="$libext" |
libext="$libext" |
| 9158 |
|
|
| 9159 |
# Shared library suffix (normally ".so"). |
# Shared library suffix (normally ".so"). |
| 9160 |
shrext='$shrext' |
shrext_cmds='$shrext_cmds' |
| 9161 |
|
|
| 9162 |
# Executable file suffix (normally ""). |
# Executable file suffix (normally ""). |
| 9163 |
exeext="$exeext" |
exeext="$exeext" |
| 9172 |
# Does compiler simultaneously support -c and -o options? |
# Does compiler simultaneously support -c and -o options? |
| 9173 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 9174 |
|
|
| 9175 |
# Must we lock files when doing compilation ? |
# Must we lock files when doing compilation? |
| 9176 |
need_locks=$lt_need_locks |
need_locks=$lt_need_locks |
| 9177 |
|
|
| 9178 |
# Do we need the lib prefix for modules? |
# Do we need the lib prefix for modules? |
| 9260 |
# shared library. |
# shared library. |
| 9261 |
postdeps=$lt_postdeps |
postdeps=$lt_postdeps |
| 9262 |
|
|
| 9263 |
|
# The directories searched by this compiler when creating a shared |
| 9264 |
|
# library |
| 9265 |
|
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 9266 |
|
|
| 9267 |
# The library search path used internally by the compiler when linking |
# The library search path used internally by the compiler when linking |
| 9268 |
# a shared library. |
# a shared library. |
| 9269 |
compiler_lib_search_path=$lt_compiler_lib_search_path |
compiler_lib_search_path=$lt_compiler_lib_search_path |
| 9352 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 9353 |
|
|
| 9354 |
# Fix the shell variable \$srcfile for the compiler. |
# Fix the shell variable \$srcfile for the compiler. |
| 9355 |
fix_srcfile_path="$fix_srcfile_path" |
fix_srcfile_path=$lt_fix_srcfile_path |
| 9356 |
|
|
| 9357 |
# Set to yes if exported symbols are required. |
# Set to yes if exported symbols are required. |
| 9358 |
always_export_symbols=$always_export_symbols |
always_export_symbols=$always_export_symbols |
| 9403 |
# If there is no Makefile yet, we rely on a make rule to execute |
# If there is no Makefile yet, we rely on a make rule to execute |
| 9404 |
# `config.status --recheck' to rerun these tests and create the |
# `config.status --recheck' to rerun these tests and create the |
| 9405 |
# libtool script then. |
# libtool script then. |
| 9406 |
test -f Makefile && make "$ltmain" |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 9407 |
|
if test -f "$ltmain_in"; then |
| 9408 |
|
test -f Makefile && make "$ltmain" |
| 9409 |
|
fi |
| 9410 |
fi |
fi |
| 9411 |
|
|
| 9412 |
|
|
| 9441 |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 9442 |
fi |
fi |
| 9443 |
fi |
fi |
| 9444 |
|
if test -z "$LTCFLAGS"; then |
| 9445 |
|
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 9446 |
|
fi |
| 9447 |
|
|
| 9448 |
# Extract list of available tagged configurations in $ofile. |
# Extract list of available tagged configurations in $ofile. |
| 9449 |
# Note that this assumes the entire list is on one line. |
# Note that this assumes the entire list is on one line. |
| 9474 |
|
|
| 9475 |
case $tagname in |
case $tagname in |
| 9476 |
CXX) |
CXX) |
| 9477 |
if test -n "$CXX" && test "X$CXX" != "Xno"; then |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 9478 |
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 9479 |
|
(test "X$CXX" != "Xg++"))) ; then |
| 9480 |
ac_ext=cc |
ac_ext=cc |
| 9481 |
ac_cpp='$CXXCPP $CPPFLAGS' |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 9482 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9496 |
hardcode_libdir_flag_spec_ld_CXX= |
hardcode_libdir_flag_spec_ld_CXX= |
| 9497 |
hardcode_libdir_separator_CXX= |
hardcode_libdir_separator_CXX= |
| 9498 |
hardcode_minus_L_CXX=no |
hardcode_minus_L_CXX=no |
| 9499 |
|
hardcode_shlibpath_var_CXX=unsupported |
| 9500 |
hardcode_automatic_CXX=no |
hardcode_automatic_CXX=no |
| 9501 |
module_cmds_CXX= |
module_cmds_CXX= |
| 9502 |
module_expsym_cmds_CXX= |
module_expsym_cmds_CXX= |
| 9512 |
predeps_CXX= |
predeps_CXX= |
| 9513 |
postdeps_CXX= |
postdeps_CXX= |
| 9514 |
compiler_lib_search_path_CXX= |
compiler_lib_search_path_CXX= |
| 9515 |
|
compiler_lib_search_dirs_CXX= |
| 9516 |
|
|
| 9517 |
# Source file extension for C++ test sources. |
# Source file extension for C++ test sources. |
| 9518 |
ac_ext=cc |
ac_ext=cpp |
| 9519 |
|
|
| 9520 |
# Object file extension for compiled C++ test sources. |
# Object file extension for compiled C++ test sources. |
| 9521 |
objext=o |
objext=o |
| 9522 |
objext_CXX=$objext |
objext_CXX=$objext |
| 9523 |
|
|
| 9524 |
# Code to be used in simple compile tests |
# Code to be used in simple compile tests |
| 9525 |
lt_simple_compile_test_code="int some_variable = 0;\n" |
lt_simple_compile_test_code="int some_variable = 0;" |
| 9526 |
|
|
| 9527 |
# Code to be used in simple link tests |
# Code to be used in simple link tests |
| 9528 |
lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 9529 |
|
|
| 9530 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9531 |
|
|
| 9532 |
# If no C compiler was specified, use CC. |
# If no C compiler was specified, use CC. |
| 9533 |
LTCC=${LTCC-"$CC"} |
LTCC=${LTCC-"$CC"} |
| 9534 |
|
|
| 9535 |
|
# If no C compiler flags were specified, use CFLAGS. |
| 9536 |
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 9537 |
|
|
| 9538 |
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
| 9539 |
compiler=$CC |
compiler=$CC |
| 9540 |
|
|
| 9541 |
|
|
| 9542 |
|
# save warnings/boilerplate of simple test code |
| 9543 |
|
ac_outfile=conftest.$ac_objext |
| 9544 |
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 9545 |
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9546 |
|
_lt_compiler_boilerplate=`cat conftest.err` |
| 9547 |
|
$rm conftest* |
| 9548 |
|
|
| 9549 |
|
ac_outfile=conftest.$ac_objext |
| 9550 |
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 9551 |
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9552 |
|
_lt_linker_boilerplate=`cat conftest.err` |
| 9553 |
|
$rm -r conftest* |
| 9554 |
|
|
| 9555 |
|
|
| 9556 |
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
| 9557 |
lt_save_CC=$CC |
lt_save_CC=$CC |
| 9558 |
lt_save_LD=$LD |
lt_save_LD=$LD |
| 9563 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 9564 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 9565 |
else |
else |
| 9566 |
unset lt_cv_prog_gnu_ld |
$as_unset lt_cv_prog_gnu_ld |
| 9567 |
fi |
fi |
| 9568 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
if test -n "${lt_cv_path_LDCXX+set}"; then |
| 9569 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
lt_cv_path_LD=$lt_cv_path_LDCXX |
| 9570 |
else |
else |
| 9571 |
unset lt_cv_path_LD |
$as_unset lt_cv_path_LD |
| 9572 |
fi |
fi |
| 9573 |
test -z "${LDCXX+set}" || LD=$LDCXX |
test -z "${LDCXX+set}" || LD=$LDCXX |
| 9574 |
CC=${CXX-"c++"} |
CC=${CXX-"c++"} |
| 9575 |
compiler=$CC |
compiler=$CC |
| 9576 |
compiler_CXX=$CC |
compiler_CXX=$CC |
| 9577 |
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
for cc_temp in $compiler""; do |
| 9578 |
|
case $cc_temp in |
| 9579 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 9580 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 9581 |
|
\-*) ;; |
| 9582 |
|
*) break;; |
| 9583 |
|
esac |
| 9584 |
|
done |
| 9585 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 9586 |
|
|
| 9587 |
|
|
| 9588 |
# We don't want -fno-exception wen compiling C++ code, so set the |
# We don't want -fno-exception wen compiling C++ code, so set the |
| 9589 |
# no_builtin_flag separately |
# no_builtin_flag separately |
| 9620 |
# Accept absolute paths. |
# Accept absolute paths. |
| 9621 |
[\\/]* | ?:[\\/]*) |
[\\/]* | ?:[\\/]*) |
| 9622 |
re_direlt='/[^/][^/]*/\.\./' |
re_direlt='/[^/][^/]*/\.\./' |
| 9623 |
# Canonicalize the path of ld |
# Canonicalize the pathname of ld |
| 9624 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 9625 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9626 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 9654 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9655 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 9656 |
# Check to see if the program is GNU ld. I'd rather use --version, |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 9657 |
# but apparently some GNU ld's only accept -v. |
# but apparently some variants of GNU ld only accept -v. |
| 9658 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 9659 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 9660 |
*GNU* | *'with BFD'*) |
*GNU* | *'with BFD'*) |
| 9688 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9689 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9690 |
else |
else |
| 9691 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 9692 |
case `"$LD" -v 2>&1 </dev/null` in |
case `$LD -v 2>&1 </dev/null` in |
| 9693 |
*GNU* | *'with BFD'*) |
*GNU* | *'with BFD'*) |
| 9694 |
lt_cv_prog_gnu_ld=yes |
lt_cv_prog_gnu_ld=yes |
| 9695 |
;; |
;; |
| 9734 |
# linker, instead of GNU ld. If possible, this setting should |
# linker, instead of GNU ld. If possible, this setting should |
| 9735 |
# overridden to take advantage of the native linker features on |
# overridden to take advantage of the native linker features on |
| 9736 |
# the platform it is being used on. |
# the platform it is being used on. |
| 9737 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 9738 |
fi |
fi |
| 9739 |
|
|
| 9740 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
| 9757 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
| 9758 |
ld_shlibs_CXX=no |
ld_shlibs_CXX=no |
| 9759 |
;; |
;; |
| 9760 |
aix4* | aix5*) |
aix[4-9]*) |
| 9761 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
| 9762 |
# On IA64, the linker does run time linking by default, so we don't |
# On IA64, the linker does run time linking by default, so we don't |
| 9763 |
# have to do anything special. |
# have to do anything special. |
| 9770 |
# Test if we are trying to use run time linking or normal |
# Test if we are trying to use run time linking or normal |
| 9771 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9772 |
# need to do runtime linking. |
# need to do runtime linking. |
| 9773 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9774 |
for ld_flag in $LDFLAGS; do |
for ld_flag in $LDFLAGS; do |
| 9775 |
case $ld_flag in |
case $ld_flag in |
| 9776 |
*-brtl*) |
*-brtl*) |
| 9779 |
;; |
;; |
| 9780 |
esac |
esac |
| 9781 |
done |
done |
| 9782 |
|
;; |
| 9783 |
esac |
esac |
| 9784 |
|
|
| 9785 |
exp_sym_flag='-bexport' |
exp_sym_flag='-bexport' |
| 9798 |
link_all_deplibs_CXX=yes |
link_all_deplibs_CXX=yes |
| 9799 |
|
|
| 9800 |
if test "$GXX" = yes; then |
if test "$GXX" = yes; then |
| 9801 |
case $host_os in aix4.012|aix4.012.*) |
case $host_os in aix4.[012]|aix4.[012].*) |
| 9802 |
# We only want to do this on AIX 4.2 and lower, the check |
# We only want to do this on AIX 4.2 and lower, the check |
| 9803 |
# below for broken collect2 doesn't work under 4.3+ |
# below for broken collect2 doesn't work under 4.3+ |
| 9804 |
collect2name=`${CC} -print-prog-name=collect2` |
collect2name=`${CC} -print-prog-name=collect2` |
| 9806 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9807 |
then |
then |
| 9808 |
# We have reworked collect2 |
# We have reworked collect2 |
| 9809 |
hardcode_direct_CXX=yes |
: |
| 9810 |
else |
else |
| 9811 |
# We have old collect2 |
# We have old collect2 |
| 9812 |
hardcode_direct_CXX=unsupported |
hardcode_direct_CXX=unsupported |
| 9817 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9818 |
hardcode_libdir_separator_CXX= |
hardcode_libdir_separator_CXX= |
| 9819 |
fi |
fi |
| 9820 |
|
;; |
| 9821 |
esac |
esac |
| 9822 |
shared_flag='-shared' |
shared_flag='-shared' |
| 9823 |
|
if test "$aix_use_runtimelinking" = yes; then |
| 9824 |
|
shared_flag="$shared_flag "'${wl}-G' |
| 9825 |
|
fi |
| 9826 |
else |
else |
| 9827 |
# not using gcc |
# not using gcc |
| 9828 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
| 9877 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9878 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
| 9879 |
|
|
| 9880 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
lt_aix_libpath_sed=' |
| 9881 |
}'` |
/Import File Strings/,/^$/ { |
| 9882 |
|
/^0/ { |
| 9883 |
|
s/^0 *\(.*\)$/\1/ |
| 9884 |
|
p |
| 9885 |
|
} |
| 9886 |
|
}' |
| 9887 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9888 |
# Check for a 64-bit object if we didn't find anything. |
# Check for a 64-bit object if we didn't find anything. |
| 9889 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
if test -z "$aix_libpath"; then |
| 9890 |
}'`; fi |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9891 |
|
fi |
| 9892 |
else |
else |
| 9893 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
| 9894 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
| 9898 |
|
|
| 9899 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9900 |
|
|
| 9901 |
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 9902 |
else |
else |
| 9903 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
| 9904 |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 9905 |
allow_undefined_flag_CXX="-z nodefs" |
allow_undefined_flag_CXX="-z nodefs" |
| 9906 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
archive_expsym_cmds_CXX="\$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" |
| 9907 |
else |
else |
| 9908 |
# Determine the default libpath from the value encoded in an empty executable. |
# Determine the default libpath from the value encoded in an empty executable. |
| 9909 |
cat >conftest.$ac_ext <<_ACEOF |
cat >conftest.$ac_ext <<_ACEOF |
| 9937 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9938 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
| 9939 |
|
|
| 9940 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
lt_aix_libpath_sed=' |
| 9941 |
}'` |
/Import File Strings/,/^$/ { |
| 9942 |
|
/^0/ { |
| 9943 |
|
s/^0 *\(.*\)$/\1/ |
| 9944 |
|
p |
| 9945 |
|
} |
| 9946 |
|
}' |
| 9947 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9948 |
# Check for a 64-bit object if we didn't find anything. |
# Check for a 64-bit object if we didn't find anything. |
| 9949 |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
if test -z "$aix_libpath"; then |
| 9950 |
}'`; fi |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9951 |
|
fi |
| 9952 |
else |
else |
| 9953 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
| 9954 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
| 9961 |
# -berok will link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
| 9962 |
no_undefined_flag_CXX=' ${wl}-bernotok' |
no_undefined_flag_CXX=' ${wl}-bernotok' |
| 9963 |
allow_undefined_flag_CXX=' ${wl}-berok' |
allow_undefined_flag_CXX=' ${wl}-berok' |
|
# -bexpall does not export symbols beginning with underscore (_) |
|
|
always_export_symbols_CXX=yes |
|
| 9964 |
# Exported symbols can be pulled into shared objects from archives |
# Exported symbols can be pulled into shared objects from archives |
| 9965 |
whole_archive_flag_spec_CXX=' ' |
whole_archive_flag_spec_CXX='$convenience' |
| 9966 |
archive_cmds_need_lc_CXX=yes |
archive_cmds_need_lc_CXX=yes |
| 9967 |
# This is similar to how AIX traditionally builds it's shared libraries. |
# This is similar to how AIX traditionally builds its shared libraries. |
| 9968 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
archive_expsym_cmds_CXX="\$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' |
| 9969 |
fi |
fi |
| 9970 |
fi |
fi |
| 9971 |
;; |
;; |
| 9972 |
|
|
| 9973 |
|
beos*) |
| 9974 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 9975 |
|
allow_undefined_flag_CXX=unsupported |
| 9976 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9977 |
|
# support --undefined. This deserves some investigation. FIXME |
| 9978 |
|
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9979 |
|
else |
| 9980 |
|
ld_shlibs_CXX=no |
| 9981 |
|
fi |
| 9982 |
|
;; |
| 9983 |
|
|
| 9984 |
chorus*) |
chorus*) |
| 9985 |
case $cc_basename in |
case $cc_basename in |
| 9986 |
*) |
*) |
| 9999 |
enable_shared_with_static_runtimes_CXX=yes |
enable_shared_with_static_runtimes_CXX=yes |
| 10000 |
|
|
| 10001 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 10002 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 10003 |
# If the export-symbols file already is a .def file (1st line |
# If the export-symbols file already is a .def file (1st line |
| 10004 |
# is EXPORTS), use it as is; otherwise, prepend... |
# is EXPORTS), use it as is; otherwise, prepend... |
| 10005 |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 10008 |
echo EXPORTS > $output_objdir/$soname.def; |
echo EXPORTS > $output_objdir/$soname.def; |
| 10009 |
cat $export_symbols >> $output_objdir/$soname.def; |
cat $export_symbols >> $output_objdir/$soname.def; |
| 10010 |
fi~ |
fi~ |
| 10011 |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 10012 |
else |
else |
| 10013 |
ld_shlibs_CXX=no |
ld_shlibs_CXX=no |
| 10014 |
fi |
fi |
| 10015 |
;; |
;; |
| 10016 |
|
darwin* | rhapsody*) |
| 10017 |
darwin* | rhapsody*) |
archive_cmds_need_lc_CXX=no |
| 10018 |
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
hardcode_direct_CXX=no |
| 10019 |
archive_cmds_need_lc_CXX=no |
hardcode_automatic_CXX=yes |
| 10020 |
case "$host_os" in |
hardcode_shlibpath_var_CXX=unsupported |
| 10021 |
rhapsody* | darwin1.[012]) |
whole_archive_flag_spec_CXX='' |
| 10022 |
allow_undefined_flag_CXX='-undefined suppress' |
link_all_deplibs_CXX=yes |
| 10023 |
;; |
allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 10024 |
*) # Darwin 1.3 on |
if test "$GXX" = yes ; then |
| 10025 |
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
output_verbose_link_cmd='echo' |
| 10026 |
;; |
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 10027 |
esac |
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 10028 |
lt_int_apple_cc_single_mod=no |
archive_expsym_cmds_CXX="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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 10029 |
output_verbose_link_cmd='echo' |
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 10030 |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 10031 |
lt_int_apple_cc_single_mod=yes |
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
| 10032 |
fi |
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
| 10033 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
fi |
|
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
else |
|
|
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
fi |
|
|
module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
|
|
|
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
| 10034 |
else |
else |
| 10035 |
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
case $cc_basename in |
| 10036 |
|
xlc*) |
| 10037 |
|
output_verbose_link_cmd='echo' |
| 10038 |
|
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
| 10039 |
|
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10040 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 10041 |
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 10042 |
|
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}' |
| 10043 |
|
;; |
| 10044 |
|
*) |
| 10045 |
|
ld_shlibs_CXX=no |
| 10046 |
|
;; |
| 10047 |
|
esac |
| 10048 |
fi |
fi |
| 10049 |
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
;; |
|
hardcode_direct_CXX=no |
|
|
hardcode_automatic_CXX=yes |
|
|
hardcode_shlibpath_var_CXX=unsupported |
|
|
whole_archive_flag_spec_CXX='-all_load $convenience' |
|
|
link_all_deplibs_CXX=yes |
|
|
fi |
|
|
;; |
|
| 10050 |
|
|
| 10051 |
dgux*) |
dgux*) |
| 10052 |
case $cc_basename in |
case $cc_basename in |
| 10053 |
ec++) |
ec++*) |
| 10054 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
| 10055 |
ld_shlibs_CXX=no |
ld_shlibs_CXX=no |
| 10056 |
;; |
;; |
| 10057 |
ghcx) |
ghcx*) |
| 10058 |
# Green Hills C++ Compiler |
# Green Hills C++ Compiler |
| 10059 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
| 10060 |
ld_shlibs_CXX=no |
ld_shlibs_CXX=no |
| 10065 |
;; |
;; |
| 10066 |
esac |
esac |
| 10067 |
;; |
;; |
| 10068 |
freebsd12*) |
freebsd[12]*) |
| 10069 |
# C++ shared libraries reported to be fairly broken before switch to ELF |
# C++ shared libraries reported to be fairly broken before switch to ELF |
| 10070 |
ld_shlibs_CXX=no |
ld_shlibs_CXX=no |
| 10071 |
;; |
;; |
| 10072 |
freebsd-elf*) |
freebsd-elf*) |
| 10073 |
archive_cmds_need_lc_CXX=no |
archive_cmds_need_lc_CXX=no |
| 10074 |
;; |
;; |
| 10075 |
freebsd*) |
freebsd* | dragonfly*) |
| 10076 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 10077 |
# conventions |
# conventions |
| 10078 |
ld_shlibs_CXX=yes |
ld_shlibs_CXX=yes |
| 10089 |
# location of the library. |
# location of the library. |
| 10090 |
|
|
| 10091 |
case $cc_basename in |
case $cc_basename in |
| 10092 |
CC) |
CC*) |
| 10093 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
| 10094 |
ld_shlibs_CXX=no |
ld_shlibs_CXX=no |
| 10095 |
;; |
;; |
| 10096 |
aCC) |
aCC*) |
| 10097 |
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 10098 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
| 10099 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
| 10103 |
# explicitly linking system object files so we need to strip them |
# explicitly linking system object files so we need to strip them |
| 10104 |
# from the output so that they don't get included in the library |
# from the output so that they don't get included in the library |
| 10105 |
# dependencies. |
# dependencies. |
| 10106 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10107 |
;; |
;; |
| 10108 |
*) |
*) |
| 10109 |
if test "$GXX" = yes; then |
if test "$GXX" = yes; then |
| 10117 |
;; |
;; |
| 10118 |
hpux10*|hpux11*) |
hpux10*|hpux11*) |
| 10119 |
if test $with_gnu_ld = no; then |
if test $with_gnu_ld = no; then |
| 10120 |
case "$host_cpu" in |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10121 |
hppa*64*) |
hardcode_libdir_separator_CXX=: |
| 10122 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
| 10123 |
hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
case $host_cpu in |
| 10124 |
hardcode_libdir_separator_CXX=: |
hppa*64*|ia64*) ;; |
|
;; |
|
|
ia64*) |
|
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
|
;; |
|
| 10125 |
*) |
*) |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
hardcode_libdir_separator_CXX=: |
|
| 10126 |
export_dynamic_flag_spec_CXX='${wl}-E' |
export_dynamic_flag_spec_CXX='${wl}-E' |
| 10127 |
;; |
;; |
| 10128 |
esac |
esac |
| 10129 |
fi |
fi |
| 10130 |
case "$host_cpu" in |
case $host_cpu in |
| 10131 |
hppa*64*) |
hppa*64*|ia64*) |
|
hardcode_direct_CXX=no |
|
|
hardcode_shlibpath_var_CXX=no |
|
|
;; |
|
|
ia64*) |
|
| 10132 |
hardcode_direct_CXX=no |
hardcode_direct_CXX=no |
| 10133 |
hardcode_shlibpath_var_CXX=no |
hardcode_shlibpath_var_CXX=no |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
|
# but as the default |
|
|
# location of the library. |
|
| 10134 |
;; |
;; |
| 10135 |
*) |
*) |
| 10136 |
hardcode_direct_CXX=yes |
hardcode_direct_CXX=yes |
| 10141 |
esac |
esac |
| 10142 |
|
|
| 10143 |
case $cc_basename in |
case $cc_basename in |
| 10144 |
CC) |
CC*) |
| 10145 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
| 10146 |
ld_shlibs_CXX=no |
ld_shlibs_CXX=no |
| 10147 |
;; |
;; |
| 10148 |
aCC) |
aCC*) |
| 10149 |
case "$host_cpu" in |
case $host_cpu in |
| 10150 |
hppa*64*|ia64*) |
hppa*64*) |
| 10151 |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10152 |
|
;; |
| 10153 |
|
ia64*) |
| 10154 |
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10155 |
;; |
;; |
| 10156 |
*) |
*) |
| 10157 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10170 |
*) |
*) |
| 10171 |
if test "$GXX" = yes; then |
if test "$GXX" = yes; then |
| 10172 |
if test $with_gnu_ld = no; then |
if test $with_gnu_ld = no; then |
| 10173 |
case "$host_cpu" in |
case $host_cpu in |
| 10174 |
ia64*|hppa*64*) |
hppa*64*) |
| 10175 |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10176 |
|
;; |
| 10177 |
|
ia64*) |
| 10178 |
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10179 |
;; |
;; |
| 10180 |
*) |
*) |
| 10181 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10189 |
;; |
;; |
| 10190 |
esac |
esac |
| 10191 |
;; |
;; |
| 10192 |
|
interix[3-9]*) |
| 10193 |
|
hardcode_direct_CXX=no |
| 10194 |
|
hardcode_shlibpath_var_CXX=no |
| 10195 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10196 |
|
export_dynamic_flag_spec_CXX='${wl}-E' |
| 10197 |
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 10198 |
|
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 10199 |
|
# default) and relocated if they conflict, which is a slow very memory |
| 10200 |
|
# consuming and fragmenting process. To avoid this, we pick a random, |
| 10201 |
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 10202 |
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 10203 |
|
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 10204 |
|
archive_expsym_cmds_CXX='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' |
| 10205 |
|
;; |
| 10206 |
irix5* | irix6*) |
irix5* | irix6*) |
| 10207 |
case $cc_basename in |
case $cc_basename in |
| 10208 |
CC) |
CC*) |
| 10209 |
# SGI C++ |
# SGI C++ |
| 10210 |
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 10211 |
|
|
| 10212 |
# Archives containing C++ object files must be created using |
# Archives containing C++ object files must be created using |
| 10213 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 10218 |
*) |
*) |
| 10219 |
if test "$GXX" = yes; then |
if test "$GXX" = yes; then |
| 10220 |
if test "$with_gnu_ld" = no; then |
if test "$with_gnu_ld" = no; then |
| 10221 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 10222 |
else |
else |
| 10223 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 10224 |
fi |
fi |
| 10229 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10230 |
hardcode_libdir_separator_CXX=: |
hardcode_libdir_separator_CXX=: |
| 10231 |
;; |
;; |
| 10232 |
linux*) |
linux* | k*bsd*-gnu) |
| 10233 |
case $cc_basename in |
case $cc_basename in |
| 10234 |
KCC) |
KCC*) |
| 10235 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10236 |
|
|
| 10237 |
# KCC will only create a shared library if the output file |
# KCC will only create a shared library if the output file |
| 10256 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10257 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10258 |
;; |
;; |
| 10259 |
icpc) |
icpc*) |
| 10260 |
# Intel C++ |
# Intel C++ |
| 10261 |
with_gnu_ld=yes |
with_gnu_ld=yes |
| 10262 |
|
# version 8.0 and above of icpc choke on multiply defined symbols |
| 10263 |
|
# if we add $predep_objects and $postdep_objects, however 7.1 and |
| 10264 |
|
# earlier do not add the objects themselves. |
| 10265 |
|
case `$CC -V 2>&1` in |
| 10266 |
|
*"Version 7."*) |
| 10267 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10268 |
|
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10269 |
|
;; |
| 10270 |
|
*) # Version 8.0 or newer |
| 10271 |
|
tmp_idyn= |
| 10272 |
|
case $host_cpu in |
| 10273 |
|
ia64*) tmp_idyn=' -i_dynamic';; |
| 10274 |
|
esac |
| 10275 |
|
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10276 |
|
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10277 |
|
;; |
| 10278 |
|
esac |
| 10279 |
archive_cmds_need_lc_CXX=no |
archive_cmds_need_lc_CXX=no |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
| 10280 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10281 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10282 |
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10283 |
;; |
;; |
| 10284 |
cxx) |
pgCC* | pgcpp*) |
| 10285 |
|
# Portland Group C++ compiler |
| 10286 |
|
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 10287 |
|
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 10288 |
|
|
| 10289 |
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 10290 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10291 |
|
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 10292 |
|
;; |
| 10293 |
|
cxx*) |
| 10294 |
# Compaq C++ |
# Compaq C++ |
| 10295 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10296 |
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 10309 |
# dependencies. |
# dependencies. |
| 10310 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10311 |
;; |
;; |
| 10312 |
|
*) |
| 10313 |
|
case `$CC -V 2>&1 | sed 5q` in |
| 10314 |
|
*Sun\ C*) |
| 10315 |
|
# Sun C++ 5.9 |
| 10316 |
|
no_undefined_flag_CXX=' -zdefs' |
| 10317 |
|
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10318 |
|
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
| 10319 |
|
hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10320 |
|
whole_archive_flag_spec_CXX='${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' |
| 10321 |
|
|
| 10322 |
|
# Not sure whether something based on |
| 10323 |
|
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 10324 |
|
# would be better. |
| 10325 |
|
output_verbose_link_cmd='echo' |
| 10326 |
|
|
| 10327 |
|
# Archives containing C++ object files must be created using |
| 10328 |
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 10329 |
|
# necessary to make sure instantiated templates are included |
| 10330 |
|
# in the archive. |
| 10331 |
|
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 10332 |
|
;; |
| 10333 |
|
esac |
| 10334 |
|
;; |
| 10335 |
esac |
esac |
| 10336 |
;; |
;; |
| 10337 |
lynxos*) |
lynxos*) |