Deleted Added
full compact
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for file 5.00.
3# Generated by GNU Autoconf 2.61 for file 5.03.
4#
5# Report bugs to <christos@astron.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##

--- 578 unchanged lines hidden (view full) ---

590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
599 echo_test_string="`eval $cmd`" &&
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&

--- 115 unchanged lines hidden (view full) ---

723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='file'
730PACKAGE_TARNAME='file'
731PACKAGE_VERSION='5.00'
732PACKAGE_STRING='file 5.00'
731PACKAGE_VERSION='5.03'
732PACKAGE_STRING='file 5.03'
733PACKAGE_BUGREPORT='christos@astron.com'
734
735# Factoring default headers for most tests.
736ac_includes_default="\
737#include <stdio.h>
738#ifdef HAVE_SYS_TYPES_H
739# include <sys/types.h>
740#endif

--- 81 unchanged lines hidden (view full) ---

822INSTALL_STRIP_PROGRAM
823mkdir_p
824AWK
825SET_MAKE
826am__leading_dot
827AMTAR
828am__tar
829am__untar
830pkgdatadir
831fsect
832FSECT5_TRUE
833FSECT5_FALSE
834WARNINGS
835CC
836CFLAGS
837LDFLAGS
838CPPFLAGS

--- 13 unchanged lines hidden (view full) ---

852build
853build_cpu
854build_vendor
855build_os
856host
857host_cpu
858host_vendor
859host_os
860SED
861GREP
862EGREP
863ECHO
864AR
865RANLIB
866DSYMUTIL
867NMEDIT
868CPP
869CXX
870CXXFLAGS
871ac_ct_CXX
872CXXDEPMODE
873am__fastdepCXX_TRUE
874am__fastdepCXX_FALSE
875CXXCPP

--- 518 unchanged lines hidden (view full) ---

1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1398\`configure' configures file 5.00 to adapt to many kinds of systems.
1402\`configure' configures file 5.03 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410

--- 53 unchanged lines hidden (view full) ---

1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1468 short | recursive ) echo "Configuration of file 5.00:";;
1472 short | recursive ) echo "Configuration of file 5.03:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476Optional Features:
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --disable-elf disable builtin ELF support
1480 --disable-elf-core disable ELF core file support

--- 90 unchanged lines hidden (view full) ---

1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574fi
1575
1576test -n "$ac_init_help" && exit $ac_status
1577if $ac_init_version; then
1578 cat <<\_ACEOF
1575file configure 5.00
1579file configure 5.03
1580generated by GNU Autoconf 2.61
1581
1582Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587 exit
1588fi
1589cat >config.log <<_ACEOF
1590This file contains any messages produced by compilers while
1591running configure, to aid debugging if configure makes a mistake.
1592
1589It was created by file $as_me 5.00, which was
1593It was created by file $as_me 5.03, which was
1594generated by GNU Autoconf 2.61. Invocation command line was
1595
1596 $ $0 $@
1597
1598_ACEOF
1599exec 5>>config.log
1600{
1601cat <<_ASUNAME

--- 673 unchanged lines hidden (view full) ---

2275 else
2276 CYGPATH_W=echo
2277 fi
2278fi
2279
2280
2281# Define the identity of the package.
2282 PACKAGE='file'
2279 VERSION='5.00'
2283 VERSION='5.03'
2284
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE "$PACKAGE"
2288_ACEOF
2289
2290
2291cat >>confdefs.h <<_ACEOF

--- 131 unchanged lines hidden (view full) ---

2423am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2424
2425
2426
2427
2428
2429ac_config_headers="$ac_config_headers config.h"
2430
2431#AC_CONFIG_MACRO_DIR([m4])
2432
2433{ echo "$as_me:$LINENO: checking for builtin ELF support" >&5
2434echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
2435# Check whether --enable-elf was given.
2436if test "${enable_elf+set}" = set; then
2437 enableval=$enable_elf; if test "${enableval}" = yes; then
2438 { echo "$as_me:$LINENO: result: yes" >&5
2439echo "${ECHO_T}yes" >&6; }

--- 68 unchanged lines hidden (view full) ---

2508 # disable by default
2509 { echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6; }
2511 fsect=4
2512
2513fi
2514
2515
2516pkgdatadir='$(datadir)/misc'
2517
2518
2519 if test x$fsect = x5; then
2520 FSECT5_TRUE=
2521 FSECT5_FALSE='#'
2522else
2523 FSECT5_TRUE='#'
2524 FSECT5_FALSE=
2525fi
2526

--- 1476 unchanged lines hidden (view full) ---

4003# Then use that list of sed's as ones to test for truncation.
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for lt_ac_prog in sed gsed; do
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4011 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4012 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4013 fi
4014 done
4015 done
4016done
4017IFS=$as_save_IFS
4018lt_ac_max=0
4019lt_ac_count=0
4020# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4021# along with /bin/sed that truncates output.
4022for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4023 test ! -f $lt_ac_sed && continue
4024 cat /dev/null > conftest.in
4025 lt_ac_count=0

--- 18 unchanged lines hidden (view full) ---

4044 lt_cv_path_SED=$lt_ac_sed
4045 fi
4046 done
4047done
4048
4049fi
4050
4051SED=$lt_cv_path_SED
4052
4053{ echo "$as_me:$LINENO: result: $SED" >&5
4054echo "${ECHO_T}$SED" >&6; }
4055
4056{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4057echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4058if test "${ac_cv_path_GREP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else

--- 207 unchanged lines hidden (view full) ---

4268 if test -z "$LD"; then
4269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4270 for ac_dir in $PATH; do
4271 IFS="$lt_save_ifs"
4272 test -z "$ac_dir" && ac_dir=.
4273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4274 lt_cv_path_LD="$ac_dir/$ac_prog"
4275 # Check to see if the program is GNU ld. I'd rather use --version,
4267 # but apparently some GNU ld's only accept -v.
4276 # but apparently some variants of GNU ld only accept -v.
4277 # Break only if it was the GNU/non-GNU ld that we prefer.
4278 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4279 *GNU* | *'with BFD'*)
4280 test "$with_gnu_ld" != no && break
4281 ;;
4282 *)
4283 test "$with_gnu_ld" != yes && break
4284 ;;

--- 17 unchanged lines hidden (view full) ---

4302test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4303echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4304 { (exit 1); exit 1; }; }
4305{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4306echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4307if test "${lt_cv_prog_gnu_ld+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4301 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4310 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4311case `$LD -v 2>&1 </dev/null` in
4312*GNU* | *'with BFD'*)
4313 lt_cv_prog_gnu_ld=yes
4314 ;;
4315*)
4316 lt_cv_prog_gnu_ld=no
4317 ;;
4318esac

--- 16 unchanged lines hidden (view full) ---

4335case $reload_flag in
4336"" | " "*) ;;
4337*) reload_flag=" $reload_flag" ;;
4338esac
4339reload_cmds='$LD$reload_flag -o $output$reload_objs'
4340case $host_os in
4341 darwin*)
4342 if test "$GCC" = yes; then
4334 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4343 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4344 else
4345 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4346 fi
4347 ;;
4348esac
4349
4350{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4351echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4352if test "${lt_cv_path_NM+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354else
4355 if test -n "$NM"; then
4356 # Let the user override the test.
4357 lt_cv_path_NM="$NM"
4358else
4350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4351 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4352 IFS="$lt_save_ifs"
4353 test -z "$ac_dir" && ac_dir=.
4354 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4355 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4356 # Check to see if the nm accepts a BSD-compat flag.
4357 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4358 # nm: unknown option "B" ignored
4359 # Tru64's nm complains that /dev/null is an invalid object file
4360 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4361 */dev/null* | *'Invalid file or object type'*)
4362 lt_cv_path_NM="$tmp_nm -B"
4363 break
4364 ;;
4365 *)
4366 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4367 */dev/null*)
4368 lt_cv_path_NM="$tmp_nm -p"
4359 lt_nm_to_check="${ac_tool_prefix}nm"
4360 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4361 lt_nm_to_check="$lt_nm_to_check nm"
4362 fi
4363 for lt_tmp_nm in $lt_nm_to_check; do
4364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4365 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4366 IFS="$lt_save_ifs"
4367 test -z "$ac_dir" && ac_dir=.
4368 tmp_nm="$ac_dir/$lt_tmp_nm"
4369 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4370 # Check to see if the nm accepts a BSD-compat flag.
4371 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4372 # nm: unknown option "B" ignored
4373 # Tru64's nm complains that /dev/null is an invalid object file
4374 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4375 */dev/null* | *'Invalid file or object type'*)
4376 lt_cv_path_NM="$tmp_nm -B"
4377 break
4378 ;;
4379 *)
4372 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4373 continue # so that we can try to find one that supports BSD flags
4380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4381 */dev/null*)
4382 lt_cv_path_NM="$tmp_nm -p"
4383 break
4384 ;;
4385 *)
4386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4387 continue # so that we can try to find one that supports BSD flags
4388 ;;
4389 esac
4390 ;;
4391 esac
4376 esac
4377 fi
4392 fi
4393 done
4394 IFS="$lt_save_ifs"
4395 done
4379 IFS="$lt_save_ifs"
4396 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4397fi
4398fi
4399{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4400echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4401NM="$lt_cv_path_NM"
4402
4387{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4388echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4403{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4404echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4405if test "${lt_cv_deplibs_check_method+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 lt_cv_file_magic_cmd='$MAGIC_CMD'
4409lt_cv_file_magic_test_file=
4410lt_cv_deplibs_check_method='unknown'
4411# Need to set the preceding variable on all platforms that support
4412# interlibrary dependencies.
4413# 'none' -- dependencies not supported.
4414# `unknown' -- same as none, but documents that we really don't know.
4415# 'pass_all' -- all dependencies passed with no checks.
4416# 'test_compile' -- check by making test program.
4417# 'file_magic [[regex]]' -- check by looking for files in library path
4418# which responds to the $file_magic_cmd with a given extended regex.
4419# If you have `file' or equivalent on your system and you're not sure
4420# whether `pass_all' will *always* work, you probably want this one.
4421
4422case $host_os in
4407aix4* | aix5*)
4423aix[4-9]*)
4424 lt_cv_deplibs_check_method=pass_all
4425 ;;
4426
4427beos*)
4428 lt_cv_deplibs_check_method=pass_all
4429 ;;
4430
4431bsdi[45]*)

--- 5 unchanged lines hidden (view full) ---

4437cygwin*)
4438 # func_win32_libid is a shell function defined in ltmain.sh
4439 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4440 lt_cv_file_magic_cmd='func_win32_libid'
4441 ;;
4442
4443mingw* | pw32*)
4444 # Base MSYS/MinGW do not provide the 'file' command needed by
4429 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4430 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4431 lt_cv_file_magic_cmd='$OBJDUMP -f'
4445 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4446 # unless we find 'file', for example because we are cross-compiling.
4447 if ( file / ) >/dev/null 2>&1; then
4448 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4449 lt_cv_file_magic_cmd='func_win32_libid'
4450 else
4451 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4452 lt_cv_file_magic_cmd='$OBJDUMP -f'
4453 fi
4454 ;;
4455
4456darwin* | rhapsody*)
4457 lt_cv_deplibs_check_method=pass_all
4458 ;;
4459
4438freebsd* | kfreebsd*-gnu | dragonfly*)
4460freebsd* | dragonfly*)
4461 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4462 case $host_cpu in
4463 i*86 )
4464 # Not sure whether the presence of OpenBSD here was a mistake.
4465 # Let's accept both of them until this is cleared up.
4466 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4467 lt_cv_file_magic_cmd=/usr/bin/file
4468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`

--- 5 unchanged lines hidden (view full) ---

4474 ;;
4475
4476gnu*)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
4479
4480hpux10.20* | hpux11*)
4481 lt_cv_file_magic_cmd=/usr/bin/file
4460 case "$host_cpu" in
4482 case $host_cpu in
4483 ia64*)
4484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4486 ;;
4487 hppa*64*)
4488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4490 ;;
4491 *)
4492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4494 ;;
4495 esac
4496 ;;
4497
4498interix[3-9]*)
4499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4501 ;;
4502
4503irix5* | irix6* | nonstopux*)
4504 case $LD in
4505 *-32|*"-32 ") libmagic=32-bit;;
4506 *-n32|*"-n32 ") libmagic=N32;;
4507 *-64|*"-64 ") libmagic=64-bit;;
4508 *) libmagic=never-match;;
4509 esac
4510 lt_cv_deplibs_check_method=pass_all
4511 ;;
4512
4513# This must be Linux ELF.
4487linux*)
4514linux* | k*bsd*-gnu)
4515 lt_cv_deplibs_check_method=pass_all
4516 ;;
4517
4518netbsd*)
4519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4521 else
4522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'

--- 17 unchanged lines hidden (view full) ---

4540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4541 fi
4542 ;;
4543
4544osf3* | osf4* | osf5*)
4545 lt_cv_deplibs_check_method=pass_all
4546 ;;
4547
4521sco3.2v5*)
4548rdos*)
4549 lt_cv_deplibs_check_method=pass_all
4550 ;;
4551
4552solaris*)
4553 lt_cv_deplibs_check_method=pass_all
4554 ;;
4555
4529sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4556sysv4 | sysv4.3*)
4557 case $host_vendor in
4558 motorola)
4559 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]'
4560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4561 ;;
4562 ncr)
4563 lt_cv_deplibs_check_method=pass_all
4564 ;;

--- 4 unchanged lines hidden (view full) ---

4569 sni)
4570 lt_cv_file_magic_cmd='/bin/file'
4571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4572 lt_cv_file_magic_test_file=/lib/libc.so
4573 ;;
4574 siemens)
4575 lt_cv_deplibs_check_method=pass_all
4576 ;;
4577 pc)
4578 lt_cv_deplibs_check_method=pass_all
4579 ;;
4580 esac
4581 ;;
4582
4553sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4583sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4584 lt_cv_deplibs_check_method=pass_all
4585 ;;
4586esac
4587
4588fi
4589{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4590echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4591file_magic_cmd=$lt_cv_file_magic_cmd
4592deplibs_check_method=$lt_cv_deplibs_check_method
4593test -z "$deplibs_check_method" && deplibs_check_method=unknown
4594
4595
4596
4597
4598# If no C compiler was specified, use CC.
4599LTCC=${LTCC-"$CC"}
4600
4601# If no C compiler flags were specified, use CFLAGS.
4602LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4603
4604# Allow CC to be a program name with arguments.
4605compiler=$CC
4606
4607
4608# Check whether --enable-libtool-lock was given.
4609if test "${enable_libtool_lock+set}" = set; then
4610 enableval=$enable_libtool_lock;
4611fi

--- 19 unchanged lines hidden (view full) ---

4631 HPUX_IA64_MODE="64"
4632 ;;
4633 esac
4634 fi
4635 rm -rf conftest*
4636 ;;
4637*-*-irix6*)
4638 # Find out which ABI we are using.
4606 echo '#line 4606 "configure"' > conftest.$ac_ext
4639 echo '#line 4639 "configure"' > conftest.$ac_ext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; then
4645 if test "$lt_cv_prog_gnu_ld" = yes; then
4646 case `/usr/bin/file conftest.$ac_objext` in
4647 *32-bit*)

--- 18 unchanged lines hidden (view full) ---

4666 LD="${LD-ld} -64"
4667 ;;
4668 esac
4669 fi
4670 fi
4671 rm -rf conftest*
4672 ;;
4673
4641x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4674x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4675s390*-*linux*|sparc*-*linux*)
4676 # Find out which ABI we are using.
4677 echo 'int i;' > conftest.$ac_ext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; then
4649 case "`/usr/bin/file conftest.o`" in
4683 case `/usr/bin/file conftest.o` in
4684 *32-bit*)
4685 case $host in
4686 x86_64-*kfreebsd*-gnu)
4687 LD="${LD-ld} -m elf_i386_fbsd"
4688 ;;
4689 x86_64-*linux*)
4690 LD="${LD-ld} -m elf_i386"
4691 ;;
4692 ppc64-*linux*|powerpc64-*linux*)
4693 LD="${LD-ld} -m elf32ppclinux"
4694 ;;
4695 s390x-*linux*)
4696 LD="${LD-ld} -m elf_s390"
4697 ;;
4698 sparc64-*linux*)
4699 LD="${LD-ld} -m elf32_sparc"
4700 ;;
4701 esac
4702 ;;
4703 *64-bit*)
4704 case $host in
4705 x86_64-*kfreebsd*-gnu)
4706 LD="${LD-ld} -m elf_x86_64_fbsd"
4707 ;;
4708 x86_64-*linux*)
4709 LD="${LD-ld} -m elf_x86_64"
4710 ;;
4711 ppc*-*linux*|powerpc*-*linux*)
4712 LD="${LD-ld} -m elf64ppc"
4713 ;;
4714 s390*-*linux*)
4715 LD="${LD-ld} -m elf64_s390"

--- 75 unchanged lines hidden (view full) ---

4791fi
4792{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4793echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4794 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4795 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4796 CFLAGS="$SAVE_CFLAGS"
4797 fi
4798 ;;
4799sparc*-*solaris*)
4800 # Find out which ABI we are using.
4801 echo 'int i;' > conftest.$ac_ext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803 (eval $ac_compile) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
4807 case `/usr/bin/file conftest.o` in
4808 *64-bit*)
4809 case $lt_cv_prog_gnu_ld in
4810 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4811 *)
4812 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4813 LD="${LD-ld} -64"
4814 fi
4815 ;;
4816 esac
4817 ;;
4818 esac
4819 fi
4820 rm -rf conftest*
4821 ;;
4822
4823
4824esac
4825
4826need_locks="$enable_libtool_lock"
4827
4828
4829ac_ext=c
4830ac_cpp='$CPP $CPPFLAGS'
4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'

--- 1577 unchanged lines hidden (view full) ---

6409ac_cpp='$CPP $CPPFLAGS'
6410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412ac_compiler_gnu=$ac_cv_c_compiler_gnu
6413
6414
6415
6416# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6353
6417# find the maximum length of command line arguments
6418{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6419echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6420if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422else
6423 i=0
6424 teststring="ABCD"

--- 33 unchanged lines hidden (view full) ---

6458
6459 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6460 # This has been around since 386BSD, at least. Likely further.
6461 if test -x /sbin/sysctl; then
6462 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6463 elif test -x /usr/sbin/sysctl; then
6464 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6465 else
6403 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6466 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6467 fi
6468 # And add a safety zone
6469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6471 ;;
6472
6473 interix*)
6474 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6475 lt_cv_sys_max_cmd_len=196608
6476 ;;
6477
6478 osf*)
6479 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6480 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6481 # nice to cause kernel panics so lets avoid the loop below.
6482 # First set a reasonable default.
6483 lt_cv_sys_max_cmd_len=16384
6484 #
6485 if test -x /sbin/sysconfig; then
6486 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6487 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6488 esac
6489 fi
6490 ;;
6491 sco3.2v5*)
6492 lt_cv_sys_max_cmd_len=102400
6493 ;;
6494 sysv5* | sco5v6* | sysv4.2uw2*)
6495 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6496 if test -n "$kargmax"; then
6497 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6498 else
6499 lt_cv_sys_max_cmd_len=32768
6500 fi
6501 ;;
6502 *)
6423 # If test is not a shell built-in, we'll probably end up computing a
6424 # maximum length that is only half of the actual maximum length, but
6425 # we can't tell.
6426 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6427 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6503 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6504 if test -n "$lt_cv_sys_max_cmd_len"; then
6505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6507 else
6508 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6509 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6510 = "XX$teststring") >/dev/null 2>&1 &&
6429 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6430 lt_cv_sys_max_cmd_len=$new_result &&
6431 test $i != 17 # 1/2 MB should be enough
6432 do
6433 i=`expr $i + 1`
6434 teststring=$teststring$teststring
6435 done
6436 teststring=
6437 # Add a significant safety factor because C++ compilers can tack on massive
6438 # amounts of additional arguments before passing them to the linker.
6439 # It appears as though 1/2 is a usable value.
6440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6511 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6512 lt_cv_sys_max_cmd_len=$new_result &&
6513 test $i != 17 # 1/2 MB should be enough
6514 do
6515 i=`expr $i + 1`
6516 teststring=$teststring$teststring
6517 done
6518 teststring=
6519 # Add a significant safety factor because C++ compilers can tack on massive
6520 # amounts of additional arguments before passing them to the linker.
6521 # It appears as though 1/2 is a usable value.
6522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6523 fi
6524 ;;
6525 esac
6526
6527fi
6528
6529if test -n $lt_cv_sys_max_cmd_len ; then
6530 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6531echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6532else
6533 { echo "$as_me:$LINENO: result: none" >&5
6534echo "${ECHO_T}none" >&6; }
6535fi
6536
6537
6538
6539
6540
6541# Check for command to grab the raw symbol name followed by C symbol from nm.
6542{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6543echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6544if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547
6548# These are sane defaults that work on at least a few old systems.

--- 21 unchanged lines hidden (view full) ---

6570 ;;
6571hpux*) # Its linker distinguishes data from code symbols
6572 if test "$host_cpu" = ia64; then
6573 symcode='[ABCDEGRST]'
6574 fi
6575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6576 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'"
6577 ;;
6494linux*)
6578linux* | k*bsd*-gnu)
6579 if test "$host_cpu" = ia64; then
6580 symcode='[ABCDGIRSTW]'
6581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6582 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'"
6583 fi
6584 ;;
6585irix* | nonstopux*)
6586 symcode='[BCDEGRST]'
6587 ;;
6588osf*)
6589 symcode='[BCDEGQRST]'
6590 ;;
6507solaris* | sysv5*)
6591solaris*)
6592 symcode='[BDRT]'
6593 ;;
6594sco3.2v5*)
6595 symcode='[DT]'
6596 ;;
6597sysv4.2uw2*)
6598 symcode='[DT]'
6599 ;;
6600sysv5* | sco5v6* | unixware* | OpenUNIX*)
6601 symcode='[ABDT]'
6602 ;;
6603sysv4)
6604 symcode='[DFNSTU]'
6605 ;;
6606esac
6607
6608# Handle CRLF in mingw tool chain
6609opt_cr=
6610case $build_os in

--- 112 unchanged lines hidden (view full) ---

6723 fi
6724 else
6725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6726 fi
6727 else
6728 echo "$progname: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 fi
6638 rm -f conftest* conftst*
6731 rm -rf conftest* conftst*
6732
6733 # Do not use the global_symbol_pipe unless it works.
6734 if test "$pipe_works" = yes; then
6735 break
6736 else
6737 lt_cv_sys_global_symbol_pipe=
6738 fi
6739done

--- 63 unchanged lines hidden (view full) ---

6803
6804# Constants:
6805rm="rm -f"
6806
6807# Global variables:
6808default_ofile=libtool
6809can_build_shared=yes
6810
6718# All known linkers require a `.a' archive for static linking (except M$VC,
6811# All known linkers require a `.a' archive for static linking (except MSVC,
6812# which needs '.lib').
6813libext=a
6814ltmain="$ac_aux_dir/ltmain.sh"
6815ofile="$default_ofile"
6816with_gnu_ld="$lt_cv_prog_gnu_ld"
6817
6818if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.

--- 288 unchanged lines hidden (view full) ---

7108old_CFLAGS="$CFLAGS"
7109
7110# Set sane defaults for various variables
7111test -z "$AR" && AR=ar
7112test -z "$AR_FLAGS" && AR_FLAGS=cru
7113test -z "$AS" && AS=as
7114test -z "$CC" && CC=cc
7115test -z "$LTCC" && LTCC=$CC
7116test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7117test -z "$DLLTOOL" && DLLTOOL=dlltool
7118test -z "$LD" && LD=ld
7119test -z "$LN_S" && LN_S="ln -s"
7120test -z "$MAGIC_CMD" && MAGIC_CMD=file
7121test -z "$NM" && NM=nm
7122test -z "$SED" && SED=sed
7123test -z "$OBJDUMP" && OBJDUMP=objdump
7124test -z "$RANLIB" && RANLIB=:
7125test -z "$STRIP" && STRIP=:
7126test -z "$ac_objext" && ac_objext=o
7127
7128# Determine commands to create old-style static archives.
7035old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7129old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7130old_postinstall_cmds='chmod 644 $oldlib'
7131old_postuninstall_cmds=
7132
7133if test -n "$RANLIB"; then
7134 case $host_os in
7135 openbsd*)
7042 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7136 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7137 ;;
7138 *)
7045 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7139 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7140 ;;
7141 esac
7142 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7143fi
7144
7145for cc_temp in $compiler""; do
7146 case $cc_temp in
7147 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;

--- 25 unchanged lines hidden (view full) ---

7173 for ac_dir in $ac_dummy; do
7174 IFS="$lt_save_ifs"
7175 test -z "$ac_dir" && ac_dir=.
7176 if test -f $ac_dir/${ac_tool_prefix}file; then
7177 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7178 if test -n "$file_magic_test_file"; then
7179 case $deplibs_check_method in
7180 "file_magic "*)
7087 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7184 $EGREP "$file_magic_regex" > /dev/null; then
7185 :
7186 else
7187 cat <<EOF 1>&2
7188
7189*** Warning: the command libtool uses to detect shared libraries,

--- 45 unchanged lines hidden (view full) ---

7235 for ac_dir in $ac_dummy; do
7236 IFS="$lt_save_ifs"
7237 test -z "$ac_dir" && ac_dir=.
7238 if test -f $ac_dir/file; then
7239 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7240 if test -n "$file_magic_test_file"; then
7241 case $deplibs_check_method in
7242 "file_magic "*)
7149 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7246 $EGREP "$file_magic_regex" > /dev/null; then
7247 :
7248 else
7249 cat <<EOF 1>&2
7250
7251*** Warning: the command libtool uses to detect shared libraries,

--- 31 unchanged lines hidden (view full) ---

7283 MAGIC_CMD=:
7284 fi
7285fi
7286
7287 fi
7288 ;;
7289esac
7290
7291
7292 case $host_os in
7293 rhapsody* | darwin*)
7294 if test -n "$ac_tool_prefix"; then
7295 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7296set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302 if test -n "$DSYMUTIL"; then
7303 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7304else
7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7315 fi
7316done
7317done
7318IFS=$as_save_IFS
7319
7320fi
7321fi
7322DSYMUTIL=$ac_cv_prog_DSYMUTIL
7323if test -n "$DSYMUTIL"; then
7324 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7325echo "${ECHO_T}$DSYMUTIL" >&6; }
7326else
7327 { echo "$as_me:$LINENO: result: no" >&5
7328echo "${ECHO_T}no" >&6; }
7329fi
7330
7331
7332fi
7333if test -z "$ac_cv_prog_DSYMUTIL"; then
7334 ac_ct_DSYMUTIL=$DSYMUTIL
7335 # Extract the first word of "dsymutil", so it can be a program name with args.
7336set dummy dsymutil; ac_word=$2
7337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342 if test -n "$ac_ct_DSYMUTIL"; then
7343 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7344else
7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356done
7357done
7358IFS=$as_save_IFS
7359
7360fi
7361fi
7362ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7363if test -n "$ac_ct_DSYMUTIL"; then
7364 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7365echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7366else
7367 { echo "$as_me:$LINENO: result: no" >&5
7368echo "${ECHO_T}no" >&6; }
7369fi
7370
7371 if test "x$ac_ct_DSYMUTIL" = x; then
7372 DSYMUTIL=":"
7373 else
7374 case $cross_compiling:$ac_tool_warned in
7375yes:)
7376{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7377whose name does not start with the host triplet. If you think this
7378configuration is useful to you, please write to autoconf@gnu.org." >&5
7379echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7380whose name does not start with the host triplet. If you think this
7381configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7382ac_tool_warned=yes ;;
7383esac
7384 DSYMUTIL=$ac_ct_DSYMUTIL
7385 fi
7386else
7387 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7388fi
7389
7390 if test -n "$ac_tool_prefix"; then
7391 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7392set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395if test "${ac_cv_prog_NMEDIT+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398 if test -n "$NMEDIT"; then
7399 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412done
7413done
7414IFS=$as_save_IFS
7415
7416fi
7417fi
7418NMEDIT=$ac_cv_prog_NMEDIT
7419if test -n "$NMEDIT"; then
7420 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7421echo "${ECHO_T}$NMEDIT" >&6; }
7422else
7423 { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
7425fi
7426
7427
7428fi
7429if test -z "$ac_cv_prog_NMEDIT"; then
7430 ac_ct_NMEDIT=$NMEDIT
7431 # Extract the first word of "nmedit", so it can be a program name with args.
7432set dummy nmedit; ac_word=$2
7433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437else
7438 if test -n "$ac_ct_NMEDIT"; then
7439 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452done
7453done
7454IFS=$as_save_IFS
7455
7456fi
7457fi
7458ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7459if test -n "$ac_ct_NMEDIT"; then
7460 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7461echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7462else
7463 { echo "$as_me:$LINENO: result: no" >&5
7464echo "${ECHO_T}no" >&6; }
7465fi
7466
7467 if test "x$ac_ct_NMEDIT" = x; then
7468 NMEDIT=":"
7469 else
7470 case $cross_compiling:$ac_tool_warned in
7471yes:)
7472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7473whose name does not start with the host triplet. If you think this
7474configuration is useful to you, please write to autoconf@gnu.org." >&5
7475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7476whose name does not start with the host triplet. If you think this
7477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7478ac_tool_warned=yes ;;
7479esac
7480 NMEDIT=$ac_ct_NMEDIT
7481 fi
7482else
7483 NMEDIT="$ac_cv_prog_NMEDIT"
7484fi
7485
7486
7487 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7488echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7489if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492 lt_cv_apple_cc_single_mod=no
7493 if test -z "${LT_MULTI_MODULE}"; then
7494 # By default we will add the -single_module flag. You can override
7495 # by either setting the environment variable LT_MULTI_MODULE
7496 # non-empty at configure time, or by adding -multi_module to the
7497 # link flags.
7498 echo "int foo(void){return 1;}" > conftest.c
7499 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7500 -dynamiclib ${wl}-single_module conftest.c
7501 if test -f libconftest.dylib; then
7502 lt_cv_apple_cc_single_mod=yes
7503 rm -rf libconftest.dylib*
7504 fi
7505 rm conftest.c
7506 fi
7507fi
7508{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7509echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7510 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7511echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7512if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515 lt_cv_ld_exported_symbols_list=no
7516 save_LDFLAGS=$LDFLAGS
7517 echo "_main" > conftest.sym
7518 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7519 cat >conftest.$ac_ext <<_ACEOF
7520/* confdefs.h. */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h. */
7525
7526int
7527main ()
7528{
7529
7530 ;
7531 return 0;
7532}
7533_ACEOF
7534rm -f conftest.$ac_objext conftest$ac_exeext
7535if { (ac_try="$ac_link"
7536case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539esac
7540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_link") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest$ac_exeext &&
7551 $as_test_x conftest$ac_exeext; then
7552 lt_cv_ld_exported_symbols_list=yes
7553else
7554 echo "$as_me: failed program was:" >&5
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557 lt_cv_ld_exported_symbols_list=no
7558fi
7559
7560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7561 conftest$ac_exeext conftest.$ac_ext
7562 LDFLAGS="$save_LDFLAGS"
7563
7564fi
7565{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7566echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7567 case $host_os in
7568 rhapsody* | darwin1.[0123])
7569 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7570 darwin1.*)
7571 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7572 darwin*)
7573 # if running on 10.5 or later, the deployment target defaults
7574 # to the OS version, if on x86, and 10.4, the deployment
7575 # target defaults to 10.4. Don't you love it?
7576 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7577 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7579 10.[012]*)
7580 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7581 10.*)
7582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7583 esac
7584 ;;
7585 esac
7586 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7587 _lt_dar_single_mod='$single_module'
7588 fi
7589 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7590 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7591 else
7592 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7593 fi
7594 if test "$DSYMUTIL" != ":"; then
7595 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7596 else
7597 _lt_dsymutil=
7598 fi
7599 ;;
7600 esac
7601
7602
7603enable_dlopen=no
7604enable_win32_dll=no
7605
7606# Check whether --enable-libtool-lock was given.
7607if test "${enable_libtool_lock+set}" = set; then
7608 enableval=$enable_libtool_lock;
7609fi
7610

--- 22 unchanged lines hidden (view full) ---

7633# Source file extension for C test sources.
7634ac_ext=c
7635
7636# Object file extension for compiled C test sources.
7637objext=o
7638objext=$objext
7639
7640# Code to be used in simple compile tests
7235lt_simple_compile_test_code="int some_variable = 0;\n"
7641lt_simple_compile_test_code="int some_variable = 0;"
7642
7643# Code to be used in simple link tests
7238lt_simple_link_test_code='int main(){return(0);}\n'
7644lt_simple_link_test_code='int main(){return(0);}'
7645
7646
7647# If no C compiler was specified, use CC.
7648LTCC=${LTCC-"$CC"}
7649
7650# If no C compiler flags were specified, use CFLAGS.
7651LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7652
7653# Allow CC to be a program name with arguments.
7654compiler=$CC
7655
7656
7657# save warnings/boilerplate of simple test code
7658ac_outfile=conftest.$ac_objext
7250printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7659echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7660eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7661_lt_compiler_boilerplate=`cat conftest.err`
7662$rm conftest*
7663
7664ac_outfile=conftest.$ac_objext
7256printf "$lt_simple_link_test_code" >conftest.$ac_ext
7257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7665echo "$lt_simple_link_test_code" >conftest.$ac_ext
7666eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7667_lt_linker_boilerplate=`cat conftest.err`
7259$rm conftest*
7668$rm -r conftest*
7669
7670
7262#
7263# Check for any special shared library compilation flags.
7264#
7265lt_prog_cc_shlib=
7266if test "$GCC" = no; then
7267 case $host_os in
7268 sco3.2v5*)
7269 lt_prog_cc_shlib='-belf'
7270 ;;
7271 esac
7272fi
7273if test -n "$lt_prog_cc_shlib"; then
7274 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7275echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7276 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7277 else
7278 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7279echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7280 lt_cv_prog_cc_can_build_shared=no
7281 fi
7282fi
7671
7284
7285#
7286# Check to make sure the static flag actually works.
7287#
7288{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7289echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7290if test "${lt_prog_compiler_static_works+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293 lt_prog_compiler_static_works=no
7294 save_LDFLAGS="$LDFLAGS"
7295 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7296 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7298 # The compiler can only warn and ignore the option if not recognized
7299 # So say no if there are warnings
7300 if test -s conftest.err; then
7301 # Append any errors to the config.log.
7302 cat conftest.err 1>&5
7303 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7304 $SED '/^$/d' conftest.err >conftest.er2
7305 if diff conftest.exp conftest.er2 >/dev/null; then
7306 lt_prog_compiler_static_works=yes
7307 fi
7308 else
7309 lt_prog_compiler_static_works=yes
7310 fi
7311 fi
7312 $rm conftest*
7313 LDFLAGS="$save_LDFLAGS"
7314
7315fi
7316{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7317echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7318
7319if test x"$lt_prog_compiler_static_works" = xyes; then
7320 :
7321else
7322 lt_prog_compiler_static=
7323fi
7324
7325
7326
7327
7672lt_prog_compiler_no_builtin_flag=
7673
7674if test "$GCC" = yes; then
7675 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7676
7677
7678{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7679echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7680if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683 lt_cv_prog_compiler_rtti_exceptions=no
7684 ac_outfile=conftest.$ac_objext
7341 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7686 lt_compiler_flag="-fno-rtti -fno-exceptions"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 # The option is referenced via a variable to avoid confusing sed.
7692 lt_compile=`echo "$ac_compile" | $SED \
7349 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7352 (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
7696 (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697 (eval "$lt_compile" 2>conftest.err)
7698 ac_status=$?
7699 cat conftest.err >&5
7356 echo "$as_me:7356: \$? = $ac_status" >&5
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7701 if (exit $ac_status) && test -s "$ac_outfile"; then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings other than the usual output.
7360 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7361 $SED '/^$/d' conftest.err >conftest.er2
7362 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7707 lt_cv_prog_compiler_rtti_exceptions=yes
7708 fi
7709 fi
7710 $rm conftest*
7711
7712fi
7713{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }

--- 28 unchanged lines hidden (view full) ---

7743
7744 amigaos*)
7745 # FIXME: we need at least 68020 code to build shared libraries, but
7746 # adding the `-m68020' flag to GCC prevents building anything better,
7747 # like `-m68040'.
7748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7749 ;;
7750
7407 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7751 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7752 # PIC is the default for these OSes.
7753 ;;
7754
7411 mingw* | pw32* | os2*)
7755 mingw* | cygwin* | pw32* | os2*)
7756 # This hack is so that the source file can tell whether it is being
7757 # built for inclusion in a dll (and should export symbols for example).
7758 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7759 # (--disable-auto-import) libraries
7760 lt_prog_compiler_pic='-DDLL_EXPORT'
7761 ;;
7762
7763 darwin* | rhapsody*)
7764 # PIC is the default on this platform
7765 # Common symbols not allowed in MH_DYLIB files
7766 lt_prog_compiler_pic='-fno-common'
7767 ;;
7768
7769 interix[3-9]*)
7770 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7771 # Instead, we relocate shared libraries at runtime.
7772 ;;
7773
7774 msdosdjgpp*)
7775 # Just because we use GCC doesn't mean we suddenly get shared libraries
7776 # on systems that don't support them.
7777 lt_prog_compiler_can_build_shared=no
7778 enable_shared=no
7779 ;;
7780
7781 sysv4*MP*)
7782 if test -d /usr/nec; then
7783 lt_prog_compiler_pic=-Kconform_pic
7784 fi
7785 ;;
7786
7787 hpux*)
7788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7789 # not for PA HP-UX.
7439 case "$host_cpu" in
7790 case $host_cpu in
7791 hppa*64*|ia64*)
7792 # +Z the default
7793 ;;
7794 *)
7795 lt_prog_compiler_pic='-fPIC'
7796 ;;
7797 esac
7798 ;;

--- 20 unchanged lines hidden (view full) ---

7819 case $cc_basename in
7820 xlc*)
7821 lt_prog_compiler_pic='-qnocommon'
7822 lt_prog_compiler_wl='-Wl,'
7823 ;;
7824 esac
7825 ;;
7826
7476 mingw* | pw32* | os2*)
7827 mingw* | cygwin* | pw32* | os2*)
7828 # This hack is so that the source file can tell whether it is being
7829 # built for inclusion in a dll (and should export symbols for example).
7830 lt_prog_compiler_pic='-DDLL_EXPORT'
7831 ;;
7832
7833 hpux9* | hpux10* | hpux11*)
7834 lt_prog_compiler_wl='-Wl,'
7835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7836 # not for PA HP-UX.
7486 case "$host_cpu" in
7837 case $host_cpu in
7838 hppa*64*|ia64*)
7839 # +Z the default
7840 ;;
7841 *)
7842 lt_prog_compiler_pic='+Z'
7843 ;;
7844 esac
7845 # Is there a better lt_prog_compiler_static that works with the bundled CC?

--- 6 unchanged lines hidden (view full) ---

7852 lt_prog_compiler_static='-non_shared'
7853 ;;
7854
7855 newsos6)
7856 lt_prog_compiler_pic='-KPIC'
7857 lt_prog_compiler_static='-Bstatic'
7858 ;;
7859
7509 linux*)
7860 linux* | k*bsd*-gnu)
7861 case $cc_basename in
7862 icc* | ecc*)
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-KPIC'
7865 lt_prog_compiler_static='-static'
7866 ;;
7516 pgcc* | pgf77* | pgf90*)
7867 pgcc* | pgf77* | pgf90* | pgf95*)
7868 # Portland Group compilers (*not* the Pentium gcc compiler,
7869 # which looks to be a dead project)
7870 lt_prog_compiler_wl='-Wl,'
7871 lt_prog_compiler_pic='-fpic'
7521 lt_prog_compiler_static='-static'
7872 lt_prog_compiler_static='-Bstatic'
7873 ;;
7874 ccc*)
7875 lt_prog_compiler_wl='-Wl,'
7876 # All Alpha code is PIC.
7877 lt_prog_compiler_static='-non_shared'
7878 ;;
7879 *)
7880 case `$CC -V 2>&1 | sed 5q` in
7881 *Sun\ C*)
7882 # Sun C 5.9
7883 lt_prog_compiler_pic='-KPIC'
7884 lt_prog_compiler_static='-Bstatic'
7885 lt_prog_compiler_wl='-Wl,'
7886 ;;
7887 *Sun\ F*)
7888 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7889 lt_prog_compiler_pic='-KPIC'
7890 lt_prog_compiler_static='-Bstatic'
7891 lt_prog_compiler_wl=''
7892 ;;
7893 esac
7894 ;;
7895 esac
7896 ;;
7897
7898 osf3* | osf4* | osf5*)
7899 lt_prog_compiler_wl='-Wl,'
7900 # All OSF/1 code is PIC.
7901 lt_prog_compiler_static='-non_shared'
7902 ;;
7903
7537 sco3.2v5*)
7538 lt_prog_compiler_pic='-Kpic'
7539 lt_prog_compiler_static='-dn'
7904 rdos*)
7905 lt_prog_compiler_static='-non_shared'
7906 ;;
7907
7908 solaris*)
7909 lt_prog_compiler_pic='-KPIC'
7910 lt_prog_compiler_static='-Bstatic'
7911 case $cc_basename in
7912 f77* | f90* | f95*)
7913 lt_prog_compiler_wl='-Qoption ld ';;
7914 *)
7915 lt_prog_compiler_wl='-Wl,';;
7916 esac
7917 ;;
7918
7919 sunos4*)
7920 lt_prog_compiler_wl='-Qoption ld '
7921 lt_prog_compiler_pic='-PIC'
7922 lt_prog_compiler_static='-Bstatic'
7923 ;;
7924
7559 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7925 sysv4 | sysv4.2uw2* | sysv4.3*)
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_pic='-KPIC'
7928 lt_prog_compiler_static='-Bstatic'
7929 ;;
7930
7931 sysv4*MP*)
7932 if test -d /usr/nec ;then
7933 lt_prog_compiler_pic='-Kconform_pic'
7934 lt_prog_compiler_static='-Bstatic'
7935 fi
7936 ;;
7937
7938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7939 lt_prog_compiler_wl='-Wl,'
7940 lt_prog_compiler_pic='-KPIC'
7941 lt_prog_compiler_static='-Bstatic'
7942 ;;
7943
7944 unicos*)
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_can_build_shared=no
7947 ;;
7948
7949 uts4*)
7950 lt_prog_compiler_pic='-pic'
7951 lt_prog_compiler_static='-Bstatic'

--- 10 unchanged lines hidden (view full) ---

7962
7963#
7964# Check to make sure the PIC flag actually works.
7965#
7966if test -n "$lt_prog_compiler_pic"; then
7967
7968{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7969echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7598if test "${lt_prog_compiler_pic_works+set}" = set; then
7970if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7601 lt_prog_compiler_pic_works=no
7973 lt_cv_prog_compiler_pic_works=no
7974 ac_outfile=conftest.$ac_objext
7603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7976 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7977 # Insert the option either (1) after the last *FLAGS variable, or
7978 # (2) before a word containing "conftest.", or (3) at the end.
7979 # Note that $ac_compile itself does not contain backslashes and begins
7980 # with a dollar sign (not a hyphen), so the echo should work correctly.
7981 # The option is referenced via a variable to avoid confusing sed.
7982 lt_compile=`echo "$ac_compile" | $SED \
7611 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7985 -e 's:$: $lt_compiler_flag:'`
7614 (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
7986 (eval echo "\"\$as_me:7986: $lt_compile\"" >&5)
7987 (eval "$lt_compile" 2>conftest.err)
7988 ac_status=$?
7989 cat conftest.err >&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7990 echo "$as_me:7990: \$? = $ac_status" >&5
7991 if (exit $ac_status) && test -s "$ac_outfile"; then
7992 # The compiler can only warn and ignore the option if not recognized
7993 # So say no if there are warnings other than the usual output.
7622 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7623 $SED '/^$/d' conftest.err >conftest.er2
7624 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7625 lt_prog_compiler_pic_works=yes
7994 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_pic_works=yes
7998 fi
7999 fi
8000 $rm conftest*
8001
8002fi
7631{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7632echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8003{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8004echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8005
7634if test x"$lt_prog_compiler_pic_works" = xyes; then
8006if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8007 case $lt_prog_compiler_pic in
8008 "" | " "*) ;;
8009 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8010 esac
8011else
8012 lt_prog_compiler_pic=
8013 lt_prog_compiler_can_build_shared=no
8014fi
8015
8016fi
7645case "$host_os" in
8017case $host_os in
8018 # For platforms which do not support PIC, -DPIC is meaningless:
8019 *djgpp*)
8020 lt_prog_compiler_pic=
8021 ;;
8022 *)
8023 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8024 ;;
8025esac
8026
8027#
8028# Check to make sure the static flag actually works.
8029#
8030wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8031{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8032echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8033if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036 lt_cv_prog_compiler_static_works=no
8037 save_LDFLAGS="$LDFLAGS"
8038 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8039 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8040 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8041 # The linker can only warn and ignore the option if not recognized
8042 # So say no if there are warnings
8043 if test -s conftest.err; then
8044 # Append any errors to the config.log.
8045 cat conftest.err 1>&5
8046 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8048 if diff conftest.exp conftest.er2 >/dev/null; then
8049 lt_cv_prog_compiler_static_works=yes
8050 fi
8051 else
8052 lt_cv_prog_compiler_static_works=yes
8053 fi
8054 fi
8055 $rm -r conftest*
8056 LDFLAGS="$save_LDFLAGS"
8057
8058fi
8059{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8060echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8061
8062if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8063 :
8064else
8065 lt_prog_compiler_static=
8066fi
8067
8068
8069{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8070echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8071if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073else
8074 lt_cv_prog_compiler_c_o=no
8075 $rm -r conftest 2>/dev/null
8076 mkdir conftest
8077 cd conftest
8078 mkdir out
7665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080
8081 lt_compiler_flag="-o out/conftest2.$ac_objext"
8082 # Insert the option either (1) after the last *FLAGS variable, or
8083 # (2) before a word containing "conftest.", or (3) at the end.
8084 # Note that $ac_compile itself does not contain backslashes and begins
8085 # with a dollar sign (not a hyphen), so the echo should work correctly.
8086 lt_compile=`echo "$ac_compile" | $SED \
7673 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089 -e 's:$: $lt_compiler_flag:'`
7676 (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
8090 (eval echo "\"\$as_me:8090: $lt_compile\"" >&5)
8091 (eval "$lt_compile" 2>out/conftest.err)
8092 ac_status=$?
8093 cat out/conftest.err >&5
7680 echo "$as_me:7680: \$? = $ac_status" >&5
8094 echo "$as_me:8094: \$? = $ac_status" >&5
8095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8096 then
8097 # The compiler can only warn and ignore the option if not recognized
8098 # So say no if there are warnings
7685 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7686 $SED '/^$/d' out/conftest.err >out/conftest.er2
7687 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8099 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8102 lt_cv_prog_compiler_c_o=yes
8103 fi
8104 fi
7691 chmod u+w .
8105 chmod u+w . 2>&5
8106 $rm conftest*
8107 # SGI C++ compiler will create directory out/ii_files/ for
8108 # template instantiation
8109 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8110 $rm out/* && rmdir out
8111 cd ..
8112 rmdir conftest
8113 $rm conftest*

--- 52 unchanged lines hidden (view full) ---

8166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8167 # include_expsyms should be a list of space-separated symbols to be *always*
8168 # included in the symbol list
8169 include_expsyms=
8170 # exclude_expsyms can be an extended regexp of symbols to exclude
8171 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8172 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8173 # as well as any symbol that contains `d'.
7760 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8174 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8176 # platforms (ab)use it in PIC code, but their linkers get confused if
8177 # the symbol is explicitly referenced. Since portable code cannot
8178 # rely on this symbol name, it's probably fine to never include it in
8179 # preloaded symbol tables.
8180 # Exclude shared library initialization/finalization symbols.
8181 extract_expsyms_cmds=
8182 # Just being paranoid about ensuring that cc_basename is set.
8183 for cc_temp in $compiler""; do
8184 case $cc_temp in
8185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8187 \-*) ;;
8188 *) break;;

--- 5 unchanged lines hidden (view full) ---

8194 cygwin* | mingw* | pw32*)
8195 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8196 # When not using gcc, we currently assume that we are using
8197 # Microsoft Visual C++.
8198 if test "$GCC" != yes; then
8199 with_gnu_ld=no
8200 fi
8201 ;;
8202 interix*)
8203 # we just hope/assume this is gcc and not c89 (= MSVC++)
8204 with_gnu_ld=yes
8205 ;;
8206 openbsd*)
8207 with_gnu_ld=no
8208 ;;
8209 esac
8210
8211 ld_shlibs=yes
8212 if test "$with_gnu_ld" = yes; then
8213 # If archive_cmds runs LD, not CC, wlarc should be empty

--- 17 unchanged lines hidden (view full) ---

8231 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8232 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8233 *\ 2.11.*) ;; # other 2.11 versions
8234 *) supports_anon_versioning=yes ;;
8235 esac
8236
8237 # See if GNU ld supports shared libraries.
8238 case $host_os in
7820 aix3* | aix4* | aix5*)
8239 aix[3-9]*)
8240 # On AIX/PPC, the GNU linker is very broken
8241 if test "$host_cpu" != ia64; then
8242 ld_shlibs=no
8243 cat <<EOF 1>&2
8244
8245*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8246*** to be unable to reliably create shared libraries on AIX.
8247*** Therefore, libtool is disabling shared libraries support. If you

--- 31 unchanged lines hidden (view full) ---

8279
8280 cygwin* | mingw* | pw32*)
8281 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8282 # as there is no search path for DLLs.
8283 hardcode_libdir_flag_spec='-L$libdir'
8284 allow_undefined_flag=unsupported
8285 always_export_symbols=no
8286 enable_shared_with_static_runtimes=yes
7868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8288
8289 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8291 # If the export-symbols file already is a .def file (1st line
8292 # is EXPORTS), use it as is; otherwise, prepend...
8293 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8294 cp $export_symbols $output_objdir/$soname.def;
8295 else
8296 echo EXPORTS > $output_objdir/$soname.def;
8297 cat $export_symbols >> $output_objdir/$soname.def;
8298 fi~
7880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8299 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8300 else
8301 ld_shlibs=no
8302 fi
8303 ;;
8304
7886 linux*)
8305 interix[3-9]*)
8306 hardcode_direct=no
8307 hardcode_shlibpath_var=no
8308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8309 export_dynamic_flag_spec='${wl}-E'
8310 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8311 # Instead, shared libraries are loaded at an image base (0x10000000 by
8312 # default) and relocated if they conflict, which is a slow very memory
8313 # consuming and fragmenting process. To avoid this, we pick a random,
8314 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8315 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8317 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'
8318 ;;
8319
8320 gnu* | linux* | k*bsd*-gnu)
8321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8322 tmp_addflag=
8323 case $cc_basename,$host_cpu in
8324 pgcc*) # Portland Group C compiler
7891 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'
8325 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'
8326 tmp_addflag=' $pic_flag'
8327 ;;
7894 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7895 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'
8328 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8329 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'
8330 tmp_addflag=' $pic_flag -Mnomain' ;;
8331 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8332 tmp_addflag=' -i_dynamic' ;;
8333 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8334 tmp_addflag=' -i_dynamic -nofor_main' ;;
8335 ifc* | ifort*) # Intel Fortran compiler
8336 tmp_addflag=' -nofor_main' ;;
8337 esac
7904 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338 case `$CC -V 2>&1 | sed 5q` in
8339 *Sun\ C*) # Sun C 5.9
8340 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'
8341 tmp_sharedflag='-G' ;;
8342 *Sun\ F*) # Sun Fortran 8.3
8343 tmp_sharedflag='-G' ;;
8344 *)
8345 tmp_sharedflag='-shared' ;;
8346 esac
8347 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8348
8349 if test $supports_anon_versioning = yes; then
8350 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8352 $echo "local: *; };" >> $output_objdir/$libname.ver~
7910 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8353 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8354 fi
8355 else
8356 ld_shlibs=no
8357 fi
8358 ;;
8359
8360 netbsd*)
8361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8362 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8363 wlarc=
8364 else
8365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8367 fi
8368 ;;
8369
7927 solaris* | sysv5*)
8370 solaris*)
8371 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8372 ld_shlibs=no
8373 cat <<EOF 1>&2
8374
8375*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8376*** create shared libraries on Solaris systems. Therefore, libtool
8377*** is disabling shared libraries support. We urge you to upgrade GNU
8378*** binutils to release 2.9.1 or newer. Another option is to modify

--- 4 unchanged lines hidden (view full) ---

8383 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8385 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8386 else
8387 ld_shlibs=no
8388 fi
8389 ;;
8390
8391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8392 case `$LD -v 2>&1` in
8393 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8394 ld_shlibs=no
8395 cat <<_LT_EOF 1>&2
8396
8397*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8398*** reliably create shared libraries on SCO systems. Therefore, libtool
8399*** is disabling shared libraries support. We urge you to upgrade GNU
8400*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8401*** your PATH or compiler configuration so that the native linker is
8402*** used, and then restart.
8403
8404_LT_EOF
8405 ;;
8406 *)
8407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8408 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8411 else
8412 ld_shlibs=no
8413 fi
8414 ;;
8415 esac
8416 ;;
8417
8418 sunos4*)
8419 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8420 wlarc=
8421 hardcode_direct=yes
8422 hardcode_shlibpath_var=no
8423 ;;
8424
8425 *)

--- 17 unchanged lines hidden (view full) ---

8443 case $host_os in
8444 aix3*)
8445 allow_undefined_flag=unsupported
8446 always_export_symbols=yes
8447 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8448 # Note: this linker hardcodes the directories in LIBPATH if there
8449 # are no directories specified by -L.
8450 hardcode_minus_L=yes
7981 if test "$GCC" = yes && test -z "$link_static_flag"; then
8451 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8452 # Neither direct hardcoding nor static linking is supported with a
8453 # broken collect2.
8454 hardcode_direct=unsupported
8455 fi
8456 ;;
8457
7988 aix4* | aix5*)
8458 aix[4-9]*)
8459 if test "$host_cpu" = ia64; then
8460 # On IA64, the linker does run time linking by default, so we don't
8461 # have to do anything special.
8462 aix_use_runtimelinking=no
8463 exp_sym_flag='-Bexport'
8464 no_entry_flag=""
8465 else
8466 # If we're using GNU nm, then we don't want the "-C" option.
8467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8468 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8469 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8470 else
8471 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8472 fi
8473 aix_use_runtimelinking=no
8474
8475 # Test if we are trying to use run time linking or normal
8476 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8477 # need to do runtime linking.
8008 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8478 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8479 for ld_flag in $LDFLAGS; do
8480 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8481 aix_use_runtimelinking=yes
8482 break
8483 fi
8484 done
8485 ;;
8486 esac
8487
8488 exp_sym_flag='-bexport'
8489 no_entry_flag='-bnoentry'
8490 fi
8491
8492 # When large executables or shared objects are built, AIX ld can
8493 # have problems creating the table of contents. If linking a library

--- 10 unchanged lines hidden (view full) ---

8504 case $host_os in aix4.[012]|aix4.[012].*)
8505 # We only want to do this on AIX 4.2 and lower, the check
8506 # below for broken collect2 doesn't work under 4.3+
8507 collect2name=`${CC} -print-prog-name=collect2`
8508 if test -f "$collect2name" && \
8509 strings "$collect2name" | grep resolve_lib_name >/dev/null
8510 then
8511 # We have reworked collect2
8041 hardcode_direct=yes
8512 :
8513 else
8514 # We have old collect2
8515 hardcode_direct=unsupported
8516 # It fails to find uninstalled libraries when the uninstalled
8517 # path is not listed in the libpath. Setting hardcode_minus_L
8518 # to unsupported forces relinking
8519 hardcode_minus_L=yes
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 hardcode_libdir_separator=
8522 fi
8523 ;;
8524 esac
8525 shared_flag='-shared'
8526 if test "$aix_use_runtimelinking" = yes; then
8527 shared_flag="$shared_flag "'${wl}-G'
8528 fi
8529 else
8530 # not using gcc
8531 if test "$host_cpu" = ia64; then
8532 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8533 # chokes on -Wl,-G. The following line is correct:
8534 shared_flag='-G'
8535 else
8064 if test "$aix_use_runtimelinking" = yes; then
8536 if test "$aix_use_runtimelinking" = yes; then
8537 shared_flag='${wl}-G'
8538 else
8539 shared_flag='${wl}-bM:SRE'
8068 fi
8540 fi
8541 fi
8542 fi
8543
8544 # It seems that -bexpall does not export symbols beginning with
8545 # underscore (_), so it is better to generate a list of symbols to export.
8546 always_export_symbols=yes
8547 if test "$aix_use_runtimelinking" = yes; then
8548 # Warning - without using the other runtime loading flags (-brtl),

--- 29 unchanged lines hidden (view full) ---

8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && {
8581 test -z "$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 } && test -s conftest$ac_exeext &&
8584 $as_test_x conftest$ac_exeext; then
8585
8114aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8115}'`
8586lt_aix_libpath_sed='
8587 /Import File Strings/,/^$/ {
8588 /^0/ {
8589 s/^0 *\(.*\)$/\1/
8590 p
8591 }
8592 }'
8593aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8594# Check for a 64-bit object if we didn't find anything.
8117if 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; }
8118}'`; fi
8595if test -z "$aix_libpath"; then
8596 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8597fi
8598else
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
8602
8603fi
8604
8605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8606 conftest$ac_exeext conftest.$ac_ext
8607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8608
8609 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8131 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"
8610 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"
8611 else
8612 if test "$host_cpu" = ia64; then
8613 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8614 allow_undefined_flag="-z nodefs"
8136 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"
8615 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"
8616 else
8617 # Determine the default libpath from the value encoded in an empty executable.
8618 cat >conftest.$ac_ext <<_ACEOF
8619/* confdefs.h. */
8620_ACEOF
8621cat confdefs.h >>conftest.$ac_ext
8622cat >>conftest.$ac_ext <<_ACEOF
8623/* end confdefs.h. */

--- 20 unchanged lines hidden (view full) ---

8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest$ac_exeext &&
8650 $as_test_x conftest$ac_exeext; then
8651
8173aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8174}'`
8652lt_aix_libpath_sed='
8653 /Import File Strings/,/^$/ {
8654 /^0/ {
8655 s/^0 *\(.*\)$/\1/
8656 p
8657 }
8658 }'
8659aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8660# Check for a 64-bit object if we didn't find anything.
8176if 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; }
8177}'`; fi
8661if test -z "$aix_libpath"; then
8662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8663fi
8664else
8665 echo "$as_me: failed program was:" >&5
8666sed 's/^/| /' conftest.$ac_ext >&5
8667
8668
8669fi
8670
8671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8672 conftest$ac_exeext conftest.$ac_ext
8673if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8674
8675 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8676 # Warning - without using the other run time loading flags,
8677 # -berok will link without error, but may produce a broken library.
8678 no_undefined_flag=' ${wl}-bernotok'
8679 allow_undefined_flag=' ${wl}-berok'
8194 # -bexpall does not export symbols beginning with underscore (_)
8195 always_export_symbols=yes
8680 # Exported symbols can be pulled into shared objects from archives
8197 whole_archive_flag_spec=' '
8681 whole_archive_flag_spec='$convenience'
8682 archive_cmds_need_lc=yes
8199 # This is similar to how AIX traditionally builds it's shared libraries.
8200 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'
8683 # This is similar to how AIX traditionally builds its shared libraries.
8684 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'
8685 fi
8686 fi
8687 ;;
8688
8689 amigaos*)
8690 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_minus_L=yes

--- 16 unchanged lines hidden (view full) ---

8709 libext=lib
8710 # Tell ltmain to make .dll files, not .so files.
8711 shrext_cmds=".dll"
8712 # FIXME: Setting linknames here is a bad hack.
8713 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8714 # The linker will automatically build a .lib file if we build a DLL.
8715 old_archive_From_new_cmds='true'
8716 # FIXME: Should let the user specify the lib program.
8233 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8717 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8718 fix_srcfile_path='`cygpath -w "$srcfile"`'
8719 enable_shared_with_static_runtimes=yes
8720 ;;
8721
8722 darwin* | rhapsody*)
8239 case "$host_os" in
8723 case $host_os in
8724 rhapsody* | darwin1.[012])
8725 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8726 ;;
8727 *) # Darwin 1.3 on
8728 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8729 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8730 else
8731 case ${MACOSX_DEPLOYMENT_TARGET} in

--- 10 unchanged lines hidden (view full) ---

8742 archive_cmds_need_lc=no
8743 hardcode_direct=no
8744 hardcode_automatic=yes
8745 hardcode_shlibpath_var=unsupported
8746 whole_archive_flag_spec=''
8747 link_all_deplibs=yes
8748 if test "$GCC" = yes ; then
8749 output_verbose_link_cmd='echo'
8266 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8267 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8269 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}'
8270 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}'
8750 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8751 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8752 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}"
8753 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}"
8754 else
8755 case $cc_basename in
8756 xlc*)
8757 output_verbose_link_cmd='echo'
8275 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8758 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8759 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8278 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8761 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}'
8762 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}'
8763 ;;
8764 *)
8765 ld_shlibs=no
8766 ;;
8767 esac
8768 fi
8769 ;;

--- 23 unchanged lines hidden (view full) ---

8793 freebsd2*)
8794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_direct=yes
8796 hardcode_minus_L=yes
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8318 freebsd* | kfreebsd*-gnu | dragonfly*)
8801 freebsd* | dragonfly*)
8802 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8803 hardcode_libdir_flag_spec='-R$libdir'
8804 hardcode_direct=yes
8805 hardcode_shlibpath_var=no
8806 ;;
8807
8808 hpux9*)
8809 if test "$GCC" = yes; then

--- 6 unchanged lines hidden (view full) ---

8816 hardcode_direct=yes
8817
8818 # hardcode_minus_L: Not really in the search PATH,
8819 # but as the default location of the library.
8820 hardcode_minus_L=yes
8821 export_dynamic_flag_spec='${wl}-E'
8822 ;;
8823
8341 hpux10* | hpux11*)
8824 hpux10*)
8825 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8343 case "$host_cpu" in
8344 hppa*64*|ia64*)
8826 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8827 else
8828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8829 fi
8830 if test "$with_gnu_ld" = no; then
8831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8832 hardcode_libdir_separator=:
8833
8834 hardcode_direct=yes
8835 export_dynamic_flag_spec='${wl}-E'
8836
8837 # hardcode_minus_L: Not really in the search PATH,
8838 # but as the default location of the library.
8839 hardcode_minus_L=yes
8840 fi
8841 ;;
8842
8843 hpux11*)
8844 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8845 case $host_cpu in
8846 hppa*64*)
8847 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 ;;
8849 ia64*)
8850 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8851 ;;
8852 *)
8853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8854 ;;
8855 esac
8856 else
8352 case "$host_cpu" in
8353 hppa*64*|ia64*)
8354 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 case $host_cpu in
8858 hppa*64*)
8859 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 ;;
8861 ia64*)
8862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8863 ;;
8864 *)
8357 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8865 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8866 ;;
8867 esac
8868 fi
8869 if test "$with_gnu_ld" = no; then
8362 case "$host_cpu" in
8363 hppa*64*)
8364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8871 hardcode_libdir_separator=:
8872
8873 case $host_cpu in
8874 hppa*64*|ia64*)
8875 hardcode_libdir_flag_spec_ld='+b $libdir'
8366 hardcode_libdir_separator=:
8876 hardcode_direct=no
8877 hardcode_shlibpath_var=no
8878 ;;
8370 ia64*)
8371 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_direct=no
8373 hardcode_shlibpath_var=no
8374
8375 # hardcode_minus_L: Not really in the search PATH,
8376 # but as the default location of the library.
8377 hardcode_minus_L=yes
8378 ;;
8879 *)
8380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8381 hardcode_libdir_separator=:
8880 hardcode_direct=yes
8881 export_dynamic_flag_spec='${wl}-E'
8882
8883 # hardcode_minus_L: Not really in the search PATH,
8884 # but as the default location of the library.
8885 hardcode_minus_L=yes
8886 ;;
8887 esac

--- 27 unchanged lines hidden (view full) ---

8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_direct=yes
8917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8918 hardcode_libdir_separator=:
8919 hardcode_shlibpath_var=no
8920 ;;
8921
8922 openbsd*)
8425 hardcode_direct=yes
8426 hardcode_shlibpath_var=no
8427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8428 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8429 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8431 export_dynamic_flag_spec='${wl}-E'
8923 if test -f /usr/libexec/ld.so; then
8924 hardcode_direct=yes
8925 hardcode_shlibpath_var=no
8926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8930 export_dynamic_flag_spec='${wl}-E'
8931 else
8932 case $host_os in
8933 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8935 hardcode_libdir_flag_spec='-R$libdir'
8936 ;;
8937 *)
8938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8940 ;;
8941 esac
8942 fi
8943 else
8433 case $host_os in
8434 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8436 hardcode_libdir_flag_spec='-R$libdir'
8437 ;;
8438 *)
8439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8441 ;;
8442 esac
8944 ld_shlibs=no
8945 fi
8946 ;;
8947
8948 os2*)
8949 hardcode_libdir_flag_spec='-L$libdir'
8950 hardcode_minus_L=yes
8951 allow_undefined_flag=unsupported
8952 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'

--- 24 unchanged lines hidden (view full) ---

8977 $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'
8978
8979 # Both c and cxx compiler support -rpath directly
8980 hardcode_libdir_flag_spec='-rpath $libdir'
8981 fi
8982 hardcode_libdir_separator=:
8983 ;;
8984
8483 sco3.2v5*)
8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_shlibpath_var=no
8486 export_dynamic_flag_spec='${wl}-Bexport'
8487 runpath_var=LD_RUN_PATH
8488 hardcode_runpath_var=yes
8489 ;;
8490
8985 solaris*)
8986 no_undefined_flag=' -z text'
8987 if test "$GCC" = yes; then
8988 wlarc='${wl}'
8989 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8991 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8992 else
8993 wlarc=''
8994 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8996 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8997 fi
8998 hardcode_libdir_flag_spec='-R$libdir'
8999 hardcode_shlibpath_var=no
9000 case $host_os in
9001 solaris2.[0-5] | solaris2.[0-5].*) ;;
9002 *)
8509 # The compiler driver will combine linker options so we
8510 # cannot just pass the convience library names through
8511 # without $wl, iff we do not link with $LD.
8512 # Luckily, gcc supports the same syntax we need for Sun Studio.
9003 # The compiler driver will combine and reorder linker options,
9004 # but understands `-z linker_flag'. GCC discards it without `$wl',
9005 # but is careful enough not to reorder.
9006 # Supported since Solaris 2.6 (maybe 2.5.1?)
8514 case $wlarc in
8515 '')
8516 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8517 *)
8518 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8519 esac ;;
9007 if test "$GCC" = yes; then
9008 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9009 else
9010 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9011 fi
9012 ;;
9013 esac
9014 link_all_deplibs=yes
9015 ;;
9016
9017 sunos4*)
9018 if test "x$host_vendor" = xsequent; then
9019 # Use $CC to link under sequent, because it throws in some extra .o
9020 # files that make .init and .fini sections work.

--- 40 unchanged lines hidden (view full) ---

9061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9062 hardcode_shlibpath_var=no
9063 runpath_var=LD_RUN_PATH
9064 hardcode_runpath_var=yes
9065 ld_shlibs=yes
9066 fi
9067 ;;
9068
8576 sysv4.2uw2*)
8577 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8578 hardcode_direct=yes
8579 hardcode_minus_L=no
9069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9070 no_undefined_flag='${wl}-z,text'
9071 archive_cmds_need_lc=no
9072 hardcode_shlibpath_var=no
8581 hardcode_runpath_var=yes
8582 runpath_var=LD_RUN_PATH
8583 ;;
9073 runpath_var='LD_RUN_PATH'
9074
8585 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8586 no_undefined_flag='${wl}-z ${wl}text'
9075 if test "$GCC" = yes; then
8588 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9077 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 else
8590 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9080 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9081 fi
8592 runpath_var='LD_RUN_PATH'
8593 hardcode_shlibpath_var=no
9082 ;;
9083
8596 sysv5*)
8597 no_undefined_flag=' -z text'
8598 # $CC -shared without GNU ld will not create a library from C++
8599 # object files and a static libstdc++, better avoid it by now
8600 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8601 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8602 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8603 hardcode_libdir_flag_spec=
9084 sysv5* | sco3.2v5* | sco5v6*)
9085 # Note: We can NOT use -z defs as we might desire, because we do not
9086 # link with -lc, and that would cause any symbols used from libc to
9087 # always be unresolved, which means just about no library would
9088 # ever link correctly. If we're not using GNU ld we use -z text
9089 # though, which does catch some bad symbols but isn't as heavy-handed
9090 # as -z defs.
9091 no_undefined_flag='${wl}-z,text'
9092 allow_undefined_flag='${wl}-z,nodefs'
9093 archive_cmds_need_lc=no
9094 hardcode_shlibpath_var=no
9095 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9096 hardcode_libdir_separator=':'
9097 link_all_deplibs=yes
9098 export_dynamic_flag_spec='${wl}-Bexport'
9099 runpath_var='LD_RUN_PATH'
9100
9101 if test "$GCC" = yes; then
9102 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9104 else
9105 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9107 fi
9108 ;;
9109
9110 uts4*)
9111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_shlibpath_var=no
9114 ;;
9115
9116 *)
9117 ld_shlibs=no
9118 ;;
9119 esac
9120 fi
9121
9122{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9123echo "${ECHO_T}$ld_shlibs" >&6; }
9124test "$ld_shlibs" = no && can_build_shared=no
9125
8624variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8625if test "$GCC" = yes; then
8626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8627fi
8628
9126#
9127# Do we need to explicitly link libc?
9128#
9129case "x$archive_cmds_need_lc" in
9130x|xyes)
9131 # Assume -lc should be added
9132 archive_cmds_need_lc=yes
9133

--- 4 unchanged lines hidden (view full) ---

9138 ;;
9139 '$CC '*)
9140 # Test whether the compiler implicitly links with -lc since on some
9141 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9142 # to ld, don't add -lc before -lgcc.
9143 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9144echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9145 $rm conftest*
8649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147
9148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } 2>conftest.err; then
9153 soname=conftest
9154 lib=conftest
9155 libobjs=conftest.$ac_objext
9156 deplibs=
9157 wl=$lt_prog_compiler_wl
9158 pic_flag=$lt_prog_compiler_pic
9159 compiler_flags=-v
9160 linker_flags=-v
9161 verstring=
9162 output_objdir=.
9163 libname=conftest
9164 lt_save_allow_undefined_flag=$allow_undefined_flag
9165 allow_undefined_flag=
9166 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5

--- 29 unchanged lines hidden (view full) ---

9196postuninstall_cmds=
9197finish_cmds=
9198finish_eval=
9199shlibpath_var=
9200shlibpath_overrides_runpath=unknown
9201version_type=none
9202dynamic_linker="$host_os ld.so"
9203sys_lib_dlsearch_path_spec="/lib /usr/lib"
9204
9205if test "$GCC" = yes; then
8707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9206 case $host_os in
9207 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9208 *) lt_awk_arg="/^libraries:/" ;;
9209 esac
9210 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9211 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9212 # if the path contains ";" then we assume it to be the separator
9213 # otherwise default to the standard path separator (i.e. ":") - it is
9214 # assumed that no part of a normal pathname contains ";" but that should
9215 # okay in the real world where ";" in dirpaths is itself problematic.
8713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9216 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9217 else
8715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9218 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9219 fi
9220 # Ok, now we have the path, separated by spaces, we can step through it
9221 # and add multilib dir if necessary.
9222 lt_tmp_lt_search_path_spec=
9223 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9224 for lt_sys_path in $lt_search_path_spec; do
9225 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9226 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9227 else
9228 test -d "$lt_sys_path" && \
9229 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9230 fi
9231 done
9232 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9233BEGIN {RS=" "; FS="/|\n";} {
9234 lt_foo="";
9235 lt_count=0;
9236 for (lt_i = NF; lt_i > 0; lt_i--) {
9237 if ($lt_i != "" && $lt_i != ".") {
9238 if ($lt_i == "..") {
9239 lt_count++;
9240 } else {
9241 if (lt_count == 0) {
9242 lt_foo="/" $lt_i lt_foo;
9243 } else {
9244 lt_count--;
9245 }
9246 }
9247 }
9248 }
9249 if (lt_foo != "") { lt_freq[lt_foo]++; }
9250 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9251}'`
9252 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9253else
9254 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9255fi
9256need_lib_prefix=unknown
9257hardcode_into_libs=no
9258
9259# when you set need_version to no, make sure it does not cause -set_version
9260# flags to be left without arguments

--- 4 unchanged lines hidden (view full) ---

9265 version_type=linux
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9267 shlibpath_var=LIBPATH
9268
9269 # AIX 3 has no versioning support, so we append a major version to the name.
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 ;;
9272
8737aix4* | aix5*)
9273aix[4-9]*)
9274 version_type=linux
9275 need_lib_prefix=no
9276 need_version=no
9277 hardcode_into_libs=yes
9278 if test "$host_cpu" = ia64; then
9279 # AIX 5 supports IA64
9280 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9281 shlibpath_var=LD_LIBRARY_PATH

--- 67 unchanged lines hidden (view full) ---

9349 case $GCC,$host_os in
9350 yes,cygwin* | yes,mingw* | yes,pw32*)
9351 library_names_spec='$libname.dll.a'
9352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9353 postinstall_cmds='base_file=`basename \${file}`~
9354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9355 dldir=$destdir/`dirname \$dlpath`~
9356 test -d \$dldir || mkdir -p \$dldir~
8821 $install_prog $dir/$dlname \$dldir/$dlname'
9357 $install_prog $dir/$dlname \$dldir/$dlname~
9358 chmod a+x \$dldir/$dlname'
9359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9360 dlpath=$dir/\$dldll~
9361 $rm \$dlpath'
9362 shlibpath_overrides_runpath=yes
9363
9364 case $host_os in
9365 cygwin*)
9366 # Cygwin DLLs use 'cyg' prefix rather than 'lib'

--- 36 unchanged lines hidden (view full) ---

9403 dynamic_linker="$host_os dyld"
9404 version_type=darwin
9405 need_lib_prefix=no
9406 need_version=no
9407 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9408 soname_spec='${libname}${release}${major}$shared_ext'
9409 shlibpath_overrides_runpath=yes
9410 shlibpath_var=DYLD_LIBRARY_PATH
8874 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8875 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8876 if test "$GCC" = yes; then
8877 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"`
8878 else
8879 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8880 fi
9411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9412
9413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9415 ;;
9416
9417dgux*)
9418 version_type=linux
9419 need_lib_prefix=no
9420 need_version=no
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 ;;
9425
9426freebsd1*)
9427 dynamic_linker=no
9428 ;;
9429
8897kfreebsd*-gnu)
8898 version_type=linux
8899 need_lib_prefix=no
8900 need_version=no
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 shlibpath_overrides_runpath=no
8905 hardcode_into_libs=yes
8906 dynamic_linker='GNU ld.so'
8907 ;;
8908
9430freebsd* | dragonfly*)
9431 # DragonFly does not have aout. When/if they implement a new
9432 # versioning mechanism, adjust this.
8912 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9433 if test -x /usr/bin/objformat; then
9434 objformat=`/usr/bin/objformat`
9435 else
9436 case $host_os in
9437 freebsd[123]*) objformat=aout ;;
9438 *) objformat=elf ;;
9439 esac
9440 fi
9441 version_type=freebsd-$objformat
9442 case $version_type in
9443 freebsd-elf*)
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445 need_version=no
9446 need_lib_prefix=no
9447 ;;
9448 freebsd-*)

--- 5 unchanged lines hidden (view full) ---

9454 case $host_os in
9455 freebsd2*)
9456 shlibpath_overrides_runpath=yes
9457 ;;
9458 freebsd3.[01]* | freebsdelf3.[01]*)
9459 shlibpath_overrides_runpath=yes
9460 hardcode_into_libs=yes
9461 ;;
8934 *) # from 3.2 on
9462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9466 ;;
9467 *) # from 4.6 on, and DragonFly
9468 shlibpath_overrides_runpath=yes
9469 hardcode_into_libs=yes
9470 ;;
9471 esac
9472 ;;
9473
9474gnu*)
9475 version_type=linux
9476 need_lib_prefix=no
9477 need_version=no
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 hardcode_into_libs=yes
9482 ;;
9483
9484hpux9* | hpux10* | hpux11*)
9485 # Give a soname corresponding to the major version so that dld.sl refuses to
9486 # link against other versions.
9487 version_type=sunos
9488 need_lib_prefix=no
9489 need_version=no
8957 case "$host_cpu" in
9490 case $host_cpu in
9491 ia64*)
9492 shrext_cmds='.so'
9493 hardcode_into_libs=yes
9494 dynamic_linker="$host_os dld.so"
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'

--- 23 unchanged lines hidden (view full) ---

9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 ;;
9525 esac
9526 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9527 postinstall_cmds='chmod 555 $lib'
9528 ;;
9529
9530interix[3-9]*)
9531 version_type=linux
9532 need_lib_prefix=no
9533 need_version=no
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=no
9539 hardcode_into_libs=yes
9540 ;;
9541
9542irix5* | irix6* | nonstopux*)
9543 case $host_os in
9544 nonstopux*) version_type=nonstopux ;;
9545 *)
9546 if test "$lt_cv_prog_gnu_ld" = yes; then
9547 version_type=linux
9548 else
9549 version_type=irix

--- 27 unchanged lines hidden (view full) ---

9577 ;;
9578
9579# No shared lib support for Linux oldld, aout, or coff.
9580linux*oldld* | linux*aout* | linux*coff*)
9581 dynamic_linker=no
9582 ;;
9583
9584# This must be Linux ELF.
9040linux*)
9585linux* | k*bsd*-gnu)
9586 version_type=linux
9587 need_lib_prefix=no
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 shlibpath_overrides_runpath=no
9594 # This implies no fast_install, which is unacceptable.
9595 # Some rework will be needed to allow for fast_install
9596 # before this can be enabled.
9597 hardcode_into_libs=yes
9598
9599 # Append ld.so.conf contents to the search path
9600 if test -f /etc/ld.so.conf; then
9056 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9601 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' ' '`
9602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9603 fi
9604
9605 # We used to test for /lib/ld.so.1 and disable shared libraries on
9606 # powerpc, because MkLinux only supported shared libraries with the
9607 # GNU dynamic linker. Since this was broken with cross compilers,
9608 # most powerpc-linux boxes support dynamic linking these days and
9609 # people can always --disable-shared, the test was removed, and we
9610 # assume the GNU/Linux dynamic linker is in use.
9611 dynamic_linker='GNU/Linux ld.so'
9612 ;;
9613
9069knetbsd*-gnu)
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=no
9077 hardcode_into_libs=yes
9078 dynamic_linker='GNU ld.so'
9079 ;;
9080
9614netbsd*)
9615 version_type=sunos
9616 need_lib_prefix=no
9617 need_version=no
9618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9621 dynamic_linker='NetBSD (a.out) ld.so'

--- 21 unchanged lines hidden (view full) ---

9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644 soname_spec='${libname}${release}${shared_ext}$major'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9647 ;;
9648
9649openbsd*)
9650 version_type=sunos
9651 sys_lib_dlsearch_path_spec="/usr/lib"
9652 need_lib_prefix=no
9653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9654 case $host_os in
9655 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9656 *) need_version=no ;;
9657 esac
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'

--- 27 unchanged lines hidden (view full) ---

9687 need_version=no
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9693 ;;
9694
9161sco3.2v5*)
9162 version_type=osf
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 shlibpath_var=LD_LIBRARY_PATH
9695rdos*)
9696 dynamic_linker=no
9697 ;;
9698
9699solaris*)
9700 version_type=linux
9701 need_lib_prefix=no
9702 need_version=no
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'

--- 11 unchanged lines hidden (view full) ---

9716 shlibpath_var=LD_LIBRARY_PATH
9717 shlibpath_overrides_runpath=yes
9718 if test "$with_gnu_ld" = yes; then
9719 need_lib_prefix=no
9720 fi
9721 need_version=yes
9722 ;;
9723
9193sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9724sysv4 | sysv4.3*)
9725 version_type=linux
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 case $host_vendor in
9730 sni)
9731 shlibpath_overrides_runpath=no
9732 need_lib_prefix=no

--- 16 unchanged lines hidden (view full) ---

9749 if test -d /usr/nec ;then
9750 version_type=linux
9751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9752 soname_spec='$libname${shared_ext}.$major'
9753 shlibpath_var=LD_LIBRARY_PATH
9754 fi
9755 ;;
9756
9757sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9758 version_type=freebsd-elf
9759 need_lib_prefix=no
9760 need_version=no
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 hardcode_into_libs=yes
9765 if test "$with_gnu_ld" = yes; then
9766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9767 shlibpath_overrides_runpath=no
9768 else
9769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9770 shlibpath_overrides_runpath=yes
9771 case $host_os in
9772 sco3.2v5*)
9773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9774 ;;
9775 esac
9776 fi
9777 sys_lib_dlsearch_path_spec='/usr/lib'
9778 ;;
9779
9780uts4*)
9781 version_type=linux
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 shlibpath_var=LD_LIBRARY_PATH
9785 ;;
9786
9787*)
9788 dynamic_linker=no
9789 ;;
9790esac
9791{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9792echo "${ECHO_T}$dynamic_linker" >&6; }
9793test "$dynamic_linker" = no && can_build_shared=no
9794
9795if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9799fi
9800
9801sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9802if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9806fi
9807
9808sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9809
9810variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9811if test "$GCC" = yes; then
9812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9813fi
9814
9815{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9816echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9817hardcode_action=
9818if test -n "$hardcode_libdir_flag_spec" || \
9819 test -n "$runpath_var" || \
9820 test "X$hardcode_automatic" = "Xyes" ; then
9821
9822 # We can hardcode non-existant directories.

--- 36 unchanged lines hidden (view full) ---

9859 { echo "$as_me:$LINENO: result: yes" >&5
9860echo "${ECHO_T}yes" >&6; }
9861else
9862# FIXME - insert some real tests, host_os isn't really good enough
9863 case $host_os in
9864 darwin*)
9865 if test -n "$STRIP" ; then
9866 striplib="$STRIP -x"
9867 old_striplib="$STRIP -S"
9868 { echo "$as_me:$LINENO: result: yes" >&5
9869echo "${ECHO_T}yes" >&6; }
9870 else
9871 { echo "$as_me:$LINENO: result: no" >&5
9872echo "${ECHO_T}no" >&6; }
9873fi
9874 ;;
9875 *)

--- 245 unchanged lines hidden (view full) ---

10121
10122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10124LIBS=$ac_check_lib_save_LIBS
10125fi
10126{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10127echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10128if test $ac_cv_lib_dld_shl_load = yes; then
9554 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10130else
10131 { echo "$as_me:$LINENO: checking for dlopen" >&5
10132echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10133if test "${ac_cv_func_dlopen+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136 cat >conftest.$ac_ext <<_ACEOF
10137/* confdefs.h. */

--- 259 unchanged lines hidden (view full) ---

10397
10398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399 conftest$ac_exeext conftest.$ac_ext
10400LIBS=$ac_check_lib_save_LIBS
10401fi
10402{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10403echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10404if test $ac_cv_lib_dld_dld_link = yes; then
9830 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10405 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10406fi
10407
10408
10409fi
10410
10411
10412fi
10413

--- 16 unchanged lines hidden (view full) ---

10430 fi
10431
10432 case $lt_cv_dlopen in
10433 dlopen)
10434 save_CPPFLAGS="$CPPFLAGS"
10435 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10436
10437 save_LDFLAGS="$LDFLAGS"
9863 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10439
10440 save_LIBS="$LIBS"
10441 LIBS="$lt_cv_dlopen_libs $LIBS"
10442
10443 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10444echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10445if test "${lt_cv_dlopen_self+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447else
10448 if test "$cross_compiling" = yes; then :
10449 lt_cv_dlopen_self=cross
10450else
10451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452 lt_status=$lt_dlunknown
10453 cat > conftest.$ac_ext <<EOF
9879#line 9879 "configure"
10454#line 10454 "configure"
10455#include "confdefs.h"
10456
10457#if HAVE_DLFCN_H
10458#include <dlfcn.h>
10459#endif
10460
10461#include <stdio.h>
10462

--- 40 unchanged lines hidden (view full) ---

10503 int status = $lt_dlunknown;
10504
10505 if (self)
10506 {
10507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10509 /* dlclose (self); */
10510 }
10511 else
10512 puts (dlerror ());
10513
10514 exit (status);
10515}
10516EOF
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518 (eval $ac_link) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9945 (./conftest; exit; ) 2>/dev/null
10522 (./conftest; exit; ) >&5 2>/dev/null
10523 lt_status=$?
10524 case x$lt_status in
10525 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10526 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9950 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10527 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10528 esac
10529 else :
10530 # compilation failed
10531 lt_cv_dlopen_self=no
10532 fi
10533fi
10534rm -fr conftest*
10535
10536
10537fi
10538{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10539echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10540
10541 if test "x$lt_cv_dlopen_self" = xyes; then
9965 LDFLAGS="$LDFLAGS $link_static_flag"
10542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10543 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10544echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10545if test "${lt_cv_dlopen_self_static+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 if test "$cross_compiling" = yes; then :
10549 lt_cv_dlopen_self_static=cross
10550else
10551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10552 lt_status=$lt_dlunknown
10553 cat > conftest.$ac_ext <<EOF
9977#line 9977 "configure"
10554#line 10554 "configure"
10555#include "confdefs.h"
10556
10557#if HAVE_DLFCN_H
10558#include <dlfcn.h>
10559#endif
10560
10561#include <stdio.h>
10562

--- 40 unchanged lines hidden (view full) ---

10603 int status = $lt_dlunknown;
10604
10605 if (self)
10606 {
10607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609 /* dlclose (self); */
10610 }
10611 else
10612 puts (dlerror ());
10613
10614 exit (status);
10615}
10616EOF
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618 (eval $ac_link) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10043 (./conftest; exit; ) 2>/dev/null
10622 (./conftest; exit; ) >&5 2>/dev/null
10623 lt_status=$?
10624 case x$lt_status in
10625 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10626 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10048 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10627 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10628 esac
10629 else :
10630 # compilation failed
10631 lt_cv_dlopen_self_static=no
10632 fi
10633fi
10634rm -fr conftest*
10635

--- 16 unchanged lines hidden (view full) ---

10652
10653 case $lt_cv_dlopen_self_static in
10654 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10655 *) enable_dlopen_self_static=unknown ;;
10656 esac
10657fi
10658
10659
10081# Report which librarie types wil actually be built
10660# Report which library types will actually be built
10661{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10662echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10663{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10664echo "${ECHO_T}$can_build_shared" >&6; }
10665
10666{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10667echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10668test "$can_build_shared" = "no" && enable_shared=no
10669
10670# On AIX, shared libraries and static libraries use the same namespace, and
10671# are all built from PIC.
10093case "$host_os" in
10672case $host_os in
10673aix3*)
10674 test "$enable_shared" = yes && enable_static=no
10675 if test -n "$RANLIB"; then
10676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10677 postinstall_cmds='$RANLIB $lib'
10678 fi
10679 ;;
10680
10102aix4* | aix5*)
10681aix[4-9]*)
10682 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10683 test "$enable_shared" = yes && enable_static=no
10684 fi
10685 ;;
10686esac
10687{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10688echo "${ECHO_T}$enable_shared" >&6; }
10689

--- 12 unchanged lines hidden (view full) ---

10702 # See if we are running on zsh, and set the options which allow our commands through
10703 # without removal of \ escapes.
10704 if test -n "${ZSH_VERSION+set}" ; then
10705 setopt NO_GLOB_SUBST
10706 fi
10707 # Now quote all the things that may contain metacharacters while being
10708 # careful not to overquote the AC_SUBSTed values. We take copies of the
10709 # variables and quote the copies for generation of the libtool script.
10131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10711 SED SHELL STRIP \
10712 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10713 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10714 deplibs_check_method reload_flag reload_cmds need_locks \
10715 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10716 lt_cv_sys_global_symbol_to_c_name_address \
10717 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10718 old_postinstall_cmds old_postuninstall_cmds \

--- 10 unchanged lines hidden (view full) ---

10729 enable_shared_with_static_runtimes \
10730 old_archive_cmds \
10731 old_archive_from_new_cmds \
10732 predep_objects \
10733 postdep_objects \
10734 predeps \
10735 postdeps \
10736 compiler_lib_search_path \
10737 compiler_lib_search_dirs \
10738 archive_cmds \
10739 archive_expsym_cmds \
10740 postinstall_cmds \
10741 postuninstall_cmds \
10742 old_archive_from_expsyms_cmds \
10743 allow_undefined_flag \
10744 no_undefined_flag \
10745 export_symbols_cmds \
10746 hardcode_libdir_flag_spec \
10747 hardcode_libdir_flag_spec_ld \
10748 hardcode_libdir_separator \
10749 hardcode_automatic \
10750 module_cmds \
10751 module_expsym_cmds \
10752 lt_cv_prog_compiler_c_o \
10753 fix_srcfile_path \
10754 exclude_expsyms \
10755 include_expsyms; do
10756
10757 case $var in
10758 old_archive_cmds | \
10759 old_archive_from_new_cmds | \
10760 archive_cmds | \
10761 archive_expsym_cmds | \

--- 28 unchanged lines hidden (view full) ---

10790
10791 cat <<__EOF__ >> "$cfgfile"
10792#! $SHELL
10793
10794# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10795# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10796# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10797#
10217# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10798# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10799# Free Software Foundation, Inc.
10800#
10801# This file is part of GNU Libtool:
10802# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10803#
10804# This program is free software; you can redistribute it and/or modify
10805# it under the terms of the GNU General Public License as published by
10806# the Free Software Foundation; either version 2 of the License, or

--- 63 unchanged lines hidden (view full) ---

10870
10871# The archiver.
10872AR=$lt_AR
10873AR_FLAGS=$lt_AR_FLAGS
10874
10875# A C compiler.
10876LTCC=$lt_LTCC
10877
10878# LTCC compiler flags.
10879LTCFLAGS=$lt_LTCFLAGS
10880
10881# A language-specific compiler.
10882CC=$lt_compiler
10883
10884# Is the compiler the GNU C compiler?
10885with_gcc=$GCC
10886
10887# An ERE matcher.
10888EGREP=$lt_EGREP

--- 137 unchanged lines hidden (view full) ---

11026# Dependencies to place before the objects being linked to create a
11027# shared library.
11028predeps=$lt_predeps
11029
11030# Dependencies to place after the objects being linked to create a
11031# shared library.
11032postdeps=$lt_postdeps
11033
11034# The directories searched by this compiler when creating a shared
11035# library
11036compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11037
11038# The library search path used internally by the compiler when linking
11039# a shared library.
11040compiler_lib_search_path=$lt_compiler_lib_search_path
11041
11042# Method to check whether dependent libraries are shared objects.
11043deplibs_check_method=$lt_deplibs_check_method
11044
11045# Command to use when deplibs_check_method == file_magic.

--- 72 unchanged lines hidden (view full) ---

11118
11119# Compile-time system search path for libraries
11120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11121
11122# Run-time system search path for libraries
11123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11124
11125# Fix the shell variable \$srcfile for the compiler.
10538fix_srcfile_path="$fix_srcfile_path"
11126fix_srcfile_path=$lt_fix_srcfile_path
11127
11128# Set to yes if exported symbols are required.
11129always_export_symbols=$always_export_symbols
11130
11131# The commands to list exported symbols.
11132export_symbols_cmds=$lt_export_symbols_cmds
11133
11134# The commands to extract the exported symbol list from a shared archive.

--- 72 unchanged lines hidden (view full) ---

11207 if test -z "$LTCC"; then
11208 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11209echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11210 else
11211 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11212echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11213 fi
11214 fi
11215 if test -z "$LTCFLAGS"; then
11216 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11217 fi
11218
11219 # Extract list of available tagged configurations in $ofile.
11220 # Note that this assumes the entire list is on one line.
11221 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11222
11223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11224 for tagname in $tagnames; do
11225 IFS="$lt_save_ifs"

--- 36 unchanged lines hidden (view full) ---

11262always_export_symbols_CXX=no
11263archive_expsym_cmds_CXX=
11264export_dynamic_flag_spec_CXX=
11265hardcode_direct_CXX=no
11266hardcode_libdir_flag_spec_CXX=
11267hardcode_libdir_flag_spec_ld_CXX=
11268hardcode_libdir_separator_CXX=
11269hardcode_minus_L_CXX=no
11270hardcode_shlibpath_var_CXX=unsupported
11271hardcode_automatic_CXX=no
11272module_cmds_CXX=
11273module_expsym_cmds_CXX=
11274link_all_deplibs_CXX=unknown
11275old_archive_cmds_CXX=$old_archive_cmds
11276no_undefined_flag_CXX=
11277whole_archive_flag_spec_CXX=
11278enable_shared_with_static_runtimes_CXX=no
11279
11280# Dependencies to place before and after the object being linked:
11281predep_objects_CXX=
11282postdep_objects_CXX=
11283predeps_CXX=
11284postdeps_CXX=
11285compiler_lib_search_path_CXX=
11286compiler_lib_search_dirs_CXX=
11287
11288# Source file extension for C++ test sources.
10696ac_ext=cc
11289ac_ext=cpp
11290
11291# Object file extension for compiled C++ test sources.
11292objext=o
11293objext_CXX=$objext
11294
11295# Code to be used in simple compile tests
10703lt_simple_compile_test_code="int some_variable = 0;\n"
11296lt_simple_compile_test_code="int some_variable = 0;"
11297
11298# Code to be used in simple link tests
10706lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11299lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11300
11301# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11302
11303# If no C compiler was specified, use CC.
11304LTCC=${LTCC-"$CC"}
11305
11306# If no C compiler flags were specified, use CFLAGS.
11307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11308
11309# Allow CC to be a program name with arguments.
11310compiler=$CC
11311
11312
11313# save warnings/boilerplate of simple test code
11314ac_outfile=conftest.$ac_objext
10719printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10720eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11315echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11316eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11317_lt_compiler_boilerplate=`cat conftest.err`
11318$rm conftest*
11319
11320ac_outfile=conftest.$ac_objext
10725printf "$lt_simple_link_test_code" >conftest.$ac_ext
10726eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11321echo "$lt_simple_link_test_code" >conftest.$ac_ext
11322eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11323_lt_linker_boilerplate=`cat conftest.err`
10728$rm conftest*
11324$rm -r conftest*
11325
11326
11327# Allow CC to be a program name with arguments.
11328lt_save_CC=$CC
11329lt_save_LD=$LD
11330lt_save_GCC=$GCC
11331GCC=$GXX
11332lt_save_with_gnu_ld=$with_gnu_ld
11333lt_save_path_LD=$lt_cv_path_LD
11334if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11335 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11336else
10741 unset lt_cv_prog_gnu_ld
11337 $as_unset lt_cv_prog_gnu_ld
11338fi
11339if test -n "${lt_cv_path_LDCXX+set}"; then
11340 lt_cv_path_LD=$lt_cv_path_LDCXX
11341else
10746 unset lt_cv_path_LD
11342 $as_unset lt_cv_path_LD
11343fi
11344test -z "${LDCXX+set}" || LD=$LDCXX
11345CC=${CXX-"c++"}
11346compiler=$CC
11347compiler_CXX=$CC
11348for cc_temp in $compiler""; do
11349 case $cc_temp in
11350 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;

--- 69 unchanged lines hidden (view full) ---

11420 if test -z "$LD"; then
11421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11422 for ac_dir in $PATH; do
11423 IFS="$lt_save_ifs"
11424 test -z "$ac_dir" && ac_dir=.
11425 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11426 lt_cv_path_LD="$ac_dir/$ac_prog"
11427 # Check to see if the program is GNU ld. I'd rather use --version,
10832 # but apparently some GNU ld's only accept -v.
11428 # but apparently some variants of GNU ld only accept -v.
11429 # Break only if it was the GNU/non-GNU ld that we prefer.
11430 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11431 *GNU* | *'with BFD'*)
11432 test "$with_gnu_ld" != no && break
11433 ;;
11434 *)
11435 test "$with_gnu_ld" != yes && break
11436 ;;

--- 17 unchanged lines hidden (view full) ---

11454test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11455echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11456 { (exit 1); exit 1; }; }
11457{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11458echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11459if test "${lt_cv_prog_gnu_ld+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461else
10866 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11462 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11463case `$LD -v 2>&1 </dev/null` in
11464*GNU* | *'with BFD'*)
11465 lt_cv_prog_gnu_ld=yes
11466 ;;
11467*)
11468 lt_cv_prog_gnu_ld=no
11469 ;;
11470esac

--- 52 unchanged lines hidden (view full) ---

11523{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11524echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11525ld_shlibs_CXX=yes
11526case $host_os in
11527 aix3*)
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11530 ;;
10935 aix4* | aix5*)
11531 aix[4-9]*)
11532 if test "$host_cpu" = ia64; then
11533 # On IA64, the linker does run time linking by default, so we don't
11534 # have to do anything special.
11535 aix_use_runtimelinking=no
11536 exp_sym_flag='-Bexport'
11537 no_entry_flag=""
11538 else
11539 aix_use_runtimelinking=no
11540
11541 # Test if we are trying to use run time linking or normal
11542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11543 # need to do runtime linking.
10948 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11544 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11545 for ld_flag in $LDFLAGS; do
11546 case $ld_flag in
11547 *-brtl*)
11548 aix_use_runtimelinking=yes
11549 break
11550 ;;
11551 esac
11552 done
11553 ;;
11554 esac
11555
11556 exp_sym_flag='-bexport'
11557 no_entry_flag='-bnoentry'
11558 fi
11559
11560 # When large executables or shared objects are built, AIX ld can
11561 # have problems creating the table of contents. If linking a library

--- 10 unchanged lines hidden (view full) ---

11572 case $host_os in aix4.[012]|aix4.[012].*)
11573 # We only want to do this on AIX 4.2 and lower, the check
11574 # below for broken collect2 doesn't work under 4.3+
11575 collect2name=`${CC} -print-prog-name=collect2`
11576 if test -f "$collect2name" && \
11577 strings "$collect2name" | grep resolve_lib_name >/dev/null
11578 then
11579 # We have reworked collect2
10983 hardcode_direct_CXX=yes
11580 :
11581 else
11582 # We have old collect2
11583 hardcode_direct_CXX=unsupported
11584 # It fails to find uninstalled libraries when the uninstalled
11585 # path is not listed in the libpath. Setting hardcode_minus_L
11586 # to unsupported forces relinking
11587 hardcode_minus_L_CXX=yes
11588 hardcode_libdir_flag_spec_CXX='-L$libdir'
11589 hardcode_libdir_separator_CXX=
11590 fi
11591 ;;
11592 esac
11593 shared_flag='-shared'
11594 if test "$aix_use_runtimelinking" = yes; then
11595 shared_flag="$shared_flag "'${wl}-G'
11596 fi
11597 else
11598 # not using gcc
11599 if test "$host_cpu" = ia64; then

--- 46 unchanged lines hidden (view full) ---

11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } && {
11649 test -z "$ac_cxx_werror_flag" ||
11650 test ! -s conftest.err
11651 } && test -s conftest$ac_exeext &&
11652 $as_test_x conftest$ac_exeext; then
11653
11056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11057}'`
11654lt_aix_libpath_sed='
11655 /Import File Strings/,/^$/ {
11656 /^0/ {
11657 s/^0 *\(.*\)$/\1/
11658 p
11659 }
11660 }'
11661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11662# Check for a 64-bit object if we didn't find anything.
11059if 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; }
11060}'`; fi
11663if test -z "$aix_libpath"; then
11664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11665fi
11666else
11667 echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670
11671fi
11672
11673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674 conftest$ac_exeext conftest.$ac_ext
11675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11676
11677 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11678
11074 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"
11679 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"
11680 else
11681 if test "$host_cpu" = ia64; then
11682 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11683 allow_undefined_flag_CXX="-z nodefs"
11079 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"
11684 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"
11685 else
11686 # Determine the default libpath from the value encoded in an empty executable.
11687 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */

--- 20 unchanged lines hidden (view full) ---

11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_cxx_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest$ac_exeext &&
11719 $as_test_x conftest$ac_exeext; then
11720
11116aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11117}'`
11721lt_aix_libpath_sed='
11722 /Import File Strings/,/^$/ {
11723 /^0/ {
11724 s/^0 *\(.*\)$/\1/
11725 p
11726 }
11727 }'
11728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11729# Check for a 64-bit object if we didn't find anything.
11119if 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; }
11120}'`; fi
11730if test -z "$aix_libpath"; then
11731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11732fi
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737
11738fi
11739
11740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11741 conftest$ac_exeext conftest.$ac_ext
11742if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11743
11744 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11745 # Warning - without using the other run time loading flags,
11746 # -berok will link without error, but may produce a broken library.
11747 no_undefined_flag_CXX=' ${wl}-bernotok'
11748 allow_undefined_flag_CXX=' ${wl}-berok'
11137 # -bexpall does not export symbols beginning with underscore (_)
11138 always_export_symbols_CXX=yes
11749 # Exported symbols can be pulled into shared objects from archives
11140 whole_archive_flag_spec_CXX=' '
11750 whole_archive_flag_spec_CXX='$convenience'
11751 archive_cmds_need_lc_CXX=yes
11142 # This is similar to how AIX traditionally builds it's shared libraries.
11143 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'
11752 # This is similar to how AIX traditionally builds its shared libraries.
11753 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'
11754 fi
11755 fi
11756 ;;
11757
11758 beos*)
11759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11760 allow_undefined_flag_CXX=unsupported
11761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11762 # support --undefined. This deserves some investigation. FIXME
11763 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11764 else
11765 ld_shlibs_CXX=no
11766 fi
11767 ;;
11768
11769 chorus*)
11770 case $cc_basename in
11771 *)
11772 # FIXME: insert proper C++ library support
11773 ld_shlibs_CXX=no
11774 ;;
11775 esac
11776 ;;
11777
11156
11778 cygwin* | mingw* | pw32*)
11779 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11780 # as there is no search path for DLLs.
11781 hardcode_libdir_flag_spec_CXX='-L$libdir'
11782 allow_undefined_flag_CXX=unsupported
11783 always_export_symbols_CXX=no
11784 enable_shared_with_static_runtimes_CXX=yes
11785
11786 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11166 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'
11787 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'
11788 # If the export-symbols file already is a .def file (1st line
11789 # is EXPORTS), use it as is; otherwise, prepend...
11790 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11791 cp $export_symbols $output_objdir/$soname.def;
11792 else
11793 echo EXPORTS > $output_objdir/$soname.def;
11794 cat $export_symbols >> $output_objdir/$soname.def;
11795 fi~
11175 $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'
11796 $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'
11797 else
11798 ld_shlibs_CXX=no
11799 fi
11800 ;;
11801 darwin* | rhapsody*)
11181 case "$host_os" in
11182 rhapsody* | darwin1.[012])
11183 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11184 ;;
11185 *) # Darwin 1.3 on
11186 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11187 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11188 else
11189 case ${MACOSX_DEPLOYMENT_TARGET} in
11190 10.[012])
11191 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11192 ;;
11193 10.*)
11194 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11195 ;;
11196 esac
11197 fi
11198 ;;
11199 esac
11802 archive_cmds_need_lc_CXX=no
11803 hardcode_direct_CXX=no
11804 hardcode_automatic_CXX=yes
11805 hardcode_shlibpath_var_CXX=unsupported
11806 whole_archive_flag_spec_CXX=''
11807 link_all_deplibs_CXX=yes
11206
11207 if test "$GXX" = yes ; then
11208 lt_int_apple_cc_single_mod=no
11808 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11809 if test "$GXX" = yes ; then
11810 output_verbose_link_cmd='echo'
11210 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11211 lt_int_apple_cc_single_mod=yes
11811 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}"
11812 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11813 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}"
11814 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}"
11815 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11816 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}"
11817 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}"
11818 fi
11213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11214 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11819 else
11216 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'
11217 fi
11218 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11220 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11221 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}'
11222 else
11223 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11224 fi
11225 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}'
11226 else
11820 case $cc_basename in
11821 xlc*)
11822 output_verbose_link_cmd='echo'
11230 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11823 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'
11824 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11233 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11826 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}'
11827 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}'
11828 ;;
11829 *)
11830 ld_shlibs_CXX=no
11831 ;;
11832 esac
11833 fi
11834 ;;

--- 17 unchanged lines hidden (view full) ---

11852 ;;
11853 freebsd[12]*)
11854 # C++ shared libraries reported to be fairly broken before switch to ELF
11855 ld_shlibs_CXX=no
11856 ;;
11857 freebsd-elf*)
11858 archive_cmds_need_lc_CXX=no
11859 ;;
11267 freebsd* | kfreebsd*-gnu | dragonfly*)
11860 freebsd* | dragonfly*)
11861 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11862 # conventions
11863 ld_shlibs_CXX=yes
11864 ;;
11865 gnu*)
11866 ;;
11867 hpux9*)
11868 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'

--- 28 unchanged lines hidden (view full) ---

11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
11899 fi
11900 ;;
11901 esac
11902 ;;
11903 hpux10*|hpux11*)
11904 if test $with_gnu_ld = no; then
11312 case "$host_cpu" in
11313 hppa*64*)
11314 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11315 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11316 hardcode_libdir_separator_CXX=:
11317 ;;
11318 ia64*)
11319 hardcode_libdir_flag_spec_CXX='-L$libdir'
11320 ;;
11905 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11906 hardcode_libdir_separator_CXX=:
11907
11908 case $host_cpu in
11909 hppa*64*|ia64*) ;;
11910 *)
11322 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11323 hardcode_libdir_separator_CXX=:
11911 export_dynamic_flag_spec_CXX='${wl}-E'
11912 ;;
11913 esac
11914 fi
11328 case "$host_cpu" in
11329 hppa*64*)
11915 case $host_cpu in
11916 hppa*64*|ia64*)
11917 hardcode_direct_CXX=no
11918 hardcode_shlibpath_var_CXX=no
11919 ;;
11333 ia64*)
11334 hardcode_direct_CXX=no
11335 hardcode_shlibpath_var_CXX=no
11336 hardcode_minus_L_CXX=yes # Not in the search PATH,
11337 # but as the default
11338 # location of the library.
11339 ;;
11920 *)
11921 hardcode_direct_CXX=yes
11922 hardcode_minus_L_CXX=yes # Not in the search PATH,
11923 # but as the default
11924 # location of the library.
11925 ;;
11926 esac
11927
11928 case $cc_basename in
11929 CC*)
11930 # FIXME: insert proper C++ library support
11931 ld_shlibs_CXX=no
11932 ;;
11933 aCC*)
11354 case "$host_cpu" in
11355 hppa*64*|ia64*)
11356 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11934 case $host_cpu in
11935 hppa*64*)
11936 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11937 ;;
11938 ia64*)
11939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940 ;;
11941 *)
11942 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11943 ;;
11944 esac
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11948 #
11949 # There doesn't appear to be a way to prevent this compiler from
11950 # explicitly linking system object files so we need to strip them
11951 # from the output so that they don't get included in the library
11952 # dependencies.
11953 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'
11954 ;;
11955 *)
11956 if test "$GXX" = yes; then
11957 if test $with_gnu_ld = no; then
11375 case "$host_cpu" in
11376 ia64*|hppa*64*)
11377 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11958 case $host_cpu in
11959 hppa*64*)
11960 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961 ;;
11962 ia64*)
11963 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11964 ;;
11965 *)
11966 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'
11967 ;;
11968 esac
11969 fi
11970 else
11971 # FIXME: insert proper C++ library support
11972 ld_shlibs_CXX=no
11973 fi
11974 ;;
11975 esac
11976 ;;
11977 interix[3-9]*)
11978 hardcode_direct_CXX=no
11979 hardcode_shlibpath_var_CXX=no
11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11981 export_dynamic_flag_spec_CXX='${wl}-E'
11982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11983 # Instead, shared libraries are loaded at an image base (0x10000000 by
11984 # default) and relocated if they conflict, which is a slow very memory
11985 # consuming and fragmenting process. To avoid this, we pick a random,
11986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11988 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'
11989 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'
11990 ;;
11991 irix5* | irix6*)
11992 case $cc_basename in
11993 CC*)
11994 # SGI C++
11995 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'
11996
11997 # Archives containing C++ object files must be created using
11998 # "CC -ar", where "CC" is the IRIX C++ compiler. This is

--- 10 unchanged lines hidden (view full) ---

12009 fi
12010 fi
12011 link_all_deplibs_CXX=yes
12012 ;;
12013 esac
12014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12015 hardcode_libdir_separator_CXX=:
12016 ;;
11417 linux*)
12017 linux* | k*bsd*-gnu)
12018 case $cc_basename in
12019 KCC*)
12020 # Kuck and Associates, Inc. (KAI) C++ Compiler
12021
12022 # KCC will only create a shared library if the output file
12023 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12024 # to its proper name (with version) after linking.
12025 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'

--- 35 unchanged lines hidden (view full) ---

12061 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'
12062 ;;
12063 esac
12064 archive_cmds_need_lc_CXX=no
12065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12066 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12067 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12068 ;;
11469 pgCC*)
12069 pgCC* | pgcpp*)
12070 # Portland Group C++ compiler
12071 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12072 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'
12073
12074 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11476 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'
12076 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'
12077 ;;
12078 cxx*)
12079 # Compaq C++
12080 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12081 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'
12082
12083 runpath_var=LD_RUN_PATH
12084 hardcode_libdir_flag_spec_CXX='-rpath $libdir'

--- 4 unchanged lines hidden (view full) ---

12089 # linking a shared library.
12090 #
12091 # There doesn't appear to be a way to prevent this compiler from
12092 # explicitly linking system object files so we need to strip them
12093 # from the output so that they don't get included in the library
12094 # dependencies.
12095 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'
12096 ;;
12097 *)
12098 case `$CC -V 2>&1 | sed 5q` in
12099 *Sun\ C*)
12100 # Sun C++ 5.9
12101 no_undefined_flag_CXX=' -zdefs'
12102 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12103 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'
12104 hardcode_libdir_flag_spec_CXX='-R$libdir'
12105 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'
12106
12107 # Not sure whether something based on
12108 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12109 # would be better.
12110 output_verbose_link_cmd='echo'
12111
12112 # Archives containing C++ object files must be created using
12113 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12114 # necessary to make sure instantiated templates are included
12115 # in the archive.
12116 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12117 ;;
12118 esac
12119 ;;
12120 esac
12121 ;;
12122 lynxos*)
12123 # FIXME: insert proper C++ library support
12124 ld_shlibs_CXX=no
12125 ;;
12126 m88k*)
12127 # FIXME: insert proper C++ library support

--- 22 unchanged lines hidden (view full) ---

12150 # Workaround some broken pre-1.5 toolchains
12151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12152 ;;
12153 openbsd2*)
12154 # C++ shared libraries are fairly broken
12155 ld_shlibs_CXX=no
12156 ;;
12157 openbsd*)
11535 hardcode_direct_CXX=yes
11536 hardcode_shlibpath_var_CXX=no
11537 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11538 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11540 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11541 export_dynamic_flag_spec_CXX='${wl}-E'
11542 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12158 if test -f /usr/libexec/ld.so; then
12159 hardcode_direct_CXX=yes
12160 hardcode_shlibpath_var_CXX=no
12161 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12162 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12164 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12165 export_dynamic_flag_spec_CXX='${wl}-E'
12166 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12167 fi
12168 output_verbose_link_cmd='echo'
12169 else
12170 ld_shlibs_CXX=no
12171 fi
11544 output_verbose_link_cmd='echo'
12172 ;;
12173 osf3*)
12174 case $cc_basename in
12175 KCC*)
12176 # Kuck and Associates, Inc. (KAI) C++ Compiler
12177
12178 # KCC will only create a shared library if the output file
12179 # ends with ".so" (or ".sl" for HP-UX), so rename the library

--- 112 unchanged lines hidden (view full) ---

12292 fi
12293 ;;
12294 esac
12295 ;;
12296 psos*)
12297 # FIXME: insert proper C++ library support
12298 ld_shlibs_CXX=no
12299 ;;
11673 sco*)
11674 archive_cmds_need_lc_CXX=no
11675 case $cc_basename in
11676 CC*)
11677 # FIXME: insert proper C++ library support
11678 ld_shlibs_CXX=no
11679 ;;
11680 *)
11681 # FIXME: insert proper C++ library support
11682 ld_shlibs_CXX=no
11683 ;;
11684 esac
11685 ;;
12300 sunos4*)
12301 case $cc_basename in
12302 CC*)
12303 # Sun C++ 4.x
12304 # FIXME: insert proper C++ library support
12305 ld_shlibs_CXX=no
12306 ;;
12307 lcc*)

--- 6 unchanged lines hidden (view full) ---

12314 ld_shlibs_CXX=no
12315 ;;
12316 esac
12317 ;;
12318 solaris*)
12319 case $cc_basename in
12320 CC*)
12321 # Sun C++ 4.2, 5.x and Centerline C++
12322 archive_cmds_need_lc_CXX=yes
12323 no_undefined_flag_CXX=' -zdefs'
11709 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12324 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12325 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11711 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12326 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12327
12328 hardcode_libdir_flag_spec_CXX='-R$libdir'
12329 hardcode_shlibpath_var_CXX=no
12330 case $host_os in
12331 solaris2.[0-5] | solaris2.[0-5].*) ;;
12332 *)
11718 # The C++ compiler is used as linker so we must use $wl
11719 # flag to pass the commands to the underlying system
11720 # linker. We must also pass each convience library through
11721 # to the system linker between allextract/defaultextract.
11722 # The C++ compiler will combine linker options so we
11723 # cannot just pass the convience library names through
11724 # without $wl.
12333 # The compiler driver will combine and reorder linker options,
12334 # but understands `-z linker_flag'.
12335 # Supported since Solaris 2.6 (maybe 2.5.1?)
11726 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12336 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12337 ;;
12338 esac
12339 link_all_deplibs_CXX=yes
12340
11731 # Commands to make compiler produce verbose output that lists
11732 # what "hidden" libraries, object files and flags are used when
11733 # linking a shared library.
11734 #
11735 # There doesn't appear to be a way to prevent this compiler from
11736 # explicitly linking system object files so we need to strip them
11737 # from the output so that they don't get included in the library
11738 # dependencies.
11739 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12341 output_verbose_link_cmd='echo'
12342
12343 # Archives containing C++ object files must be created using
12344 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12345 # necessary to make sure instantiated templates are included
12346 # in the archive.
12347 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12348 ;;
12349 gcx*)

--- 25 unchanged lines hidden (view full) ---

12375
12376 # Commands to make compiler produce verbose output that lists
12377 # what "hidden" libraries, object files and flags are used when
12378 # linking a shared library.
12379 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12380 fi
12381
12382 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12383 case $host_os in
12384 solaris2.[0-5] | solaris2.[0-5].*) ;;
12385 *)
12386 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12387 ;;
12388 esac
12389 fi
12390 ;;
12391 esac
12392 ;;
11785 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12393 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12394 no_undefined_flag_CXX='${wl}-z,text'
12395 archive_cmds_need_lc_CXX=no
12396 hardcode_shlibpath_var_CXX=no
12397 runpath_var='LD_RUN_PATH'
12398
12399 case $cc_basename in
12400 CC*)
12401 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12402 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12403 ;;
12404 *)
12405 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12406 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12407 ;;
12408 esac
12409 ;;
12410 sysv5* | sco3.2v5* | sco5v6*)
12411 # Note: We can NOT use -z defs as we might desire, because we do not
12412 # link with -lc, and that would cause any symbols used from libc to
12413 # always be unresolved, which means just about no library would
12414 # ever link correctly. If we're not using GNU ld we use -z text
12415 # though, which does catch some bad symbols but isn't as heavy-handed
12416 # as -z defs.
12417 # For security reasons, it is highly recommended that you always
12418 # use absolute paths for naming shared libraries, and exclude the
12419 # DT_RUNPATH tag from executables and libraries. But doing so
12420 # requires that you compile everything twice, which is a pain.
12421 # So that behaviour is only enabled if SCOABSPATH is set to a
12422 # non-empty value in the environment. Most likely only useful for
12423 # creating official distributions of packages.
12424 # This is a hack until libtool officially supports absolute path
12425 # names for shared libraries.
12426 no_undefined_flag_CXX='${wl}-z,text'
12427 allow_undefined_flag_CXX='${wl}-z,nodefs'
12428 archive_cmds_need_lc_CXX=no
12429 hardcode_shlibpath_var_CXX=no
12430 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12431 hardcode_libdir_separator_CXX=':'
12432 link_all_deplibs_CXX=yes
12433 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12434 runpath_var='LD_RUN_PATH'
12435
12436 case $cc_basename in
12437 CC*)
12438 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12439 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12440 ;;
12441 *)
12442 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12443 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12444 ;;
12445 esac
12446 ;;
12447 tandem*)
12448 case $cc_basename in
12449 NCC*)
12450 # NonStop-UX NCC 3.20
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12453 ;;
12454 *)

--- 13 unchanged lines hidden (view full) ---

12468esac
12469{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12470echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12471test "$ld_shlibs_CXX" = no && can_build_shared=no
12472
12473GCC_CXX="$GXX"
12474LD_CXX="$LD"
12475
11817
12476cat > conftest.$ac_ext <<EOF
12477class Foo
12478{
12479public:
12480 Foo (void) { a = 0; }
12481private:
12482 int a;
12483};

--- 9 unchanged lines hidden (view full) ---

12493
12494 # Sentinel used to keep track of whether or not we are before
12495 # the conftest object file.
12496 pre_test_object_deps_done=no
12497
12498 # The `*' in the case matches for architectures that use `case' in
12499 # $output_verbose_cmd can trigger glob expansion during the loop
12500 # eval without this substitution.
11843 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12501 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12502
12503 for p in `eval $output_verbose_link_cmd`; do
12504 case $p in
12505
12506 -L* | -R* | -l*)
12507 # Some compilers place space between "-{L,R}" and the path.
12508 # Remove the space.
12509 if test $p = "-L" \

--- 59 unchanged lines hidden (view full) ---

12569 # Clean up.
12570 rm -f a.out a.exe
12571else
12572 echo "libtool.m4: error: problem compiling CXX test program"
12573fi
12574
12575$rm -f confest.$objext
12576
12577compiler_lib_search_dirs_CXX=
12578if test -n "$compiler_lib_search_path_CXX"; then
12579 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12580fi
12581
12582# PORTME: override above test on systems where it is broken
12583case $host_os in
12584interix[3-9]*)
12585 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12586 # hack all around it, let's just trust "g++" to DTRT.
12587 predep_objects_CXX=
12588 postdep_objects_CXX=
12589 postdeps_CXX=
12590 ;;
12591
12592linux*)
12593 case `$CC -V 2>&1 | sed 5q` in
12594 *Sun\ C*)
12595 # Sun C++ 5.9
12596 #
12597 # The more standards-conforming stlport4 library is
12598 # incompatible with the Cstd library. Avoid specifying
12599 # it if it's in CXXFLAGS. Ignore libCrun as
12600 # -library=stlport4 depends on it.
12601 case " $CXX $CXXFLAGS " in
12602 *" -library=stlport4 "*)
12603 solaris_use_stlport4=yes
12604 ;;
12605 esac
12606 if test "$solaris_use_stlport4" != yes; then
12607 postdeps_CXX='-library=Cstd -library=Crun'
12608 fi
12609 ;;
12610 esac
12611 ;;
12612
12613solaris*)
12614 case $cc_basename in
12615 CC*)
12616 # The more standards-conforming stlport4 library is
12617 # incompatible with the Cstd library. Avoid specifying
12618 # it if it's in CXXFLAGS. Ignore libCrun as
12619 # -library=stlport4 depends on it.
12620 case " $CXX $CXXFLAGS " in
12621 *" -library=stlport4 "*)
12622 solaris_use_stlport4=yes
12623 ;;
12624 esac
12625
12626 # Adding this requires a known-good setup of shared libraries for
12627 # Sun compiler versions before 5.6, else PIC objects from an old
12628 # archive will be linked into the output, leading to subtle bugs.
12629 if test "$solaris_use_stlport4" != yes; then
12630 postdeps_CXX='-library=Cstd -library=Crun'
12631 fi
12632 ;;
12633 esac
12634 ;;
12635esac
12636
12637case " $postdeps_CXX " in
12638*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12639esac
12640
12641lt_prog_compiler_wl_CXX=
12642lt_prog_compiler_pic_CXX=
12643lt_prog_compiler_static_CXX=
12644

--- 14 unchanged lines hidden (view full) ---

12659 fi
12660 ;;
12661 amigaos*)
12662 # FIXME: we need at least 68020 code to build shared libraries, but
12663 # adding the `-m68020' flag to GCC prevents building anything better,
12664 # like `-m68040'.
12665 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12666 ;;
11949 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12667 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12668 # PIC is the default for these OSes.
12669 ;;
11952 mingw* | os2* | pw32*)
12670 mingw* | cygwin* | os2* | pw32*)
12671 # This hack is so that the source file can tell whether it is being
12672 # built for inclusion in a dll (and should export symbols for example).
12673 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12674 # (--disable-auto-import) libraries
12675 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12676 ;;
12677 darwin* | rhapsody*)
12678 # PIC is the default on this platform
12679 # Common symbols not allowed in MH_DYLIB files
12680 lt_prog_compiler_pic_CXX='-fno-common'
12681 ;;
12682 *djgpp*)
12683 # DJGPP does not support shared libraries at all
12684 lt_prog_compiler_pic_CXX=
12685 ;;
12686 interix[3-9]*)
12687 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12688 # Instead, we relocate shared libraries at runtime.
12689 ;;
12690 sysv4*MP*)
12691 if test -d /usr/nec; then
12692 lt_prog_compiler_pic_CXX=-Kconform_pic
12693 fi
12694 ;;
12695 hpux*)
12696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12697 # not for PA HP-UX.
11974 case "$host_cpu" in
12698 case $host_cpu in
12699 hppa*64*|ia64*)
12700 ;;
12701 *)
12702 lt_prog_compiler_pic_CXX='-fPIC'
12703 ;;
12704 esac
12705 ;;
12706 *)
12707 lt_prog_compiler_pic_CXX='-fPIC'
12708 ;;
12709 esac
12710 else
12711 case $host_os in
11988 aix4* | aix5*)
12712 aix[4-9]*)
12713 # All AIX code is PIC.
12714 if test "$host_cpu" = ia64; then
12715 # AIX 5 now supports IA64 processor
12716 lt_prog_compiler_static_CXX='-Bstatic'
12717 else
12718 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12719 fi
12720 ;;

--- 23 unchanged lines hidden (view full) ---

12744 ghcx*)
12745 # Green Hills C++ Compiler
12746 lt_prog_compiler_pic_CXX='-pic'
12747 ;;
12748 *)
12749 ;;
12750 esac
12751 ;;
12028 freebsd* | kfreebsd*-gnu | dragonfly*)
12752 freebsd* | dragonfly*)
12753 # FreeBSD uses GNU C++
12754 ;;
12755 hpux9* | hpux10* | hpux11*)
12756 case $cc_basename in
12757 CC*)
12758 lt_prog_compiler_wl_CXX='-Wl,'
12035 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12759 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12760 if test "$host_cpu" != ia64; then
12761 lt_prog_compiler_pic_CXX='+Z'
12762 fi
12763 ;;
12764 aCC*)
12765 lt_prog_compiler_wl_CXX='-Wl,'
12042 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12043 case "$host_cpu" in
12766 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12767 case $host_cpu in
12768 hppa*64*|ia64*)
12769 # +Z the default
12770 ;;
12771 *)
12772 lt_prog_compiler_pic_CXX='+Z'
12773 ;;
12774 esac
12775 ;;
12776 *)
12777 ;;
12778 esac
12779 ;;
12780 interix*)
12781 # This is c89, which is MS Visual C++ (no shared libs)
12782 # Anyone wants to do a port?
12783 ;;
12784 irix5* | irix6* | nonstopux*)
12785 case $cc_basename in
12786 CC*)
12787 lt_prog_compiler_wl_CXX='-Wl,'
12788 lt_prog_compiler_static_CXX='-non_shared'
12789 # CC pic flag -KPIC is the default.
12790 ;;
12791 *)
12792 ;;
12793 esac
12794 ;;
12067 linux*)
12795 linux* | k*bsd*-gnu)
12796 case $cc_basename in
12797 KCC*)
12798 # KAI C++ Compiler
12799 lt_prog_compiler_wl_CXX='--backend -Wl,'
12800 lt_prog_compiler_pic_CXX='-fPIC'
12801 ;;
12802 icpc* | ecpc*)
12803 # Intel C++
12804 lt_prog_compiler_wl_CXX='-Wl,'
12805 lt_prog_compiler_pic_CXX='-KPIC'
12806 lt_prog_compiler_static_CXX='-static'
12807 ;;
12080 pgCC*)
12808 pgCC* | pgcpp*)
12809 # Portland Group C++ compiler.
12810 lt_prog_compiler_wl_CXX='-Wl,'
12811 lt_prog_compiler_pic_CXX='-fpic'
12084 lt_prog_compiler_static_CXX='-static'
12812 lt_prog_compiler_static_CXX='-Bstatic'
12813 ;;
12814 cxx*)
12815 # Compaq C++
12816 # Make sure the PIC flag is empty. It appears that all Alpha
12817 # Linux and Compaq Tru64 Unix objects are PIC.
12818 lt_prog_compiler_pic_CXX=
12819 lt_prog_compiler_static_CXX='-non_shared'
12820 ;;
12821 *)
12822 case `$CC -V 2>&1 | sed 5q` in
12823 *Sun\ C*)
12824 # Sun C++ 5.9
12825 lt_prog_compiler_pic_CXX='-KPIC'
12826 lt_prog_compiler_static_CXX='-Bstatic'
12827 lt_prog_compiler_wl_CXX='-Qoption ld '
12828 ;;
12829 esac
12830 ;;
12831 esac
12832 ;;
12833 lynxos*)
12834 ;;
12835 m88k*)
12836 ;;
12837 mvs*)

--- 25 unchanged lines hidden (view full) ---

12863 lt_prog_compiler_static_CXX='-non_shared'
12864 ;;
12865 *)
12866 ;;
12867 esac
12868 ;;
12869 psos*)
12870 ;;
12135 sco*)
12136 case $cc_basename in
12137 CC*)
12138 lt_prog_compiler_pic_CXX='-fPIC'
12139 ;;
12140 *)
12141 ;;
12142 esac
12143 ;;
12871 solaris*)
12872 case $cc_basename in
12873 CC*)
12874 # Sun C++ 4.2, 5.x and Centerline C++
12875 lt_prog_compiler_pic_CXX='-KPIC'
12876 lt_prog_compiler_static_CXX='-Bstatic'
12877 lt_prog_compiler_wl_CXX='-Qoption ld '
12878 ;;

--- 25 unchanged lines hidden (view full) ---

12904 NCC*)
12905 # NonStop-UX NCC 3.20
12906 lt_prog_compiler_pic_CXX='-KPIC'
12907 ;;
12908 *)
12909 ;;
12910 esac
12911 ;;
12185 unixware*)
12912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12913 case $cc_basename in
12914 CC*)
12915 lt_prog_compiler_wl_CXX='-Wl,'
12916 lt_prog_compiler_pic_CXX='-KPIC'
12917 lt_prog_compiler_static_CXX='-Bstatic'
12918 ;;
12919 esac
12920 ;;
12921 vxworks*)
12922 ;;
12923 *)
12924 lt_prog_compiler_can_build_shared_CXX=no
12925 ;;
12926 esac
12927 fi
12928
12929{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12930echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12931
12932#
12933# Check to make sure the PIC flag actually works.
12934#
12935if test -n "$lt_prog_compiler_pic_CXX"; then
12936
12937{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12938echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12205if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12939if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941else
12208 lt_prog_compiler_pic_works_CXX=no
12942 lt_cv_prog_compiler_pic_works_CXX=no
12943 ac_outfile=conftest.$ac_objext
12210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12945 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12946 # Insert the option either (1) after the last *FLAGS variable, or
12947 # (2) before a word containing "conftest.", or (3) at the end.
12948 # Note that $ac_compile itself does not contain backslashes and begins
12949 # with a dollar sign (not a hyphen), so the echo should work correctly.
12950 # The option is referenced via a variable to avoid confusing sed.
12951 lt_compile=`echo "$ac_compile" | $SED \
12218 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12954 -e 's:$: $lt_compiler_flag:'`
12221 (eval echo "\"\$as_me:12221: $lt_compile\"" >&5)
12955 (eval echo "\"\$as_me:12955: $lt_compile\"" >&5)
12956 (eval "$lt_compile" 2>conftest.err)
12957 ac_status=$?
12958 cat conftest.err >&5
12225 echo "$as_me:12225: \$? = $ac_status" >&5
12959 echo "$as_me:12959: \$? = $ac_status" >&5
12960 if (exit $ac_status) && test -s "$ac_outfile"; then
12961 # The compiler can only warn and ignore the option if not recognized
12962 # So say no if there are warnings other than the usual output.
12229 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12230 $SED '/^$/d' conftest.err >conftest.er2
12231 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12232 lt_prog_compiler_pic_works_CXX=yes
12963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12966 lt_cv_prog_compiler_pic_works_CXX=yes
12967 fi
12968 fi
12969 $rm conftest*
12970
12971fi
12238{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12239echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12972{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12973echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12974
12241if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12975if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12976 case $lt_prog_compiler_pic_CXX in
12977 "" | " "*) ;;
12978 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12979 esac
12980else
12981 lt_prog_compiler_pic_CXX=
12982 lt_prog_compiler_can_build_shared_CXX=no
12983fi
12984
12985fi
12252case "$host_os" in
12986case $host_os in
12987 # For platforms which do not support PIC, -DPIC is meaningless:
12988 *djgpp*)
12989 lt_prog_compiler_pic_CXX=
12990 ;;
12991 *)
12992 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12993 ;;
12994esac
12995
12996#
12997# Check to make sure the static flag actually works.
12998#
12999wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13000{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13001echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13002if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004else
13005 lt_cv_prog_compiler_static_works_CXX=no
13006 save_LDFLAGS="$LDFLAGS"
13007 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13008 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13010 # The linker can only warn and ignore the option if not recognized
13011 # So say no if there are warnings
13012 if test -s conftest.err; then
13013 # Append any errors to the config.log.
13014 cat conftest.err 1>&5
13015 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13017 if diff conftest.exp conftest.er2 >/dev/null; then
13018 lt_cv_prog_compiler_static_works_CXX=yes
13019 fi
13020 else
13021 lt_cv_prog_compiler_static_works_CXX=yes
13022 fi
13023 fi
13024 $rm -r conftest*
13025 LDFLAGS="$save_LDFLAGS"
13026
13027fi
13028{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13029echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13030
13031if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13032 :
13033else
13034 lt_prog_compiler_static_CXX=
13035fi
13036
13037
13038{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13039echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13040if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042else
13043 lt_cv_prog_compiler_c_o_CXX=no
13044 $rm -r conftest 2>/dev/null
13045 mkdir conftest
13046 cd conftest
13047 mkdir out
12272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13049
13050 lt_compiler_flag="-o out/conftest2.$ac_objext"
13051 # Insert the option either (1) after the last *FLAGS variable, or
13052 # (2) before a word containing "conftest.", or (3) at the end.
13053 # Note that $ac_compile itself does not contain backslashes and begins
13054 # with a dollar sign (not a hyphen), so the echo should work correctly.
13055 lt_compile=`echo "$ac_compile" | $SED \
12280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13058 -e 's:$: $lt_compiler_flag:'`
12283 (eval echo "\"\$as_me:12283: $lt_compile\"" >&5)
13059 (eval echo "\"\$as_me:13059: $lt_compile\"" >&5)
13060 (eval "$lt_compile" 2>out/conftest.err)
13061 ac_status=$?
13062 cat out/conftest.err >&5
12287 echo "$as_me:12287: \$? = $ac_status" >&5
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13065 then
13066 # The compiler can only warn and ignore the option if not recognized
13067 # So say no if there are warnings
12292 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12293 $SED '/^$/d' out/conftest.err >out/conftest.er2
12294 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13068 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13071 lt_cv_prog_compiler_c_o_CXX=yes
13072 fi
13073 fi
12298 chmod u+w .
13074 chmod u+w . 2>&5
13075 $rm conftest*
13076 # SGI C++ compiler will create directory out/ii_files/ for
13077 # template instantiation
13078 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13079 $rm out/* && rmdir out
13080 cd ..
13081 rmdir conftest
13082 $rm conftest*

--- 25 unchanged lines hidden (view full) ---

13108 need_locks=no
13109fi
13110
13111{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13112echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13113
13114 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13115 case $host_os in
12340 aix4* | aix5*)
13116 aix[4-9]*)
13117 # If we're using GNU nm, then we don't want the "-C" option.
13118 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13119 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13120 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13121 else
13122 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13123 fi
13124 ;;
13125 pw32*)
13126 export_symbols_cmds_CXX="$ltdll_cmds"
13127 ;;
13128 cygwin* | mingw*)
12353 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13129 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13130 ;;
13131 *)
13132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13133 ;;
13134 esac
13135 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13136
13137{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13138echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13139test "$ld_shlibs_CXX" = no && can_build_shared=no
13140
12364variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12365if test "$GCC" = yes; then
12366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12367fi
12368
13141#
13142# Do we need to explicitly link libc?
13143#
13144case "x$archive_cmds_need_lc_CXX" in
13145x|xyes)
13146 # Assume -lc should be added
13147 archive_cmds_need_lc_CXX=yes
13148

--- 4 unchanged lines hidden (view full) ---

13153 ;;
13154 '$CC '*)
13155 # Test whether the compiler implicitly links with -lc since on some
13156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13157 # to ld, don't add -lc before -lgcc.
13158 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13159echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13160 $rm conftest*
12389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13162
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164 (eval $ac_compile) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } 2>conftest.err; then
13168 soname=conftest
13169 lib=conftest
13170 libobjs=conftest.$ac_objext
13171 deplibs=
13172 wl=$lt_prog_compiler_wl_CXX
13173 pic_flag=$lt_prog_compiler_pic_CXX
13174 compiler_flags=-v
13175 linker_flags=-v
13176 verstring=
13177 output_objdir=.
13178 libname=conftest
13179 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13180 allow_undefined_flag_CXX=
13181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5

--- 29 unchanged lines hidden (view full) ---

13211postuninstall_cmds=
13212finish_cmds=
13213finish_eval=
13214shlibpath_var=
13215shlibpath_overrides_runpath=unknown
13216version_type=none
13217dynamic_linker="$host_os ld.so"
13218sys_lib_dlsearch_path_spec="/lib /usr/lib"
12446if test "$GCC" = yes; then
12447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12448 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12449 # if the path contains ";" then we assume it to be the separator
12450 # otherwise default to the standard path separator (i.e. ":") - it is
12451 # assumed that no part of a normal pathname contains ";" but that should
12452 # okay in the real world where ";" in dirpaths is itself problematic.
12453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12454 else
12455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12456 fi
12457else
12458 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12459fi
13219
13220need_lib_prefix=unknown
13221hardcode_into_libs=no
13222
13223# when you set need_version to no, make sure it does not cause -set_version
13224# flags to be left without arguments
13225need_version=unknown
13226
13227case $host_os in
13228aix3*)
13229 version_type=linux
13230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13231 shlibpath_var=LIBPATH
13232
13233 # AIX 3 has no versioning support, so we append a major version to the name.
13234 soname_spec='${libname}${release}${shared_ext}$major'
13235 ;;
13236
12477aix4* | aix5*)
13237aix[4-9]*)
13238 version_type=linux
13239 need_lib_prefix=no
13240 need_version=no
13241 hardcode_into_libs=yes
13242 if test "$host_cpu" = ia64; then
13243 # AIX 5 supports IA64
13244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13245 shlibpath_var=LD_LIBRARY_PATH

--- 67 unchanged lines hidden (view full) ---

13313 case $GCC,$host_os in
13314 yes,cygwin* | yes,mingw* | yes,pw32*)
13315 library_names_spec='$libname.dll.a'
13316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13317 postinstall_cmds='base_file=`basename \${file}`~
13318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13319 dldir=$destdir/`dirname \$dlpath`~
13320 test -d \$dldir || mkdir -p \$dldir~
12561 $install_prog $dir/$dlname \$dldir/$dlname'
13321 $install_prog $dir/$dlname \$dldir/$dlname~
13322 chmod a+x \$dldir/$dlname'
13323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13324 dlpath=$dir/\$dldll~
13325 $rm \$dlpath'
13326 shlibpath_overrides_runpath=yes
13327
13328 case $host_os in
13329 cygwin*)
13330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'

--- 36 unchanged lines hidden (view full) ---

13367 dynamic_linker="$host_os dyld"
13368 version_type=darwin
13369 need_lib_prefix=no
13370 need_version=no
13371 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13372 soname_spec='${libname}${release}${major}$shared_ext'
13373 shlibpath_overrides_runpath=yes
13374 shlibpath_var=DYLD_LIBRARY_PATH
12614 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12615 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12616 if test "$GCC" = yes; then
12617 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"`
12618 else
12619 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12620 fi
13375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13376
13377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13378 ;;
13379
13380dgux*)
13381 version_type=linux
13382 need_lib_prefix=no
13383 need_version=no
13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13385 soname_spec='${libname}${release}${shared_ext}$major'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 ;;
13388
13389freebsd1*)
13390 dynamic_linker=no
13391 ;;
13392
12637kfreebsd*-gnu)
12638 version_type=linux
12639 need_lib_prefix=no
12640 need_version=no
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12642 soname_spec='${libname}${release}${shared_ext}$major'
12643 shlibpath_var=LD_LIBRARY_PATH
12644 shlibpath_overrides_runpath=no
12645 hardcode_into_libs=yes
12646 dynamic_linker='GNU ld.so'
12647 ;;
12648
13393freebsd* | dragonfly*)
13394 # DragonFly does not have aout. When/if they implement a new
13395 # versioning mechanism, adjust this.
12652 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13396 if test -x /usr/bin/objformat; then
13397 objformat=`/usr/bin/objformat`
13398 else
13399 case $host_os in
13400 freebsd[123]*) objformat=aout ;;
13401 *) objformat=elf ;;
13402 esac
13403 fi
13404 version_type=freebsd-$objformat
13405 case $version_type in
13406 freebsd-elf*)
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13408 need_version=no
13409 need_lib_prefix=no
13410 ;;
13411 freebsd-*)

--- 5 unchanged lines hidden (view full) ---

13417 case $host_os in
13418 freebsd2*)
13419 shlibpath_overrides_runpath=yes
13420 ;;
13421 freebsd3.[01]* | freebsdelf3.[01]*)
13422 shlibpath_overrides_runpath=yes
13423 hardcode_into_libs=yes
13424 ;;
12674 *) # from 3.2 on
13425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13427 shlibpath_overrides_runpath=no
13428 hardcode_into_libs=yes
13429 ;;
13430 *) # from 4.6 on, and DragonFly
13431 shlibpath_overrides_runpath=yes
13432 hardcode_into_libs=yes
13433 ;;
13434 esac
13435 ;;
13436
13437gnu*)
13438 version_type=linux
13439 need_lib_prefix=no
13440 need_version=no
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 hardcode_into_libs=yes
13445 ;;
13446
13447hpux9* | hpux10* | hpux11*)
13448 # Give a soname corresponding to the major version so that dld.sl refuses to
13449 # link against other versions.
13450 version_type=sunos
13451 need_lib_prefix=no
13452 need_version=no
12697 case "$host_cpu" in
13453 case $host_cpu in
13454 ia64*)
13455 shrext_cmds='.so'
13456 hardcode_into_libs=yes
13457 dynamic_linker="$host_os dld.so"
13458 shlibpath_var=LD_LIBRARY_PATH
13459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461 soname_spec='${libname}${release}${shared_ext}$major'

--- 23 unchanged lines hidden (view full) ---

13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486 soname_spec='${libname}${release}${shared_ext}$major'
13487 ;;
13488 esac
13489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13490 postinstall_cmds='chmod 555 $lib'
13491 ;;
13492
13493interix[3-9]*)
13494 version_type=linux
13495 need_lib_prefix=no
13496 need_version=no
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13498 soname_spec='${libname}${release}${shared_ext}$major'
13499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=no
13502 hardcode_into_libs=yes
13503 ;;
13504
13505irix5* | irix6* | nonstopux*)
13506 case $host_os in
13507 nonstopux*) version_type=nonstopux ;;
13508 *)
13509 if test "$lt_cv_prog_gnu_ld" = yes; then
13510 version_type=linux
13511 else
13512 version_type=irix

--- 27 unchanged lines hidden (view full) ---

13540 ;;
13541
13542# No shared lib support for Linux oldld, aout, or coff.
13543linux*oldld* | linux*aout* | linux*coff*)
13544 dynamic_linker=no
13545 ;;
13546
13547# This must be Linux ELF.
12780linux*)
13548linux* | k*bsd*-gnu)
13549 version_type=linux
13550 need_lib_prefix=no
13551 need_version=no
13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13553 soname_spec='${libname}${release}${shared_ext}$major'
13554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13555 shlibpath_var=LD_LIBRARY_PATH
13556 shlibpath_overrides_runpath=no
13557 # This implies no fast_install, which is unacceptable.
13558 # Some rework will be needed to allow for fast_install
13559 # before this can be enabled.
13560 hardcode_into_libs=yes
13561
13562 # Append ld.so.conf contents to the search path
13563 if test -f /etc/ld.so.conf; then
12796 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13564 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' ' '`
13565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13566 fi
13567
13568 # We used to test for /lib/ld.so.1 and disable shared libraries on
13569 # powerpc, because MkLinux only supported shared libraries with the
13570 # GNU dynamic linker. Since this was broken with cross compilers,
13571 # most powerpc-linux boxes support dynamic linking these days and
13572 # people can always --disable-shared, the test was removed, and we
13573 # assume the GNU/Linux dynamic linker is in use.
13574 dynamic_linker='GNU/Linux ld.so'
13575 ;;
13576
12809knetbsd*-gnu)
12810 version_type=linux
12811 need_lib_prefix=no
12812 need_version=no
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 shlibpath_overrides_runpath=no
12817 hardcode_into_libs=yes
12818 dynamic_linker='GNU ld.so'
12819 ;;
12820
13577netbsd*)
13578 version_type=sunos
13579 need_lib_prefix=no
13580 need_version=no
13581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13584 dynamic_linker='NetBSD (a.out) ld.so'

--- 21 unchanged lines hidden (view full) ---

13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 shlibpath_overrides_runpath=yes
13610 ;;
13611
13612openbsd*)
13613 version_type=sunos
13614 sys_lib_dlsearch_path_spec="/usr/lib"
13615 need_lib_prefix=no
13616 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13617 case $host_os in
13618 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13619 *) need_version=no ;;
13620 esac
13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'

--- 27 unchanged lines hidden (view full) ---

13650 need_version=no
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653 shlibpath_var=LD_LIBRARY_PATH
13654 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13655 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13656 ;;
13657
12901sco3.2v5*)
12902 version_type=osf
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12905 shlibpath_var=LD_LIBRARY_PATH
13658rdos*)
13659 dynamic_linker=no
13660 ;;
13661
13662solaris*)
13663 version_type=linux
13664 need_lib_prefix=no
13665 need_version=no
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'

--- 11 unchanged lines hidden (view full) ---

13679 shlibpath_var=LD_LIBRARY_PATH
13680 shlibpath_overrides_runpath=yes
13681 if test "$with_gnu_ld" = yes; then
13682 need_lib_prefix=no
13683 fi
13684 need_version=yes
13685 ;;
13686
12933sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13687sysv4 | sysv4.3*)
13688 version_type=linux
13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13690 soname_spec='${libname}${release}${shared_ext}$major'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 case $host_vendor in
13693 sni)
13694 shlibpath_overrides_runpath=no
13695 need_lib_prefix=no

--- 16 unchanged lines hidden (view full) ---

13712 if test -d /usr/nec ;then
13713 version_type=linux
13714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13715 soname_spec='$libname${shared_ext}.$major'
13716 shlibpath_var=LD_LIBRARY_PATH
13717 fi
13718 ;;
13719
13720sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13721 version_type=freebsd-elf
13722 need_lib_prefix=no
13723 need_version=no
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13725 soname_spec='${libname}${release}${shared_ext}$major'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 hardcode_into_libs=yes
13728 if test "$with_gnu_ld" = yes; then
13729 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13730 shlibpath_overrides_runpath=no
13731 else
13732 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13733 shlibpath_overrides_runpath=yes
13734 case $host_os in
13735 sco3.2v5*)
13736 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13737 ;;
13738 esac
13739 fi
13740 sys_lib_dlsearch_path_spec='/usr/lib'
13741 ;;
13742
13743uts4*)
13744 version_type=linux
13745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13746 soname_spec='${libname}${release}${shared_ext}$major'
13747 shlibpath_var=LD_LIBRARY_PATH
13748 ;;
13749
13750*)
13751 dynamic_linker=no
13752 ;;
13753esac
13754{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13755echo "${ECHO_T}$dynamic_linker" >&6; }
13756test "$dynamic_linker" = no && can_build_shared=no
13757
13758if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760else
13761 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13762fi
13763
13764sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13765if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13767else
13768 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13769fi
13770
13771sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13772
13773variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13774if test "$GCC" = yes; then
13775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13776fi
13777
13778{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13779echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13780hardcode_action_CXX=
13781if test -n "$hardcode_libdir_flag_spec_CXX" || \
13782 test -n "$runpath_var_CXX" || \
13783 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13784
13785 # We can hardcode non-existant directories.

--- 21 unchanged lines hidden (view full) ---

13807 # Fast installation is not supported
13808 enable_fast_install=no
13809elif test "$shlibpath_overrides_runpath" = yes ||
13810 test "$enable_shared" = no; then
13811 # Fast installation is not necessary
13812 enable_fast_install=needless
13813fi
13814
13018striplib=
13019old_striplib=
13020{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13021echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13022if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13025 { echo "$as_me:$LINENO: result: yes" >&5
13026echo "${ECHO_T}yes" >&6; }
13027else
13028# FIXME - insert some real tests, host_os isn't really good enough
13029 case $host_os in
13030 darwin*)
13031 if test -n "$STRIP" ; then
13032 striplib="$STRIP -x"
13033 { echo "$as_me:$LINENO: result: yes" >&5
13034echo "${ECHO_T}yes" >&6; }
13035 else
13036 { echo "$as_me:$LINENO: result: no" >&5
13037echo "${ECHO_T}no" >&6; }
13038fi
13039 ;;
13040 *)
13041 { echo "$as_me:$LINENO: result: no" >&5
13042echo "${ECHO_T}no" >&6; }
13043 ;;
13044 esac
13045fi
13815
13047if test "x$enable_dlopen" != xyes; then
13048 enable_dlopen=unknown
13049 enable_dlopen_self=unknown
13050 enable_dlopen_self_static=unknown
13051else
13052 lt_cv_dlopen=no
13053 lt_cv_dlopen_libs=
13054
13055 case $host_os in
13056 beos*)
13057 lt_cv_dlopen="load_add_on"
13058 lt_cv_dlopen_libs=
13059 lt_cv_dlopen_self=yes
13060 ;;
13061
13062 mingw* | pw32*)
13063 lt_cv_dlopen="LoadLibrary"
13064 lt_cv_dlopen_libs=
13065 ;;
13066
13067 cygwin*)
13068 lt_cv_dlopen="dlopen"
13069 lt_cv_dlopen_libs=
13070 ;;
13071
13072 darwin*)
13073 # if libdl is installed we need to link against it
13074 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13075echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13076if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078else
13079 ac_check_lib_save_LIBS=$LIBS
13080LIBS="-ldl $LIBS"
13081cat >conftest.$ac_ext <<_ACEOF
13082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
13087
13088/* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13091#ifdef __cplusplus
13092extern "C"
13093#endif
13094char dlopen ();
13095int
13096main ()
13097{
13098return dlopen ();
13099 ;
13100 return 0;
13101}
13102_ACEOF
13103rm -f conftest.$ac_objext conftest$ac_exeext
13104if { (ac_try="$ac_link"
13105case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108esac
13109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_link") 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } && {
13117 test -z "$ac_cxx_werror_flag" ||
13118 test ! -s conftest.err
13119 } && test -s conftest$ac_exeext &&
13120 $as_test_x conftest$ac_exeext; then
13121 ac_cv_lib_dl_dlopen=yes
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_cv_lib_dl_dlopen=no
13127fi
13128
13129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13130 conftest$ac_exeext conftest.$ac_ext
13131LIBS=$ac_check_lib_save_LIBS
13132fi
13133{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13134echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13135if test $ac_cv_lib_dl_dlopen = yes; then
13136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13137else
13138
13139 lt_cv_dlopen="dyld"
13140 lt_cv_dlopen_libs=
13141 lt_cv_dlopen_self=yes
13142
13143fi
13144
13145 ;;
13146
13147 *)
13148 { echo "$as_me:$LINENO: checking for shl_load" >&5
13149echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13150if test "${ac_cv_func_shl_load+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13152else
13153 cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
13159/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13161#define shl_load innocuous_shl_load
13162
13163/* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char shl_load (); below.
13165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13166 <limits.h> exists even on freestanding compilers. */
13167
13168#ifdef __STDC__
13169# include <limits.h>
13170#else
13171# include <assert.h>
13172#endif
13173
13174#undef shl_load
13175
13176/* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13179#ifdef __cplusplus
13180extern "C"
13181#endif
13182char shl_load ();
13183/* The GNU C library defines this for functions which it implements
13184 to always fail with ENOSYS. Some functions are actually named
13185 something starting with __ and the normal name is an alias. */
13186#if defined __stub_shl_load || defined __stub___shl_load
13187choke me
13188#endif
13189
13190int
13191main ()
13192{
13193return shl_load ();
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198rm -f conftest.$ac_objext conftest$ac_exeext
13199if { (ac_try="$ac_link"
13200case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203esac
13204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_link") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_cxx_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest$ac_exeext &&
13215 $as_test_x conftest$ac_exeext; then
13216 ac_cv_func_shl_load=yes
13217else
13218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221 ac_cv_func_shl_load=no
13222fi
13223
13224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13225 conftest$ac_exeext conftest.$ac_ext
13226fi
13227{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13228echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13229if test $ac_cv_func_shl_load = yes; then
13230 lt_cv_dlopen="shl_load"
13231else
13232 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13233echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13234if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13236else
13237 ac_check_lib_save_LIBS=$LIBS
13238LIBS="-ldld $LIBS"
13239cat >conftest.$ac_ext <<_ACEOF
13240/* confdefs.h. */
13241_ACEOF
13242cat confdefs.h >>conftest.$ac_ext
13243cat >>conftest.$ac_ext <<_ACEOF
13244/* end confdefs.h. */
13245
13246/* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13249#ifdef __cplusplus
13250extern "C"
13251#endif
13252char shl_load ();
13253int
13254main ()
13255{
13256return shl_load ();
13257 ;
13258 return 0;
13259}
13260_ACEOF
13261rm -f conftest.$ac_objext conftest$ac_exeext
13262if { (ac_try="$ac_link"
13263case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266esac
13267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_link") 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && {
13275 test -z "$ac_cxx_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest$ac_exeext &&
13278 $as_test_x conftest$ac_exeext; then
13279 ac_cv_lib_dld_shl_load=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ac_cv_lib_dld_shl_load=no
13285fi
13286
13287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13288 conftest$ac_exeext conftest.$ac_ext
13289LIBS=$ac_check_lib_save_LIBS
13290fi
13291{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13292echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13293if test $ac_cv_lib_dld_shl_load = yes; then
13294 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13295else
13296 { echo "$as_me:$LINENO: checking for dlopen" >&5
13297echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13298if test "${ac_cv_func_dlopen+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300else
13301 cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h. */
13307/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13309#define dlopen innocuous_dlopen
13310
13311/* System header to define __stub macros and hopefully few prototypes,
13312 which can conflict with char dlopen (); below.
13313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13314 <limits.h> exists even on freestanding compilers. */
13315
13316#ifdef __STDC__
13317# include <limits.h>
13318#else
13319# include <assert.h>
13320#endif
13321
13322#undef dlopen
13323
13324/* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13327#ifdef __cplusplus
13328extern "C"
13329#endif
13330char dlopen ();
13331/* The GNU C library defines this for functions which it implements
13332 to always fail with ENOSYS. Some functions are actually named
13333 something starting with __ and the normal name is an alias. */
13334#if defined __stub_dlopen || defined __stub___dlopen
13335choke me
13336#endif
13337
13338int
13339main ()
13340{
13341return dlopen ();
13342 ;
13343 return 0;
13344}
13345_ACEOF
13346rm -f conftest.$ac_objext conftest$ac_exeext
13347if { (ac_try="$ac_link"
13348case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351esac
13352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_link") 2>conftest.er1
13354 ac_status=$?
13355 grep -v '^ *+' conftest.er1 >conftest.err
13356 rm -f conftest.er1
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && {
13360 test -z "$ac_cxx_werror_flag" ||
13361 test ! -s conftest.err
13362 } && test -s conftest$ac_exeext &&
13363 $as_test_x conftest$ac_exeext; then
13364 ac_cv_func_dlopen=yes
13365else
13366 echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 ac_cv_func_dlopen=no
13370fi
13371
13372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13373 conftest$ac_exeext conftest.$ac_ext
13374fi
13375{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13376echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13377if test $ac_cv_func_dlopen = yes; then
13378 lt_cv_dlopen="dlopen"
13379else
13380 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13381echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13382if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384else
13385 ac_check_lib_save_LIBS=$LIBS
13386LIBS="-ldl $LIBS"
13387cat >conftest.$ac_ext <<_ACEOF
13388/* confdefs.h. */
13389_ACEOF
13390cat confdefs.h >>conftest.$ac_ext
13391cat >>conftest.$ac_ext <<_ACEOF
13392/* end confdefs.h. */
13393
13394/* Override any GCC internal prototype to avoid an error.
13395 Use char because int might match the return type of a GCC
13396 builtin and then its argument prototype would still apply. */
13397#ifdef __cplusplus
13398extern "C"
13399#endif
13400char dlopen ();
13401int
13402main ()
13403{
13404return dlopen ();
13405 ;
13406 return 0;
13407}
13408_ACEOF
13409rm -f conftest.$ac_objext conftest$ac_exeext
13410if { (ac_try="$ac_link"
13411case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_link") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_cxx_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest$ac_exeext &&
13426 $as_test_x conftest$ac_exeext; then
13427 ac_cv_lib_dl_dlopen=yes
13428else
13429 echo "$as_me: failed program was:" >&5
13430sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 ac_cv_lib_dl_dlopen=no
13433fi
13434
13435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13436 conftest$ac_exeext conftest.$ac_ext
13437LIBS=$ac_check_lib_save_LIBS
13438fi
13439{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13440echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13441if test $ac_cv_lib_dl_dlopen = yes; then
13442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13443else
13444 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13445echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13446if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13448else
13449 ac_check_lib_save_LIBS=$LIBS
13450LIBS="-lsvld $LIBS"
13451cat >conftest.$ac_ext <<_ACEOF
13452/* confdefs.h. */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h. */
13457
13458/* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461#ifdef __cplusplus
13462extern "C"
13463#endif
13464char dlopen ();
13465int
13466main ()
13467{
13468return dlopen ();
13469 ;
13470 return 0;
13471}
13472_ACEOF
13473rm -f conftest.$ac_objext conftest$ac_exeext
13474if { (ac_try="$ac_link"
13475case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478esac
13479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_link") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } && {
13487 test -z "$ac_cxx_werror_flag" ||
13488 test ! -s conftest.err
13489 } && test -s conftest$ac_exeext &&
13490 $as_test_x conftest$ac_exeext; then
13491 ac_cv_lib_svld_dlopen=yes
13492else
13493 echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 ac_cv_lib_svld_dlopen=no
13497fi
13498
13499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13500 conftest$ac_exeext conftest.$ac_ext
13501LIBS=$ac_check_lib_save_LIBS
13502fi
13503{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13504echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13505if test $ac_cv_lib_svld_dlopen = yes; then
13506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13507else
13508 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13509echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13510if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13512else
13513 ac_check_lib_save_LIBS=$LIBS
13514LIBS="-ldld $LIBS"
13515cat >conftest.$ac_ext <<_ACEOF
13516/* confdefs.h. */
13517_ACEOF
13518cat confdefs.h >>conftest.$ac_ext
13519cat >>conftest.$ac_ext <<_ACEOF
13520/* end confdefs.h. */
13521
13522/* Override any GCC internal prototype to avoid an error.
13523 Use char because int might match the return type of a GCC
13524 builtin and then its argument prototype would still apply. */
13525#ifdef __cplusplus
13526extern "C"
13527#endif
13528char dld_link ();
13529int
13530main ()
13531{
13532return dld_link ();
13533 ;
13534 return 0;
13535}
13536_ACEOF
13537rm -f conftest.$ac_objext conftest$ac_exeext
13538if { (ac_try="$ac_link"
13539case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
13543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_link") 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } && {
13551 test -z "$ac_cxx_werror_flag" ||
13552 test ! -s conftest.err
13553 } && test -s conftest$ac_exeext &&
13554 $as_test_x conftest$ac_exeext; then
13555 ac_cv_lib_dld_dld_link=yes
13556else
13557 echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
13560 ac_cv_lib_dld_dld_link=no
13561fi
13562
13563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13564 conftest$ac_exeext conftest.$ac_ext
13565LIBS=$ac_check_lib_save_LIBS
13566fi
13567{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13568echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13569if test $ac_cv_lib_dld_dld_link = yes; then
13570 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13571fi
13572
13573
13574fi
13575
13576
13577fi
13578
13579
13580fi
13581
13582
13583fi
13584
13585
13586fi
13587
13588 ;;
13589 esac
13590
13591 if test "x$lt_cv_dlopen" != xno; then
13592 enable_dlopen=yes
13593 else
13594 enable_dlopen=no
13595 fi
13596
13597 case $lt_cv_dlopen in
13598 dlopen)
13599 save_CPPFLAGS="$CPPFLAGS"
13600 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13601
13602 save_LDFLAGS="$LDFLAGS"
13603 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13604
13605 save_LIBS="$LIBS"
13606 LIBS="$lt_cv_dlopen_libs $LIBS"
13607
13608 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13609echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13610if test "${lt_cv_dlopen_self+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612else
13613 if test "$cross_compiling" = yes; then :
13614 lt_cv_dlopen_self=cross
13615else
13616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13617 lt_status=$lt_dlunknown
13618 cat > conftest.$ac_ext <<EOF
13619#line 13619 "configure"
13620#include "confdefs.h"
13621
13622#if HAVE_DLFCN_H
13623#include <dlfcn.h>
13624#endif
13625
13626#include <stdio.h>
13627
13628#ifdef RTLD_GLOBAL
13629# define LT_DLGLOBAL RTLD_GLOBAL
13630#else
13631# ifdef DL_GLOBAL
13632# define LT_DLGLOBAL DL_GLOBAL
13633# else
13634# define LT_DLGLOBAL 0
13635# endif
13636#endif
13637
13638/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13639 find out it does not work in some platform. */
13640#ifndef LT_DLLAZY_OR_NOW
13641# ifdef RTLD_LAZY
13642# define LT_DLLAZY_OR_NOW RTLD_LAZY
13643# else
13644# ifdef DL_LAZY
13645# define LT_DLLAZY_OR_NOW DL_LAZY
13646# else
13647# ifdef RTLD_NOW
13648# define LT_DLLAZY_OR_NOW RTLD_NOW
13649# else
13650# ifdef DL_NOW
13651# define LT_DLLAZY_OR_NOW DL_NOW
13652# else
13653# define LT_DLLAZY_OR_NOW 0
13654# endif
13655# endif
13656# endif
13657# endif
13658#endif
13659
13660#ifdef __cplusplus
13661extern "C" void exit (int);
13662#endif
13663
13664void fnord() { int i=42;}
13665int main ()
13666{
13667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13668 int status = $lt_dlunknown;
13669
13670 if (self)
13671 {
13672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13673 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13674 /* dlclose (self); */
13675 }
13676
13677 exit (status);
13678}
13679EOF
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681 (eval $ac_link) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13685 (./conftest; exit; ) 2>/dev/null
13686 lt_status=$?
13687 case x$lt_status in
13688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13690 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13691 esac
13692 else :
13693 # compilation failed
13694 lt_cv_dlopen_self=no
13695 fi
13696fi
13697rm -fr conftest*
13698
13699
13700fi
13701{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13702echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13703
13704 if test "x$lt_cv_dlopen_self" = xyes; then
13705 LDFLAGS="$LDFLAGS $link_static_flag"
13706 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13707echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13708if test "${lt_cv_dlopen_self_static+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710else
13711 if test "$cross_compiling" = yes; then :
13712 lt_cv_dlopen_self_static=cross
13713else
13714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13715 lt_status=$lt_dlunknown
13716 cat > conftest.$ac_ext <<EOF
13717#line 13717 "configure"
13718#include "confdefs.h"
13719
13720#if HAVE_DLFCN_H
13721#include <dlfcn.h>
13722#endif
13723
13724#include <stdio.h>
13725
13726#ifdef RTLD_GLOBAL
13727# define LT_DLGLOBAL RTLD_GLOBAL
13728#else
13729# ifdef DL_GLOBAL
13730# define LT_DLGLOBAL DL_GLOBAL
13731# else
13732# define LT_DLGLOBAL 0
13733# endif
13734#endif
13735
13736/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13737 find out it does not work in some platform. */
13738#ifndef LT_DLLAZY_OR_NOW
13739# ifdef RTLD_LAZY
13740# define LT_DLLAZY_OR_NOW RTLD_LAZY
13741# else
13742# ifdef DL_LAZY
13743# define LT_DLLAZY_OR_NOW DL_LAZY
13744# else
13745# ifdef RTLD_NOW
13746# define LT_DLLAZY_OR_NOW RTLD_NOW
13747# else
13748# ifdef DL_NOW
13749# define LT_DLLAZY_OR_NOW DL_NOW
13750# else
13751# define LT_DLLAZY_OR_NOW 0
13752# endif
13753# endif
13754# endif
13755# endif
13756#endif
13757
13758#ifdef __cplusplus
13759extern "C" void exit (int);
13760#endif
13761
13762void fnord() { int i=42;}
13763int main ()
13764{
13765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13766 int status = $lt_dlunknown;
13767
13768 if (self)
13769 {
13770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13771 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13772 /* dlclose (self); */
13773 }
13774
13775 exit (status);
13776}
13777EOF
13778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13779 (eval $ac_link) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13783 (./conftest; exit; ) 2>/dev/null
13784 lt_status=$?
13785 case x$lt_status in
13786 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13787 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13788 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13789 esac
13790 else :
13791 # compilation failed
13792 lt_cv_dlopen_self_static=no
13793 fi
13794fi
13795rm -fr conftest*
13796
13797
13798fi
13799{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13800echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13801 fi
13802
13803 CPPFLAGS="$save_CPPFLAGS"
13804 LDFLAGS="$save_LDFLAGS"
13805 LIBS="$save_LIBS"
13806 ;;
13807 esac
13808
13809 case $lt_cv_dlopen_self in
13810 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13811 *) enable_dlopen_self=unknown ;;
13812 esac
13813
13814 case $lt_cv_dlopen_self_static in
13815 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13816 *) enable_dlopen_self_static=unknown ;;
13817 esac
13818fi
13819
13820
13816# The else clause should only fire when bootstrapping the
13817# libtool distribution, otherwise you forgot to ship ltmain.sh
13818# with your package, and you will get complaints that there are
13819# no rules to generate ltmain.sh.
13820if test -f "$ltmain"; then
13821 # See if we are running on zsh, and set the options which allow our commands through
13822 # without removal of \ escapes.
13823 if test -n "${ZSH_VERSION+set}" ; then
13824 setopt NO_GLOB_SUBST
13825 fi
13826 # Now quote all the things that may contain metacharacters while being
13827 # careful not to overquote the AC_SUBSTed values. We take copies of the
13828 # variables and quote the copies for generation of the libtool script.
13834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13830 SED SHELL STRIP \
13831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13833 deplibs_check_method reload_flag reload_cmds need_locks \
13834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13835 lt_cv_sys_global_symbol_to_c_name_address \
13836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13837 old_postinstall_cmds old_postuninstall_cmds \

--- 10 unchanged lines hidden (view full) ---

13848 enable_shared_with_static_runtimes_CXX \
13849 old_archive_cmds_CXX \
13850 old_archive_from_new_cmds_CXX \
13851 predep_objects_CXX \
13852 postdep_objects_CXX \
13853 predeps_CXX \
13854 postdeps_CXX \
13855 compiler_lib_search_path_CXX \
13856 compiler_lib_search_dirs_CXX \
13857 archive_cmds_CXX \
13858 archive_expsym_cmds_CXX \
13859 postinstall_cmds_CXX \
13860 postuninstall_cmds_CXX \
13861 old_archive_from_expsyms_cmds_CXX \
13862 allow_undefined_flag_CXX \
13863 no_undefined_flag_CXX \
13864 export_symbols_cmds_CXX \
13865 hardcode_libdir_flag_spec_CXX \
13866 hardcode_libdir_flag_spec_ld_CXX \
13867 hardcode_libdir_separator_CXX \
13868 hardcode_automatic_CXX \
13869 module_cmds_CXX \
13870 module_expsym_cmds_CXX \
13871 lt_cv_prog_compiler_c_o_CXX \
13872 fix_srcfile_path_CXX \
13873 exclude_expsyms_CXX \
13874 include_expsyms_CXX; do
13875
13876 case $var in
13877 old_archive_cmds_CXX | \
13878 old_archive_from_new_cmds_CXX | \
13879 archive_cmds_CXX | \
13880 archive_expsym_cmds_CXX | \

--- 60 unchanged lines hidden (view full) ---

13941
13942# The archiver.
13943AR=$lt_AR
13944AR_FLAGS=$lt_AR_FLAGS
13945
13946# A C compiler.
13947LTCC=$lt_LTCC
13948
13949# LTCC compiler flags.
13950LTCFLAGS=$lt_LTCFLAGS
13951
13952# A language-specific compiler.
13953CC=$lt_compiler_CXX
13954
13955# Is the compiler the GNU C compiler?
13956with_gcc=$GCC_CXX
13957
13958# An ERE matcher.
13959EGREP=$lt_EGREP

--- 137 unchanged lines hidden (view full) ---

14097# Dependencies to place before the objects being linked to create a
14098# shared library.
14099predeps=$lt_predeps_CXX
14100
14101# Dependencies to place after the objects being linked to create a
14102# shared library.
14103postdeps=$lt_postdeps_CXX
14104
14105# The directories searched by this compiler when creating a shared
14106# library
14107compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14108
14109# The library search path used internally by the compiler when linking
14110# a shared library.
14111compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14112
14113# Method to check whether dependent libraries are shared objects.
14114deplibs_check_method=$lt_deplibs_check_method
14115
14116# Command to use when deplibs_check_method == file_magic.

--- 72 unchanged lines hidden (view full) ---

14189
14190# Compile-time system search path for libraries
14191sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14192
14193# Run-time system search path for libraries
14194sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14195
14196# Fix the shell variable \$srcfile for the compiler.
14193fix_srcfile_path="$fix_srcfile_path_CXX"
14197fix_srcfile_path=$lt_fix_srcfile_path
14198
14199# Set to yes if exported symbols are required.
14200always_export_symbols=$always_export_symbols_CXX
14201
14202# The commands to list exported symbols.
14203export_symbols_cmds=$lt_export_symbols_cmds_CXX
14204
14205# The commands to extract the exported symbol list from a shared archive.

--- 74 unchanged lines hidden (view full) ---

14280# Source file extension for f77 test sources.
14281ac_ext=f
14282
14283# Object file extension for compiled f77 test sources.
14284objext=o
14285objext_F77=$objext
14286
14287# Code to be used in simple compile tests
14284lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14288lt_simple_compile_test_code="\
14289 subroutine t
14290 return
14291 end
14292"
14293
14294# Code to be used in simple link tests
14287lt_simple_link_test_code=" program t\n end\n"
14295lt_simple_link_test_code="\
14296 program t
14297 end
14298"
14299
14300# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14301
14302# If no C compiler was specified, use CC.
14303LTCC=${LTCC-"$CC"}
14304
14305# If no C compiler flags were specified, use CFLAGS.
14306LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14307
14308# Allow CC to be a program name with arguments.
14309compiler=$CC
14310
14311
14312# save warnings/boilerplate of simple test code
14313ac_outfile=conftest.$ac_objext
14300printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14301eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14314echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14315eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14316_lt_compiler_boilerplate=`cat conftest.err`
14317$rm conftest*
14318
14319ac_outfile=conftest.$ac_objext
14306printf "$lt_simple_link_test_code" >conftest.$ac_ext
14307eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14320echo "$lt_simple_link_test_code" >conftest.$ac_ext
14321eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14322_lt_linker_boilerplate=`cat conftest.err`
14309$rm conftest*
14323$rm -r conftest*
14324
14325
14326# Allow CC to be a program name with arguments.
14327lt_save_CC="$CC"
14328CC=${F77-"f77"}
14329compiler=$CC
14330compiler_F77=$CC
14331for cc_temp in $compiler""; do

--- 13 unchanged lines hidden (view full) ---

14345echo "${ECHO_T}$can_build_shared" >&6; }
14346
14347{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14348echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14349test "$can_build_shared" = "no" && enable_shared=no
14350
14351# On AIX, shared libraries and static libraries use the same namespace, and
14352# are all built from PIC.
14339case "$host_os" in
14353case $host_os in
14354aix3*)
14355 test "$enable_shared" = yes && enable_static=no
14356 if test -n "$RANLIB"; then
14357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14358 postinstall_cmds='$RANLIB $lib'
14359 fi
14360 ;;
14347aix4* | aix5*)
14361aix[4-9]*)
14362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14363 test "$enable_shared" = yes && enable_static=no
14364 fi
14365 ;;
14366esac
14367{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14368echo "${ECHO_T}$enable_shared" >&6; }
14369
14370{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14371echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14372# Make sure either enable_shared or enable_static is yes.
14373test "$enable_shared" = yes || enable_static=yes
14374{ echo "$as_me:$LINENO: result: $enable_static" >&5
14375echo "${ECHO_T}$enable_static" >&6; }
14376
14363test "$ld_shlibs_F77" = no && can_build_shared=no
14364
14377GCC_F77="$G77"
14378LD_F77="$LD"
14379
14380lt_prog_compiler_wl_F77=
14381lt_prog_compiler_pic_F77=
14382lt_prog_compiler_static_F77=
14383
14384{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5

--- 14 unchanged lines hidden (view full) ---

14399
14400 amigaos*)
14401 # FIXME: we need at least 68020 code to build shared libraries, but
14402 # adding the `-m68020' flag to GCC prevents building anything better,
14403 # like `-m68040'.
14404 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14405 ;;
14406
14395 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14407 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14408 # PIC is the default for these OSes.
14409 ;;
14410
14399 mingw* | pw32* | os2*)
14411 mingw* | cygwin* | pw32* | os2*)
14412 # This hack is so that the source file can tell whether it is being
14413 # built for inclusion in a dll (and should export symbols for example).
14414 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14415 # (--disable-auto-import) libraries
14416 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14417 ;;
14418
14419 darwin* | rhapsody*)
14420 # PIC is the default on this platform
14421 # Common symbols not allowed in MH_DYLIB files
14422 lt_prog_compiler_pic_F77='-fno-common'
14423 ;;
14424
14425 interix[3-9]*)
14426 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14427 # Instead, we relocate shared libraries at runtime.
14428 ;;
14429
14430 msdosdjgpp*)
14431 # Just because we use GCC doesn't mean we suddenly get shared libraries
14432 # on systems that don't support them.
14433 lt_prog_compiler_can_build_shared_F77=no
14434 enable_shared=no
14435 ;;
14436
14437 sysv4*MP*)
14438 if test -d /usr/nec; then
14439 lt_prog_compiler_pic_F77=-Kconform_pic
14440 fi
14441 ;;
14442
14443 hpux*)
14444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14445 # not for PA HP-UX.
14427 case "$host_cpu" in
14446 case $host_cpu in
14447 hppa*64*|ia64*)
14448 # +Z the default
14449 ;;
14450 *)
14451 lt_prog_compiler_pic_F77='-fPIC'
14452 ;;
14453 esac
14454 ;;

--- 20 unchanged lines hidden (view full) ---

14475 case $cc_basename in
14476 xlc*)
14477 lt_prog_compiler_pic_F77='-qnocommon'
14478 lt_prog_compiler_wl_F77='-Wl,'
14479 ;;
14480 esac
14481 ;;
14482
14464 mingw* | pw32* | os2*)
14483 mingw* | cygwin* | pw32* | os2*)
14484 # This hack is so that the source file can tell whether it is being
14485 # built for inclusion in a dll (and should export symbols for example).
14486 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14487 ;;
14488
14489 hpux9* | hpux10* | hpux11*)
14490 lt_prog_compiler_wl_F77='-Wl,'
14491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14492 # not for PA HP-UX.
14474 case "$host_cpu" in
14493 case $host_cpu in
14494 hppa*64*|ia64*)
14495 # +Z the default
14496 ;;
14497 *)
14498 lt_prog_compiler_pic_F77='+Z'
14499 ;;
14500 esac
14501 # Is there a better lt_prog_compiler_static that works with the bundled CC?

--- 6 unchanged lines hidden (view full) ---

14508 lt_prog_compiler_static_F77='-non_shared'
14509 ;;
14510
14511 newsos6)
14512 lt_prog_compiler_pic_F77='-KPIC'
14513 lt_prog_compiler_static_F77='-Bstatic'
14514 ;;
14515
14497 linux*)
14516 linux* | k*bsd*-gnu)
14517 case $cc_basename in
14518 icc* | ecc*)
14519 lt_prog_compiler_wl_F77='-Wl,'
14520 lt_prog_compiler_pic_F77='-KPIC'
14521 lt_prog_compiler_static_F77='-static'
14522 ;;
14504 pgcc* | pgf77* | pgf90*)
14523 pgcc* | pgf77* | pgf90* | pgf95*)
14524 # Portland Group compilers (*not* the Pentium gcc compiler,
14525 # which looks to be a dead project)
14526 lt_prog_compiler_wl_F77='-Wl,'
14527 lt_prog_compiler_pic_F77='-fpic'
14509 lt_prog_compiler_static_F77='-static'
14528 lt_prog_compiler_static_F77='-Bstatic'
14529 ;;
14530 ccc*)
14531 lt_prog_compiler_wl_F77='-Wl,'
14532 # All Alpha code is PIC.
14533 lt_prog_compiler_static_F77='-non_shared'
14534 ;;
14535 *)
14536 case `$CC -V 2>&1 | sed 5q` in
14537 *Sun\ C*)
14538 # Sun C 5.9
14539 lt_prog_compiler_pic_F77='-KPIC'
14540 lt_prog_compiler_static_F77='-Bstatic'
14541 lt_prog_compiler_wl_F77='-Wl,'
14542 ;;
14543 *Sun\ F*)
14544 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14545 lt_prog_compiler_pic_F77='-KPIC'
14546 lt_prog_compiler_static_F77='-Bstatic'
14547 lt_prog_compiler_wl_F77=''
14548 ;;
14549 esac
14550 ;;
14551 esac
14552 ;;
14553
14554 osf3* | osf4* | osf5*)
14555 lt_prog_compiler_wl_F77='-Wl,'
14556 # All OSF/1 code is PIC.
14557 lt_prog_compiler_static_F77='-non_shared'
14558 ;;
14559
14525 sco3.2v5*)
14526 lt_prog_compiler_pic_F77='-Kpic'
14527 lt_prog_compiler_static_F77='-dn'
14560 rdos*)
14561 lt_prog_compiler_static_F77='-non_shared'
14562 ;;
14563
14564 solaris*)
14565 lt_prog_compiler_pic_F77='-KPIC'
14566 lt_prog_compiler_static_F77='-Bstatic'
14567 case $cc_basename in
14568 f77* | f90* | f95*)
14569 lt_prog_compiler_wl_F77='-Qoption ld ';;
14570 *)
14571 lt_prog_compiler_wl_F77='-Wl,';;
14572 esac
14573 ;;
14574
14575 sunos4*)
14576 lt_prog_compiler_wl_F77='-Qoption ld '
14577 lt_prog_compiler_pic_F77='-PIC'
14578 lt_prog_compiler_static_F77='-Bstatic'
14579 ;;
14580
14547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14581 sysv4 | sysv4.2uw2* | sysv4.3*)
14582 lt_prog_compiler_wl_F77='-Wl,'
14583 lt_prog_compiler_pic_F77='-KPIC'
14584 lt_prog_compiler_static_F77='-Bstatic'
14585 ;;
14586
14587 sysv4*MP*)
14588 if test -d /usr/nec ;then
14589 lt_prog_compiler_pic_F77='-Kconform_pic'
14590 lt_prog_compiler_static_F77='-Bstatic'
14591 fi
14592 ;;
14593
14594 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14595 lt_prog_compiler_wl_F77='-Wl,'
14596 lt_prog_compiler_pic_F77='-KPIC'
14597 lt_prog_compiler_static_F77='-Bstatic'
14598 ;;
14599
14600 unicos*)
14601 lt_prog_compiler_wl_F77='-Wl,'
14602 lt_prog_compiler_can_build_shared_F77=no
14603 ;;
14604
14605 uts4*)
14606 lt_prog_compiler_pic_F77='-pic'
14607 lt_prog_compiler_static_F77='-Bstatic'

--- 10 unchanged lines hidden (view full) ---

14618
14619#
14620# Check to make sure the PIC flag actually works.
14621#
14622if test -n "$lt_prog_compiler_pic_F77"; then
14623
14624{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14625echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14586if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14626if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628else
14589 lt_prog_compiler_pic_works_F77=no
14629 lt_cv_prog_compiler_pic_works_F77=no
14630 ac_outfile=conftest.$ac_objext
14591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14632 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14633 # Insert the option either (1) after the last *FLAGS variable, or
14634 # (2) before a word containing "conftest.", or (3) at the end.
14635 # Note that $ac_compile itself does not contain backslashes and begins
14636 # with a dollar sign (not a hyphen), so the echo should work correctly.
14637 # The option is referenced via a variable to avoid confusing sed.
14638 lt_compile=`echo "$ac_compile" | $SED \
14599 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641 -e 's:$: $lt_compiler_flag:'`
14602 (eval echo "\"\$as_me:14602: $lt_compile\"" >&5)
14642 (eval echo "\"\$as_me:14642: $lt_compile\"" >&5)
14643 (eval "$lt_compile" 2>conftest.err)
14644 ac_status=$?
14645 cat conftest.err >&5
14606 echo "$as_me:14606: \$? = $ac_status" >&5
14646 echo "$as_me:14646: \$? = $ac_status" >&5
14647 if (exit $ac_status) && test -s "$ac_outfile"; then
14648 # The compiler can only warn and ignore the option if not recognized
14649 # So say no if there are warnings other than the usual output.
14610 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14611 $SED '/^$/d' conftest.err >conftest.er2
14612 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14613 lt_prog_compiler_pic_works_F77=yes
14650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14653 lt_cv_prog_compiler_pic_works_F77=yes
14654 fi
14655 fi
14656 $rm conftest*
14657
14658fi
14619{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14620echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14659{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14660echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14661
14622if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14662if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14663 case $lt_prog_compiler_pic_F77 in
14664 "" | " "*) ;;
14665 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14666 esac
14667else
14668 lt_prog_compiler_pic_F77=
14669 lt_prog_compiler_can_build_shared_F77=no
14670fi
14671
14672fi
14633case "$host_os" in
14673case $host_os in
14674 # For platforms which do not support PIC, -DPIC is meaningless:
14675 *djgpp*)
14676 lt_prog_compiler_pic_F77=
14677 ;;
14678 *)
14679 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14680 ;;
14681esac
14682
14683#
14684# Check to make sure the static flag actually works.
14685#
14686wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14687{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14688echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14689if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 lt_cv_prog_compiler_static_works_F77=no
14693 save_LDFLAGS="$LDFLAGS"
14694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14695 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14697 # The linker can only warn and ignore the option if not recognized
14698 # So say no if there are warnings
14699 if test -s conftest.err; then
14700 # Append any errors to the config.log.
14701 cat conftest.err 1>&5
14702 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14704 if diff conftest.exp conftest.er2 >/dev/null; then
14705 lt_cv_prog_compiler_static_works_F77=yes
14706 fi
14707 else
14708 lt_cv_prog_compiler_static_works_F77=yes
14709 fi
14710 fi
14711 $rm -r conftest*
14712 LDFLAGS="$save_LDFLAGS"
14713
14714fi
14715{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14716echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14717
14718if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14719 :
14720else
14721 lt_prog_compiler_static_F77=
14722fi
14723
14724
14725{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14726echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14727if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729else
14730 lt_cv_prog_compiler_c_o_F77=no
14731 $rm -r conftest 2>/dev/null
14732 mkdir conftest
14733 cd conftest
14734 mkdir out
14653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14736
14737 lt_compiler_flag="-o out/conftest2.$ac_objext"
14738 # Insert the option either (1) after the last *FLAGS variable, or
14739 # (2) before a word containing "conftest.", or (3) at the end.
14740 # Note that $ac_compile itself does not contain backslashes and begins
14741 # with a dollar sign (not a hyphen), so the echo should work correctly.
14742 lt_compile=`echo "$ac_compile" | $SED \
14661 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14745 -e 's:$: $lt_compiler_flag:'`
14664 (eval echo "\"\$as_me:14664: $lt_compile\"" >&5)
14746 (eval echo "\"\$as_me:14746: $lt_compile\"" >&5)
14747 (eval "$lt_compile" 2>out/conftest.err)
14748 ac_status=$?
14749 cat out/conftest.err >&5
14668 echo "$as_me:14668: \$? = $ac_status" >&5
14750 echo "$as_me:14750: \$? = $ac_status" >&5
14751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14752 then
14753 # The compiler can only warn and ignore the option if not recognized
14754 # So say no if there are warnings
14673 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14674 $SED '/^$/d' out/conftest.err >out/conftest.er2
14675 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14758 lt_cv_prog_compiler_c_o_F77=yes
14759 fi
14760 fi
14679 chmod u+w .
14761 chmod u+w . 2>&5
14762 $rm conftest*
14763 # SGI C++ compiler will create directory out/ii_files/ for
14764 # template instantiation
14765 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14766 $rm out/* && rmdir out
14767 cd ..
14768 rmdir conftest
14769 $rm conftest*

--- 52 unchanged lines hidden (view full) ---

14822 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14823 # include_expsyms should be a list of space-separated symbols to be *always*
14824 # included in the symbol list
14825 include_expsyms_F77=
14826 # exclude_expsyms can be an extended regexp of symbols to exclude
14827 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14828 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14829 # as well as any symbol that contains `d'.
14748 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14830 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14831 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14832 # platforms (ab)use it in PIC code, but their linkers get confused if
14833 # the symbol is explicitly referenced. Since portable code cannot
14834 # rely on this symbol name, it's probably fine to never include it in
14835 # preloaded symbol tables.
14836 # Exclude shared library initialization/finalization symbols.
14837 extract_expsyms_cmds=
14838 # Just being paranoid about ensuring that cc_basename is set.
14839 for cc_temp in $compiler""; do
14840 case $cc_temp in
14841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14843 \-*) ;;
14844 *) break;;

--- 5 unchanged lines hidden (view full) ---

14850 cygwin* | mingw* | pw32*)
14851 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14852 # When not using gcc, we currently assume that we are using
14853 # Microsoft Visual C++.
14854 if test "$GCC" != yes; then
14855 with_gnu_ld=no
14856 fi
14857 ;;
14858 interix*)
14859 # we just hope/assume this is gcc and not c89 (= MSVC++)
14860 with_gnu_ld=yes
14861 ;;
14862 openbsd*)
14863 with_gnu_ld=no
14864 ;;
14865 esac
14866
14867 ld_shlibs_F77=yes
14868 if test "$with_gnu_ld" = yes; then
14869 # If archive_cmds runs LD, not CC, wlarc should be empty

--- 17 unchanged lines hidden (view full) ---

14887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14889 *\ 2.11.*) ;; # other 2.11 versions
14890 *) supports_anon_versioning=yes ;;
14891 esac
14892
14893 # See if GNU ld supports shared libraries.
14894 case $host_os in
14808 aix3* | aix4* | aix5*)
14895 aix[3-9]*)
14896 # On AIX/PPC, the GNU linker is very broken
14897 if test "$host_cpu" != ia64; then
14898 ld_shlibs_F77=no
14899 cat <<EOF 1>&2
14900
14901*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14902*** to be unable to reliably create shared libraries on AIX.
14903*** Therefore, libtool is disabling shared libraries support. If you

--- 31 unchanged lines hidden (view full) ---

14935
14936 cygwin* | mingw* | pw32*)
14937 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14938 # as there is no search path for DLLs.
14939 hardcode_libdir_flag_spec_F77='-L$libdir'
14940 allow_undefined_flag_F77=unsupported
14941 always_export_symbols_F77=no
14942 enable_shared_with_static_runtimes_F77=yes
14856 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14943 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14944
14945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14859 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14946 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14947 # If the export-symbols file already is a .def file (1st line
14948 # is EXPORTS), use it as is; otherwise, prepend...
14949 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14950 cp $export_symbols $output_objdir/$soname.def;
14951 else
14952 echo EXPORTS > $output_objdir/$soname.def;
14953 cat $export_symbols >> $output_objdir/$soname.def;
14954 fi~
14868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14955 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14956 else
14957 ld_shlibs_F77=no
14958 fi
14959 ;;
14960
14874 linux*)
14961 interix[3-9]*)
14962 hardcode_direct_F77=no
14963 hardcode_shlibpath_var_F77=no
14964 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14965 export_dynamic_flag_spec_F77='${wl}-E'
14966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14967 # Instead, shared libraries are loaded at an image base (0x10000000 by
14968 # default) and relocated if they conflict, which is a slow very memory
14969 # consuming and fragmenting process. To avoid this, we pick a random,
14970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14971 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14972 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14973 archive_expsym_cmds_F77='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'
14974 ;;
14975
14976 gnu* | linux* | k*bsd*-gnu)
14977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14978 tmp_addflag=
14979 case $cc_basename,$host_cpu in
14980 pgcc*) # Portland Group C compiler
14879 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14981 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14982 tmp_addflag=' $pic_flag'
14983 ;;
14882 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14883 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14984 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14985 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14986 tmp_addflag=' $pic_flag -Mnomain' ;;
14987 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14988 tmp_addflag=' -i_dynamic' ;;
14989 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14990 tmp_addflag=' -i_dynamic -nofor_main' ;;
14991 ifc* | ifort*) # Intel Fortran compiler
14992 tmp_addflag=' -nofor_main' ;;
14993 esac
14892 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994 case `$CC -V 2>&1 | sed 5q` in
14995 *Sun\ C*) # Sun C 5.9
14996 whole_archive_flag_spec_F77='${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'
14997 tmp_sharedflag='-G' ;;
14998 *Sun\ F*) # Sun Fortran 8.3
14999 tmp_sharedflag='-G' ;;
15000 *)
15001 tmp_sharedflag='-shared' ;;
15002 esac
15003 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004
15005 if test $supports_anon_versioning = yes; then
15006 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15008 $echo "local: *; };" >> $output_objdir/$libname.ver~
14898 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15009 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15010 fi
15011 else
15012 ld_shlibs_F77=no
15013 fi
15014 ;;
15015
15016 netbsd*)
15017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15018 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15019 wlarc=
15020 else
15021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023 fi
15024 ;;
15025
14915 solaris* | sysv5*)
15026 solaris*)
15027 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15028 ld_shlibs_F77=no
15029 cat <<EOF 1>&2
15030
15031*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15032*** create shared libraries on Solaris systems. Therefore, libtool
15033*** is disabling shared libraries support. We urge you to upgrade GNU
15034*** binutils to release 2.9.1 or newer. Another option is to modify

--- 4 unchanged lines hidden (view full) ---

15039 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15041 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15042 else
15043 ld_shlibs_F77=no
15044 fi
15045 ;;
15046
15047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15048 case `$LD -v 2>&1` in
15049 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15050 ld_shlibs_F77=no
15051 cat <<_LT_EOF 1>&2
15052
15053*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15054*** reliably create shared libraries on SCO systems. Therefore, libtool
15055*** is disabling shared libraries support. We urge you to upgrade GNU
15056*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15057*** your PATH or compiler configuration so that the native linker is
15058*** used, and then restart.
15059
15060_LT_EOF
15061 ;;
15062 *)
15063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15065 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15066 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15067 else
15068 ld_shlibs_F77=no
15069 fi
15070 ;;
15071 esac
15072 ;;
15073
15074 sunos4*)
15075 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15076 wlarc=
15077 hardcode_direct_F77=yes
15078 hardcode_shlibpath_var_F77=no
15079 ;;
15080
15081 *)

--- 17 unchanged lines hidden (view full) ---

15099 case $host_os in
15100 aix3*)
15101 allow_undefined_flag_F77=unsupported
15102 always_export_symbols_F77=yes
15103 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15104 # Note: this linker hardcodes the directories in LIBPATH if there
15105 # are no directories specified by -L.
15106 hardcode_minus_L_F77=yes
14969 if test "$GCC" = yes && test -z "$link_static_flag"; then
15107 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15108 # Neither direct hardcoding nor static linking is supported with a
15109 # broken collect2.
15110 hardcode_direct_F77=unsupported
15111 fi
15112 ;;
15113
14976 aix4* | aix5*)
15114 aix[4-9]*)
15115 if test "$host_cpu" = ia64; then
15116 # On IA64, the linker does run time linking by default, so we don't
15117 # have to do anything special.
15118 aix_use_runtimelinking=no
15119 exp_sym_flag='-Bexport'
15120 no_entry_flag=""
15121 else
15122 # If we're using GNU nm, then we don't want the "-C" option.
15123 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15124 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15125 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15126 else
15127 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15128 fi
15129 aix_use_runtimelinking=no
15130
15131 # Test if we are trying to use run time linking or normal
15132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15133 # need to do runtime linking.
14996 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15134 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15135 for ld_flag in $LDFLAGS; do
15136 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15137 aix_use_runtimelinking=yes
15138 break
15139 fi
15140 done
15141 ;;
15142 esac
15143
15144 exp_sym_flag='-bexport'
15145 no_entry_flag='-bnoentry'
15146 fi
15147
15148 # When large executables or shared objects are built, AIX ld can
15149 # have problems creating the table of contents. If linking a library

--- 10 unchanged lines hidden (view full) ---

15160 case $host_os in aix4.[012]|aix4.[012].*)
15161 # We only want to do this on AIX 4.2 and lower, the check
15162 # below for broken collect2 doesn't work under 4.3+
15163 collect2name=`${CC} -print-prog-name=collect2`
15164 if test -f "$collect2name" && \
15165 strings "$collect2name" | grep resolve_lib_name >/dev/null
15166 then
15167 # We have reworked collect2
15029 hardcode_direct_F77=yes
15168 :
15169 else
15170 # We have old collect2
15171 hardcode_direct_F77=unsupported
15172 # It fails to find uninstalled libraries when the uninstalled
15173 # path is not listed in the libpath. Setting hardcode_minus_L
15174 # to unsupported forces relinking
15175 hardcode_minus_L_F77=yes
15176 hardcode_libdir_flag_spec_F77='-L$libdir'
15177 hardcode_libdir_separator_F77=
15178 fi
15179 ;;
15180 esac
15181 shared_flag='-shared'
15182 if test "$aix_use_runtimelinking" = yes; then
15183 shared_flag="$shared_flag "'${wl}-G'
15184 fi
15185 else
15186 # not using gcc
15187 if test "$host_cpu" = ia64; then
15188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15189 # chokes on -Wl,-G. The following line is correct:
15190 shared_flag='-G'
15191 else
15052 if test "$aix_use_runtimelinking" = yes; then
15192 if test "$aix_use_runtimelinking" = yes; then
15193 shared_flag='${wl}-G'
15194 else
15195 shared_flag='${wl}-bM:SRE'
15056 fi
15196 fi
15197 fi
15198 fi
15199
15200 # It seems that -bexpall does not export symbols beginning with
15201 # underscore (_), so it is better to generate a list of symbols to export.
15202 always_export_symbols_F77=yes
15203 if test "$aix_use_runtimelinking" = yes; then
15204 # Warning - without using the other runtime loading flags (-brtl),

--- 19 unchanged lines hidden (view full) ---

15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } && {
15227 test -z "$ac_f77_werror_flag" ||
15228 test ! -s conftest.err
15229 } && test -s conftest$ac_exeext &&
15230 $as_test_x conftest$ac_exeext; then
15231
15092aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15093}'`
15232lt_aix_libpath_sed='
15233 /Import File Strings/,/^$/ {
15234 /^0/ {
15235 s/^0 *\(.*\)$/\1/
15236 p
15237 }
15238 }'
15239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15240# Check for a 64-bit object if we didn't find anything.
15095if 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; }
15096}'`; fi
15241if test -z "$aix_libpath"; then
15242 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243fi
15244else
15245 echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
15248
15249fi
15250
15251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15252 conftest$ac_exeext conftest.$ac_ext
15253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15254
15255 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15109 archive_expsym_cmds_F77="\$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"
15256 archive_expsym_cmds_F77="\$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"
15257 else
15258 if test "$host_cpu" = ia64; then
15259 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15260 allow_undefined_flag_F77="-z nodefs"
15114 archive_expsym_cmds_F77="\$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"
15261 archive_expsym_cmds_F77="\$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"
15262 else
15263 # Determine the default libpath from the value encoded in an empty executable.
15264 cat >conftest.$ac_ext <<_ACEOF
15265 program main
15266
15267 end
15268_ACEOF
15269rm -f conftest.$ac_objext conftest$ac_exeext

--- 10 unchanged lines hidden (view full) ---

15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } && {
15283 test -z "$ac_f77_werror_flag" ||
15284 test ! -s conftest.err
15285 } && test -s conftest$ac_exeext &&
15286 $as_test_x conftest$ac_exeext; then
15287
15141aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15142}'`
15288lt_aix_libpath_sed='
15289 /Import File Strings/,/^$/ {
15290 /^0/ {
15291 s/^0 *\(.*\)$/\1/
15292 p
15293 }
15294 }'
15295aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15296# Check for a 64-bit object if we didn't find anything.
15144if 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; }
15145}'`; fi
15297if test -z "$aix_libpath"; then
15298 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15299fi
15300else
15301 echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
15304
15305fi
15306
15307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15308 conftest$ac_exeext conftest.$ac_ext
15309if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15310
15311 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15312 # Warning - without using the other run time loading flags,
15313 # -berok will link without error, but may produce a broken library.
15314 no_undefined_flag_F77=' ${wl}-bernotok'
15315 allow_undefined_flag_F77=' ${wl}-berok'
15162 # -bexpall does not export symbols beginning with underscore (_)
15163 always_export_symbols_F77=yes
15316 # Exported symbols can be pulled into shared objects from archives
15165 whole_archive_flag_spec_F77=' '
15317 whole_archive_flag_spec_F77='$convenience'
15318 archive_cmds_need_lc_F77=yes
15167 # This is similar to how AIX traditionally builds it's shared libraries.
15168 archive_expsym_cmds_F77="\$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'
15319 # This is similar to how AIX traditionally builds its shared libraries.
15320 archive_expsym_cmds_F77="\$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'
15321 fi
15322 fi
15323 ;;
15324
15325 amigaos*)
15326 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15327 hardcode_libdir_flag_spec_F77='-L$libdir'
15328 hardcode_minus_L_F77=yes

--- 16 unchanged lines hidden (view full) ---

15345 libext=lib
15346 # Tell ltmain to make .dll files, not .so files.
15347 shrext_cmds=".dll"
15348 # FIXME: Setting linknames here is a bad hack.
15349 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15350 # The linker will automatically build a .lib file if we build a DLL.
15351 old_archive_From_new_cmds_F77='true'
15352 # FIXME: Should let the user specify the lib program.
15201 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15353 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15354 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15355 enable_shared_with_static_runtimes_F77=yes
15356 ;;
15357
15358 darwin* | rhapsody*)
15207 case "$host_os" in
15359 case $host_os in
15360 rhapsody* | darwin1.[012])
15361 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15362 ;;
15363 *) # Darwin 1.3 on
15364 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15365 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15366 else
15367 case ${MACOSX_DEPLOYMENT_TARGET} in

--- 10 unchanged lines hidden (view full) ---

15378 archive_cmds_need_lc_F77=no
15379 hardcode_direct_F77=no
15380 hardcode_automatic_F77=yes
15381 hardcode_shlibpath_var_F77=unsupported
15382 whole_archive_flag_spec_F77=''
15383 link_all_deplibs_F77=yes
15384 if test "$GCC" = yes ; then
15385 output_verbose_link_cmd='echo'
15234 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15235 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15236 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15237 archive_expsym_cmds_F77='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}'
15238 module_expsym_cmds_F77='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}'
15386 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15387 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15388 archive_expsym_cmds_F77="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}"
15389 module_expsym_cmds_F77="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}"
15390 else
15391 case $cc_basename in
15392 xlc*)
15393 output_verbose_link_cmd='echo'
15243 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15394 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15395 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15246 archive_expsym_cmds_F77='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15397 archive_expsym_cmds_F77='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}'
15398 module_expsym_cmds_F77='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}'
15399 ;;
15400 *)
15401 ld_shlibs_F77=no
15402 ;;
15403 esac
15404 fi
15405 ;;

--- 23 unchanged lines hidden (view full) ---

15429 freebsd2*)
15430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15431 hardcode_direct_F77=yes
15432 hardcode_minus_L_F77=yes
15433 hardcode_shlibpath_var_F77=no
15434 ;;
15435
15436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15286 freebsd* | kfreebsd*-gnu | dragonfly*)
15437 freebsd* | dragonfly*)
15438 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15439 hardcode_libdir_flag_spec_F77='-R$libdir'
15440 hardcode_direct_F77=yes
15441 hardcode_shlibpath_var_F77=no
15442 ;;
15443
15444 hpux9*)
15445 if test "$GCC" = yes; then

--- 6 unchanged lines hidden (view full) ---

15452 hardcode_direct_F77=yes
15453
15454 # hardcode_minus_L: Not really in the search PATH,
15455 # but as the default location of the library.
15456 hardcode_minus_L_F77=yes
15457 export_dynamic_flag_spec_F77='${wl}-E'
15458 ;;
15459
15309 hpux10* | hpux11*)
15460 hpux10*)
15461 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15311 case "$host_cpu" in
15312 hppa*64*|ia64*)
15462 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15463 else
15464 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15465 fi
15466 if test "$with_gnu_ld" = no; then
15467 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15468 hardcode_libdir_separator_F77=:
15469
15470 hardcode_direct_F77=yes
15471 export_dynamic_flag_spec_F77='${wl}-E'
15472
15473 # hardcode_minus_L: Not really in the search PATH,
15474 # but as the default location of the library.
15475 hardcode_minus_L_F77=yes
15476 fi
15477 ;;
15478
15479 hpux11*)
15480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15481 case $host_cpu in
15482 hppa*64*)
15483 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15484 ;;
15485 ia64*)
15486 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15487 ;;
15488 *)
15489 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15490 ;;
15491 esac
15492 else
15320 case "$host_cpu" in
15321 hppa*64*|ia64*)
15322 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15493 case $host_cpu in
15494 hppa*64*)
15495 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496 ;;
15497 ia64*)
15498 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15499 ;;
15500 *)
15325 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15501 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15502 ;;
15503 esac
15504 fi
15505 if test "$with_gnu_ld" = no; then
15330 case "$host_cpu" in
15331 hppa*64*)
15332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15506 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15507 hardcode_libdir_separator_F77=:
15508
15509 case $host_cpu in
15510 hppa*64*|ia64*)
15511 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15334 hardcode_libdir_separator_F77=:
15512 hardcode_direct_F77=no
15513 hardcode_shlibpath_var_F77=no
15514 ;;
15338 ia64*)
15339 hardcode_libdir_flag_spec_F77='-L$libdir'
15340 hardcode_direct_F77=no
15341 hardcode_shlibpath_var_F77=no
15342
15343 # hardcode_minus_L: Not really in the search PATH,
15344 # but as the default location of the library.
15345 hardcode_minus_L_F77=yes
15346 ;;
15515 *)
15348 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15349 hardcode_libdir_separator_F77=:
15516 hardcode_direct_F77=yes
15517 export_dynamic_flag_spec_F77='${wl}-E'
15518
15519 # hardcode_minus_L: Not really in the search PATH,
15520 # but as the default location of the library.
15521 hardcode_minus_L_F77=yes
15522 ;;
15523 esac

--- 27 unchanged lines hidden (view full) ---

15551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct_F77=yes
15553 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15554 hardcode_libdir_separator_F77=:
15555 hardcode_shlibpath_var_F77=no
15556 ;;
15557
15558 openbsd*)
15393 hardcode_direct_F77=yes
15394 hardcode_shlibpath_var_F77=no
15395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15396 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15397 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15398 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15399 export_dynamic_flag_spec_F77='${wl}-E'
15559 if test -f /usr/libexec/ld.so; then
15560 hardcode_direct_F77=yes
15561 hardcode_shlibpath_var_F77=no
15562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15563 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15565 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15566 export_dynamic_flag_spec_F77='${wl}-E'
15567 else
15568 case $host_os in
15569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15570 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_libdir_flag_spec_F77='-R$libdir'
15572 ;;
15573 *)
15574 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15575 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15576 ;;
15577 esac
15578 fi
15579 else
15401 case $host_os in
15402 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15403 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15404 hardcode_libdir_flag_spec_F77='-R$libdir'
15405 ;;
15406 *)
15407 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15408 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15409 ;;
15410 esac
15580 ld_shlibs_F77=no
15581 fi
15582 ;;
15583
15584 os2*)
15585 hardcode_libdir_flag_spec_F77='-L$libdir'
15586 hardcode_minus_L_F77=yes
15587 allow_undefined_flag_F77=unsupported
15588 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'

--- 24 unchanged lines hidden (view full) ---

15613 $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'
15614
15615 # Both c and cxx compiler support -rpath directly
15616 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15617 fi
15618 hardcode_libdir_separator_F77=:
15619 ;;
15620
15451 sco3.2v5*)
15452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_shlibpath_var_F77=no
15454 export_dynamic_flag_spec_F77='${wl}-Bexport'
15455 runpath_var=LD_RUN_PATH
15456 hardcode_runpath_var=yes
15457 ;;
15458
15621 solaris*)
15622 no_undefined_flag_F77=' -z text'
15623 if test "$GCC" = yes; then
15624 wlarc='${wl}'
15625 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15627 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15628 else
15629 wlarc=''
15630 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15633 fi
15634 hardcode_libdir_flag_spec_F77='-R$libdir'
15635 hardcode_shlibpath_var_F77=no
15636 case $host_os in
15637 solaris2.[0-5] | solaris2.[0-5].*) ;;
15638 *)
15477 # The compiler driver will combine linker options so we
15478 # cannot just pass the convience library names through
15479 # without $wl, iff we do not link with $LD.
15480 # Luckily, gcc supports the same syntax we need for Sun Studio.
15639 # The compiler driver will combine and reorder linker options,
15640 # but understands `-z linker_flag'. GCC discards it without `$wl',
15641 # but is careful enough not to reorder.
15642 # Supported since Solaris 2.6 (maybe 2.5.1?)
15482 case $wlarc in
15483 '')
15484 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15485 *)
15486 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15487 esac ;;
15643 if test "$GCC" = yes; then
15644 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15645 else
15646 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15647 fi
15648 ;;
15649 esac
15650 link_all_deplibs_F77=yes
15651 ;;
15652
15653 sunos4*)
15654 if test "x$host_vendor" = xsequent; then
15655 # Use $CC to link under sequent, because it throws in some extra .o
15656 # files that make .init and .fini sections work.

--- 40 unchanged lines hidden (view full) ---

15697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_shlibpath_var_F77=no
15699 runpath_var=LD_RUN_PATH
15700 hardcode_runpath_var=yes
15701 ld_shlibs_F77=yes
15702 fi
15703 ;;
15704
15544 sysv4.2uw2*)
15545 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_direct_F77=yes
15547 hardcode_minus_L_F77=no
15705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15706 no_undefined_flag_F77='${wl}-z,text'
15707 archive_cmds_need_lc_F77=no
15708 hardcode_shlibpath_var_F77=no
15549 hardcode_runpath_var=yes
15550 runpath_var=LD_RUN_PATH
15551 ;;
15709 runpath_var='LD_RUN_PATH'
15710
15553 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15554 no_undefined_flag_F77='${wl}-z ${wl}text'
15711 if test "$GCC" = yes; then
15556 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15712 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15713 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15714 else
15558 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15715 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15716 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15717 fi
15560 runpath_var='LD_RUN_PATH'
15561 hardcode_shlibpath_var_F77=no
15718 ;;
15719
15564 sysv5*)
15565 no_undefined_flag_F77=' -z text'
15566 # $CC -shared without GNU ld will not create a library from C++
15567 # object files and a static libstdc++, better avoid it by now
15568 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15571 hardcode_libdir_flag_spec_F77=
15720 sysv5* | sco3.2v5* | sco5v6*)
15721 # Note: We can NOT use -z defs as we might desire, because we do not
15722 # link with -lc, and that would cause any symbols used from libc to
15723 # always be unresolved, which means just about no library would
15724 # ever link correctly. If we're not using GNU ld we use -z text
15725 # though, which does catch some bad symbols but isn't as heavy-handed
15726 # as -z defs.
15727 no_undefined_flag_F77='${wl}-z,text'
15728 allow_undefined_flag_F77='${wl}-z,nodefs'
15729 archive_cmds_need_lc_F77=no
15730 hardcode_shlibpath_var_F77=no
15731 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15732 hardcode_libdir_separator_F77=':'
15733 link_all_deplibs_F77=yes
15734 export_dynamic_flag_spec_F77='${wl}-Bexport'
15735 runpath_var='LD_RUN_PATH'
15736
15737 if test "$GCC" = yes; then
15738 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15739 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15740 else
15741 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15742 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743 fi
15744 ;;
15745
15746 uts4*)
15747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_libdir_flag_spec_F77='-L$libdir'
15749 hardcode_shlibpath_var_F77=no
15750 ;;
15751
15752 *)
15753 ld_shlibs_F77=no
15754 ;;
15755 esac
15756 fi
15757
15758{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15759echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15760test "$ld_shlibs_F77" = no && can_build_shared=no
15761
15592variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15593if test "$GCC" = yes; then
15594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15595fi
15596
15762#
15763# Do we need to explicitly link libc?
15764#
15765case "x$archive_cmds_need_lc_F77" in
15766x|xyes)
15767 # Assume -lc should be added
15768 archive_cmds_need_lc_F77=yes
15769

--- 4 unchanged lines hidden (view full) ---

15774 ;;
15775 '$CC '*)
15776 # Test whether the compiler implicitly links with -lc since on some
15777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15778 # to ld, don't add -lc before -lgcc.
15779 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15780echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15781 $rm conftest*
15617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15783
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } 2>conftest.err; then
15789 soname=conftest
15790 lib=conftest
15791 libobjs=conftest.$ac_objext
15792 deplibs=
15793 wl=$lt_prog_compiler_wl_F77
15794 pic_flag=$lt_prog_compiler_pic_F77
15795 compiler_flags=-v
15796 linker_flags=-v
15797 verstring=
15798 output_objdir=.
15799 libname=conftest
15800 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15801 allow_undefined_flag_F77=
15802 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5

--- 29 unchanged lines hidden (view full) ---

15832postuninstall_cmds=
15833finish_cmds=
15834finish_eval=
15835shlibpath_var=
15836shlibpath_overrides_runpath=unknown
15837version_type=none
15838dynamic_linker="$host_os ld.so"
15839sys_lib_dlsearch_path_spec="/lib /usr/lib"
15674if test "$GCC" = yes; then
15675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15676 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15677 # if the path contains ";" then we assume it to be the separator
15678 # otherwise default to the standard path separator (i.e. ":") - it is
15679 # assumed that no part of a normal pathname contains ";" but that should
15680 # okay in the real world where ";" in dirpaths is itself problematic.
15681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15682 else
15683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15684 fi
15685else
15686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15687fi
15840
15841need_lib_prefix=unknown
15842hardcode_into_libs=no
15843
15844# when you set need_version to no, make sure it does not cause -set_version
15845# flags to be left without arguments
15846need_version=unknown
15847
15848case $host_os in
15849aix3*)
15850 version_type=linux
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15852 shlibpath_var=LIBPATH
15853
15854 # AIX 3 has no versioning support, so we append a major version to the name.
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 ;;
15857
15705aix4* | aix5*)
15858aix[4-9]*)
15859 version_type=linux
15860 need_lib_prefix=no
15861 need_version=no
15862 hardcode_into_libs=yes
15863 if test "$host_cpu" = ia64; then
15864 # AIX 5 supports IA64
15865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15866 shlibpath_var=LD_LIBRARY_PATH

--- 67 unchanged lines hidden (view full) ---

15934 case $GCC,$host_os in
15935 yes,cygwin* | yes,mingw* | yes,pw32*)
15936 library_names_spec='$libname.dll.a'
15937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15938 postinstall_cmds='base_file=`basename \${file}`~
15939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15940 dldir=$destdir/`dirname \$dlpath`~
15941 test -d \$dldir || mkdir -p \$dldir~
15789 $install_prog $dir/$dlname \$dldir/$dlname'
15942 $install_prog $dir/$dlname \$dldir/$dlname~
15943 chmod a+x \$dldir/$dlname'
15944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15945 dlpath=$dir/\$dldll~
15946 $rm \$dlpath'
15947 shlibpath_overrides_runpath=yes
15948
15949 case $host_os in
15950 cygwin*)
15951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'

--- 36 unchanged lines hidden (view full) ---

15988 dynamic_linker="$host_os dyld"
15989 version_type=darwin
15990 need_lib_prefix=no
15991 need_version=no
15992 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15993 soname_spec='${libname}${release}${major}$shared_ext'
15994 shlibpath_overrides_runpath=yes
15995 shlibpath_var=DYLD_LIBRARY_PATH
15842 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15843 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15844 if test "$GCC" = yes; then
15845 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"`
15846 else
15847 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15848 fi
15996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15997
15998 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15999 ;;
16000
16001dgux*)
16002 version_type=linux
16003 need_lib_prefix=no
16004 need_version=no
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 shlibpath_var=LD_LIBRARY_PATH
16008 ;;
16009
16010freebsd1*)
16011 dynamic_linker=no
16012 ;;
16013
15865kfreebsd*-gnu)
15866 version_type=linux
15867 need_lib_prefix=no
15868 need_version=no
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 shlibpath_var=LD_LIBRARY_PATH
15872 shlibpath_overrides_runpath=no
15873 hardcode_into_libs=yes
15874 dynamic_linker='GNU ld.so'
15875 ;;
15876
16014freebsd* | dragonfly*)
16015 # DragonFly does not have aout. When/if they implement a new
16016 # versioning mechanism, adjust this.
15880 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16017 if test -x /usr/bin/objformat; then
16018 objformat=`/usr/bin/objformat`
16019 else
16020 case $host_os in
16021 freebsd[123]*) objformat=aout ;;
16022 *) objformat=elf ;;
16023 esac
16024 fi
16025 version_type=freebsd-$objformat
16026 case $version_type in
16027 freebsd-elf*)
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16029 need_version=no
16030 need_lib_prefix=no
16031 ;;
16032 freebsd-*)

--- 5 unchanged lines hidden (view full) ---

16038 case $host_os in
16039 freebsd2*)
16040 shlibpath_overrides_runpath=yes
16041 ;;
16042 freebsd3.[01]* | freebsdelf3.[01]*)
16043 shlibpath_overrides_runpath=yes
16044 hardcode_into_libs=yes
16045 ;;
15902 *) # from 3.2 on
16046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16048 shlibpath_overrides_runpath=no
16049 hardcode_into_libs=yes
16050 ;;
16051 *) # from 4.6 on, and DragonFly
16052 shlibpath_overrides_runpath=yes
16053 hardcode_into_libs=yes
16054 ;;
16055 esac
16056 ;;
16057
16058gnu*)
16059 version_type=linux
16060 need_lib_prefix=no
16061 need_version=no
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 hardcode_into_libs=yes
16066 ;;
16067
16068hpux9* | hpux10* | hpux11*)
16069 # Give a soname corresponding to the major version so that dld.sl refuses to
16070 # link against other versions.
16071 version_type=sunos
16072 need_lib_prefix=no
16073 need_version=no
15925 case "$host_cpu" in
16074 case $host_cpu in
16075 ia64*)
16076 shrext_cmds='.so'
16077 hardcode_into_libs=yes
16078 dynamic_linker="$host_os dld.so"
16079 shlibpath_var=LD_LIBRARY_PATH
16080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16082 soname_spec='${libname}${release}${shared_ext}$major'

--- 23 unchanged lines hidden (view full) ---

16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 ;;
16109 esac
16110 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16111 postinstall_cmds='chmod 555 $lib'
16112 ;;
16113
16114interix[3-9]*)
16115 version_type=linux
16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 shlibpath_overrides_runpath=no
16123 hardcode_into_libs=yes
16124 ;;
16125
16126irix5* | irix6* | nonstopux*)
16127 case $host_os in
16128 nonstopux*) version_type=nonstopux ;;
16129 *)
16130 if test "$lt_cv_prog_gnu_ld" = yes; then
16131 version_type=linux
16132 else
16133 version_type=irix

--- 27 unchanged lines hidden (view full) ---

16161 ;;
16162
16163# No shared lib support for Linux oldld, aout, or coff.
16164linux*oldld* | linux*aout* | linux*coff*)
16165 dynamic_linker=no
16166 ;;
16167
16168# This must be Linux ELF.
16008linux*)
16169linux* | k*bsd*-gnu)
16170 version_type=linux
16171 need_lib_prefix=no
16172 need_version=no
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 shlibpath_overrides_runpath=no
16178 # This implies no fast_install, which is unacceptable.
16179 # Some rework will be needed to allow for fast_install
16180 # before this can be enabled.
16181 hardcode_into_libs=yes
16182
16183 # Append ld.so.conf contents to the search path
16184 if test -f /etc/ld.so.conf; then
16024 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16185 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' ' '`
16186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16187 fi
16188
16189 # We used to test for /lib/ld.so.1 and disable shared libraries on
16190 # powerpc, because MkLinux only supported shared libraries with the
16191 # GNU dynamic linker. Since this was broken with cross compilers,
16192 # most powerpc-linux boxes support dynamic linking these days and
16193 # people can always --disable-shared, the test was removed, and we
16194 # assume the GNU/Linux dynamic linker is in use.
16195 dynamic_linker='GNU/Linux ld.so'
16196 ;;
16197
16037knetbsd*-gnu)
16038 version_type=linux
16039 need_lib_prefix=no
16040 need_version=no
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 shlibpath_overrides_runpath=no
16045 hardcode_into_libs=yes
16046 dynamic_linker='GNU ld.so'
16047 ;;
16048
16198netbsd*)
16199 version_type=sunos
16200 need_lib_prefix=no
16201 need_version=no
16202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16205 dynamic_linker='NetBSD (a.out) ld.so'

--- 21 unchanged lines hidden (view full) ---

16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 ;;
16232
16233openbsd*)
16234 version_type=sunos
16235 sys_lib_dlsearch_path_spec="/usr/lib"
16236 need_lib_prefix=no
16237 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16238 case $host_os in
16239 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16240 *) need_version=no ;;
16241 esac
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'

--- 27 unchanged lines hidden (view full) ---

16271 need_version=no
16272 soname_spec='${libname}${release}${shared_ext}$major'
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 shlibpath_var=LD_LIBRARY_PATH
16275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16277 ;;
16278
16129sco3.2v5*)
16130 version_type=osf
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 shlibpath_var=LD_LIBRARY_PATH
16279rdos*)
16280 dynamic_linker=no
16281 ;;
16282
16283solaris*)
16284 version_type=linux
16285 need_lib_prefix=no
16286 need_version=no
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16288 soname_spec='${libname}${release}${shared_ext}$major'

--- 11 unchanged lines hidden (view full) ---

16300 shlibpath_var=LD_LIBRARY_PATH
16301 shlibpath_overrides_runpath=yes
16302 if test "$with_gnu_ld" = yes; then
16303 need_lib_prefix=no
16304 fi
16305 need_version=yes
16306 ;;
16307
16161sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16308sysv4 | sysv4.3*)
16309 version_type=linux
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 shlibpath_var=LD_LIBRARY_PATH
16313 case $host_vendor in
16314 sni)
16315 shlibpath_overrides_runpath=no
16316 need_lib_prefix=no

--- 16 unchanged lines hidden (view full) ---

16333 if test -d /usr/nec ;then
16334 version_type=linux
16335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16336 soname_spec='$libname${shared_ext}.$major'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 fi
16339 ;;
16340
16341sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16342 version_type=freebsd-elf
16343 need_lib_prefix=no
16344 need_version=no
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16346 soname_spec='${libname}${release}${shared_ext}$major'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 hardcode_into_libs=yes
16349 if test "$with_gnu_ld" = yes; then
16350 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16351 shlibpath_overrides_runpath=no
16352 else
16353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16354 shlibpath_overrides_runpath=yes
16355 case $host_os in
16356 sco3.2v5*)
16357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16358 ;;
16359 esac
16360 fi
16361 sys_lib_dlsearch_path_spec='/usr/lib'
16362 ;;
16363
16364uts4*)
16365 version_type=linux
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 ;;
16370
16371*)
16372 dynamic_linker=no
16373 ;;
16374esac
16375{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16376echo "${ECHO_T}$dynamic_linker" >&6; }
16377test "$dynamic_linker" = no && can_build_shared=no
16378
16379if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381else
16382 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16383fi
16384
16385sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16386if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388else
16389 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16390fi
16391
16392sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16393
16394variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16395if test "$GCC" = yes; then
16396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16397fi
16398
16399{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16400echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16401hardcode_action_F77=
16402if test -n "$hardcode_libdir_flag_spec_F77" || \
16403 test -n "$runpath_var_F77" || \
16404 test "X$hardcode_automatic_F77" = "Xyes" ; then
16405
16406 # We can hardcode non-existant directories.

--- 21 unchanged lines hidden (view full) ---

16428 # Fast installation is not supported
16429 enable_fast_install=no
16430elif test "$shlibpath_overrides_runpath" = yes ||
16431 test "$enable_shared" = no; then
16432 # Fast installation is not necessary
16433 enable_fast_install=needless
16434fi
16435
16246striplib=
16247old_striplib=
16248{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16249echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16250if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16253 { echo "$as_me:$LINENO: result: yes" >&5
16254echo "${ECHO_T}yes" >&6; }
16255else
16256# FIXME - insert some real tests, host_os isn't really good enough
16257 case $host_os in
16258 darwin*)
16259 if test -n "$STRIP" ; then
16260 striplib="$STRIP -x"
16261 { echo "$as_me:$LINENO: result: yes" >&5
16262echo "${ECHO_T}yes" >&6; }
16263 else
16264 { echo "$as_me:$LINENO: result: no" >&5
16265echo "${ECHO_T}no" >&6; }
16266fi
16267 ;;
16268 *)
16269 { echo "$as_me:$LINENO: result: no" >&5
16270echo "${ECHO_T}no" >&6; }
16271 ;;
16272 esac
16273fi
16436
16275
16276
16437# The else clause should only fire when bootstrapping the
16438# libtool distribution, otherwise you forgot to ship ltmain.sh
16439# with your package, and you will get complaints that there are
16440# no rules to generate ltmain.sh.
16441if test -f "$ltmain"; then
16442 # See if we are running on zsh, and set the options which allow our commands through
16443 # without removal of \ escapes.
16444 if test -n "${ZSH_VERSION+set}" ; then
16445 setopt NO_GLOB_SUBST
16446 fi
16447 # Now quote all the things that may contain metacharacters while being
16448 # careful not to overquote the AC_SUBSTed values. We take copies of the
16449 # variables and quote the copies for generation of the libtool script.
16290 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16450 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16451 SED SHELL STRIP \
16452 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16453 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16454 deplibs_check_method reload_flag reload_cmds need_locks \
16455 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16456 lt_cv_sys_global_symbol_to_c_name_address \
16457 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16458 old_postinstall_cmds old_postuninstall_cmds \

--- 10 unchanged lines hidden (view full) ---

16469 enable_shared_with_static_runtimes_F77 \
16470 old_archive_cmds_F77 \
16471 old_archive_from_new_cmds_F77 \
16472 predep_objects_F77 \
16473 postdep_objects_F77 \
16474 predeps_F77 \
16475 postdeps_F77 \
16476 compiler_lib_search_path_F77 \
16477 compiler_lib_search_dirs_F77 \
16478 archive_cmds_F77 \
16479 archive_expsym_cmds_F77 \
16480 postinstall_cmds_F77 \
16481 postuninstall_cmds_F77 \
16482 old_archive_from_expsyms_cmds_F77 \
16483 allow_undefined_flag_F77 \
16484 no_undefined_flag_F77 \
16485 export_symbols_cmds_F77 \
16486 hardcode_libdir_flag_spec_F77 \
16487 hardcode_libdir_flag_spec_ld_F77 \
16488 hardcode_libdir_separator_F77 \
16489 hardcode_automatic_F77 \
16490 module_cmds_F77 \
16491 module_expsym_cmds_F77 \
16492 lt_cv_prog_compiler_c_o_F77 \
16493 fix_srcfile_path_F77 \
16494 exclude_expsyms_F77 \
16495 include_expsyms_F77; do
16496
16497 case $var in
16498 old_archive_cmds_F77 | \
16499 old_archive_from_new_cmds_F77 | \
16500 archive_cmds_F77 | \
16501 archive_expsym_cmds_F77 | \

--- 60 unchanged lines hidden (view full) ---

16562
16563# The archiver.
16564AR=$lt_AR
16565AR_FLAGS=$lt_AR_FLAGS
16566
16567# A C compiler.
16568LTCC=$lt_LTCC
16569
16570# LTCC compiler flags.
16571LTCFLAGS=$lt_LTCFLAGS
16572
16573# A language-specific compiler.
16574CC=$lt_compiler_F77
16575
16576# Is the compiler the GNU C compiler?
16577with_gcc=$GCC_F77
16578
16579# An ERE matcher.
16580EGREP=$lt_EGREP

--- 137 unchanged lines hidden (view full) ---

16718# Dependencies to place before the objects being linked to create a
16719# shared library.
16720predeps=$lt_predeps_F77
16721
16722# Dependencies to place after the objects being linked to create a
16723# shared library.
16724postdeps=$lt_postdeps_F77
16725
16726# The directories searched by this compiler when creating a shared
16727# library
16728compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16729
16730# The library search path used internally by the compiler when linking
16731# a shared library.
16732compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16733
16734# Method to check whether dependent libraries are shared objects.
16735deplibs_check_method=$lt_deplibs_check_method
16736
16737# Command to use when deplibs_check_method == file_magic.

--- 72 unchanged lines hidden (view full) ---

16810
16811# Compile-time system search path for libraries
16812sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16813
16814# Run-time system search path for libraries
16815sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16816
16817# Fix the shell variable \$srcfile for the compiler.
16649fix_srcfile_path="$fix_srcfile_path_F77"
16818fix_srcfile_path=$lt_fix_srcfile_path
16819
16820# Set to yes if exported symbols are required.
16821always_export_symbols=$always_export_symbols_F77
16822
16823# The commands to list exported symbols.
16824export_symbols_cmds=$lt_export_symbols_cmds_F77
16825
16826# The commands to extract the exported symbol list from a shared archive.

--- 41 unchanged lines hidden (view full) ---

16868# Source file extension for Java test sources.
16869ac_ext=java
16870
16871# Object file extension for compiled Java test sources.
16872objext=o
16873objext_GCJ=$objext
16874
16875# Code to be used in simple compile tests
16707lt_simple_compile_test_code="class foo {}\n"
16876lt_simple_compile_test_code="class foo {}"
16877
16878# Code to be used in simple link tests
16710lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16879lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16880
16881# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16882
16883# If no C compiler was specified, use CC.
16884LTCC=${LTCC-"$CC"}
16885
16886# If no C compiler flags were specified, use CFLAGS.
16887LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16888
16889# Allow CC to be a program name with arguments.
16890compiler=$CC
16891
16892
16893# save warnings/boilerplate of simple test code
16894ac_outfile=conftest.$ac_objext
16723printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16724eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16895echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16896eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16897_lt_compiler_boilerplate=`cat conftest.err`
16898$rm conftest*
16899
16900ac_outfile=conftest.$ac_objext
16729printf "$lt_simple_link_test_code" >conftest.$ac_ext
16730eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16901echo "$lt_simple_link_test_code" >conftest.$ac_ext
16902eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16903_lt_linker_boilerplate=`cat conftest.err`
16732$rm conftest*
16904$rm -r conftest*
16905
16906
16907# Allow CC to be a program name with arguments.
16908lt_save_CC="$CC"
16909CC=${GCJ-"gcj"}
16910compiler=$CC
16911compiler_GCJ=$CC
16912for cc_temp in $compiler""; do

--- 21 unchanged lines hidden (view full) ---

16934
16935{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16936echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16937if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940 lt_cv_prog_compiler_rtti_exceptions=no
16941 ac_outfile=conftest.$ac_objext
16770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16943 lt_compiler_flag="-fno-rtti -fno-exceptions"
16944 # Insert the option either (1) after the last *FLAGS variable, or
16945 # (2) before a word containing "conftest.", or (3) at the end.
16946 # Note that $ac_compile itself does not contain backslashes and begins
16947 # with a dollar sign (not a hyphen), so the echo should work correctly.
16948 # The option is referenced via a variable to avoid confusing sed.
16949 lt_compile=`echo "$ac_compile" | $SED \
16778 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16952 -e 's:$: $lt_compiler_flag:'`
16781 (eval echo "\"\$as_me:16781: $lt_compile\"" >&5)
16953 (eval echo "\"\$as_me:16953: $lt_compile\"" >&5)
16954 (eval "$lt_compile" 2>conftest.err)
16955 ac_status=$?
16956 cat conftest.err >&5
16785 echo "$as_me:16785: \$? = $ac_status" >&5
16957 echo "$as_me:16957: \$? = $ac_status" >&5
16958 if (exit $ac_status) && test -s "$ac_outfile"; then
16959 # The compiler can only warn and ignore the option if not recognized
16960 # So say no if there are warnings other than the usual output.
16789 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16790 $SED '/^$/d' conftest.err >conftest.er2
16791 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16964 lt_cv_prog_compiler_rtti_exceptions=yes
16965 fi
16966 fi
16967 $rm conftest*
16968
16969fi
16970{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16971echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }

--- 28 unchanged lines hidden (view full) ---

17000
17001 amigaos*)
17002 # FIXME: we need at least 68020 code to build shared libraries, but
17003 # adding the `-m68020' flag to GCC prevents building anything better,
17004 # like `-m68040'.
17005 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17006 ;;
17007
16836 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17009 # PIC is the default for these OSes.
17010 ;;
17011
16840 mingw* | pw32* | os2*)
17012 mingw* | cygwin* | pw32* | os2*)
17013 # This hack is so that the source file can tell whether it is being
17014 # built for inclusion in a dll (and should export symbols for example).
16843 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17015 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17016 # (--disable-auto-import) libraries
17017
17018 ;;
17019
17020 darwin* | rhapsody*)
17021 # PIC is the default on this platform
17022 # Common symbols not allowed in MH_DYLIB files
17023 lt_prog_compiler_pic_GCJ='-fno-common'
17024 ;;
17025
17026 interix[3-9]*)
17027 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17028 # Instead, we relocate shared libraries at runtime.
17029 ;;
17030
17031 msdosdjgpp*)
17032 # Just because we use GCC doesn't mean we suddenly get shared libraries
17033 # on systems that don't support them.
17034 lt_prog_compiler_can_build_shared_GCJ=no
17035 enable_shared=no
17036 ;;
17037
17038 sysv4*MP*)
17039 if test -d /usr/nec; then
17040 lt_prog_compiler_pic_GCJ=-Kconform_pic
17041 fi
17042 ;;
17043
17044 hpux*)
17045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17046 # not for PA HP-UX.
16868 case "$host_cpu" in
17047 case $host_cpu in
17048 hppa*64*|ia64*)
17049 # +Z the default
17050 ;;
17051 *)
17052 lt_prog_compiler_pic_GCJ='-fPIC'
17053 ;;
17054 esac
17055 ;;

--- 20 unchanged lines hidden (view full) ---

17076 case $cc_basename in
17077 xlc*)
17078 lt_prog_compiler_pic_GCJ='-qnocommon'
17079 lt_prog_compiler_wl_GCJ='-Wl,'
17080 ;;
17081 esac
17082 ;;
17083
16905 mingw* | pw32* | os2*)
17084 mingw* | cygwin* | pw32* | os2*)
17085 # This hack is so that the source file can tell whether it is being
17086 # built for inclusion in a dll (and should export symbols for example).
16908 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17087
17088 ;;
17089
17090 hpux9* | hpux10* | hpux11*)
17091 lt_prog_compiler_wl_GCJ='-Wl,'
17092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17093 # not for PA HP-UX.
16915 case "$host_cpu" in
17094 case $host_cpu in
17095 hppa*64*|ia64*)
17096 # +Z the default
17097 ;;
17098 *)
17099 lt_prog_compiler_pic_GCJ='+Z'
17100 ;;
17101 esac
17102 # Is there a better lt_prog_compiler_static that works with the bundled CC?

--- 6 unchanged lines hidden (view full) ---

17109 lt_prog_compiler_static_GCJ='-non_shared'
17110 ;;
17111
17112 newsos6)
17113 lt_prog_compiler_pic_GCJ='-KPIC'
17114 lt_prog_compiler_static_GCJ='-Bstatic'
17115 ;;
17116
16938 linux*)
17117 linux* | k*bsd*-gnu)
17118 case $cc_basename in
17119 icc* | ecc*)
17120 lt_prog_compiler_wl_GCJ='-Wl,'
17121 lt_prog_compiler_pic_GCJ='-KPIC'
17122 lt_prog_compiler_static_GCJ='-static'
17123 ;;
16945 pgcc* | pgf77* | pgf90*)
17124 pgcc* | pgf77* | pgf90* | pgf95*)
17125 # Portland Group compilers (*not* the Pentium gcc compiler,
17126 # which looks to be a dead project)
17127 lt_prog_compiler_wl_GCJ='-Wl,'
17128 lt_prog_compiler_pic_GCJ='-fpic'
16950 lt_prog_compiler_static_GCJ='-static'
17129 lt_prog_compiler_static_GCJ='-Bstatic'
17130 ;;
17131 ccc*)
17132 lt_prog_compiler_wl_GCJ='-Wl,'
17133 # All Alpha code is PIC.
17134 lt_prog_compiler_static_GCJ='-non_shared'
17135 ;;
17136 *)
17137 case `$CC -V 2>&1 | sed 5q` in
17138 *Sun\ C*)
17139 # Sun C 5.9
17140 lt_prog_compiler_pic_GCJ='-KPIC'
17141 lt_prog_compiler_static_GCJ='-Bstatic'
17142 lt_prog_compiler_wl_GCJ='-Wl,'
17143 ;;
17144 *Sun\ F*)
17145 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17146 lt_prog_compiler_pic_GCJ='-KPIC'
17147 lt_prog_compiler_static_GCJ='-Bstatic'
17148 lt_prog_compiler_wl_GCJ=''
17149 ;;
17150 esac
17151 ;;
17152 esac
17153 ;;
17154
17155 osf3* | osf4* | osf5*)
17156 lt_prog_compiler_wl_GCJ='-Wl,'
17157 # All OSF/1 code is PIC.
17158 lt_prog_compiler_static_GCJ='-non_shared'
17159 ;;
17160
16966 sco3.2v5*)
16967 lt_prog_compiler_pic_GCJ='-Kpic'
16968 lt_prog_compiler_static_GCJ='-dn'
17161 rdos*)
17162 lt_prog_compiler_static_GCJ='-non_shared'
17163 ;;
17164
17165 solaris*)
17166 lt_prog_compiler_pic_GCJ='-KPIC'
17167 lt_prog_compiler_static_GCJ='-Bstatic'
17168 case $cc_basename in
17169 f77* | f90* | f95*)
17170 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17171 *)
17172 lt_prog_compiler_wl_GCJ='-Wl,';;
17173 esac
17174 ;;
17175
17176 sunos4*)
17177 lt_prog_compiler_wl_GCJ='-Qoption ld '
17178 lt_prog_compiler_pic_GCJ='-PIC'
17179 lt_prog_compiler_static_GCJ='-Bstatic'
17180 ;;
17181
16988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17182 sysv4 | sysv4.2uw2* | sysv4.3*)
17183 lt_prog_compiler_wl_GCJ='-Wl,'
17184 lt_prog_compiler_pic_GCJ='-KPIC'
17185 lt_prog_compiler_static_GCJ='-Bstatic'
17186 ;;
17187
17188 sysv4*MP*)
17189 if test -d /usr/nec ;then
17190 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17191 lt_prog_compiler_static_GCJ='-Bstatic'
17192 fi
17193 ;;
17194
17195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17196 lt_prog_compiler_wl_GCJ='-Wl,'
17197 lt_prog_compiler_pic_GCJ='-KPIC'
17198 lt_prog_compiler_static_GCJ='-Bstatic'
17199 ;;
17200
17201 unicos*)
17202 lt_prog_compiler_wl_GCJ='-Wl,'
17203 lt_prog_compiler_can_build_shared_GCJ=no
17204 ;;
17205
17206 uts4*)
17207 lt_prog_compiler_pic_GCJ='-pic'
17208 lt_prog_compiler_static_GCJ='-Bstatic'

--- 10 unchanged lines hidden (view full) ---

17219
17220#
17221# Check to make sure the PIC flag actually works.
17222#
17223if test -n "$lt_prog_compiler_pic_GCJ"; then
17224
17225{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17226echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17027if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17227if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17030 lt_prog_compiler_pic_works_GCJ=no
17230 lt_cv_prog_compiler_pic_works_GCJ=no
17231 ac_outfile=conftest.$ac_objext
17032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17233 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17234 # Insert the option either (1) after the last *FLAGS variable, or
17235 # (2) before a word containing "conftest.", or (3) at the end.
17236 # Note that $ac_compile itself does not contain backslashes and begins
17237 # with a dollar sign (not a hyphen), so the echo should work correctly.
17238 # The option is referenced via a variable to avoid confusing sed.
17239 lt_compile=`echo "$ac_compile" | $SED \
17040 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17242 -e 's:$: $lt_compiler_flag:'`
17043 (eval echo "\"\$as_me:17043: $lt_compile\"" >&5)
17243 (eval echo "\"\$as_me:17243: $lt_compile\"" >&5)
17244 (eval "$lt_compile" 2>conftest.err)
17245 ac_status=$?
17246 cat conftest.err >&5
17047 echo "$as_me:17047: \$? = $ac_status" >&5
17247 echo "$as_me:17247: \$? = $ac_status" >&5
17248 if (exit $ac_status) && test -s "$ac_outfile"; then
17249 # The compiler can only warn and ignore the option if not recognized
17250 # So say no if there are warnings other than the usual output.
17051 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17052 $SED '/^$/d' conftest.err >conftest.er2
17053 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17054 lt_prog_compiler_pic_works_GCJ=yes
17251 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17254 lt_cv_prog_compiler_pic_works_GCJ=yes
17255 fi
17256 fi
17257 $rm conftest*
17258
17259fi
17060{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17061echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17260{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17261echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17262
17063if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17263if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17264 case $lt_prog_compiler_pic_GCJ in
17265 "" | " "*) ;;
17266 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17267 esac
17268else
17269 lt_prog_compiler_pic_GCJ=
17270 lt_prog_compiler_can_build_shared_GCJ=no
17271fi
17272
17273fi
17074case "$host_os" in
17274case $host_os in
17275 # For platforms which do not support PIC, -DPIC is meaningless:
17276 *djgpp*)
17277 lt_prog_compiler_pic_GCJ=
17278 ;;
17279 *)
17280 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17281 ;;
17282esac
17283
17284#
17285# Check to make sure the static flag actually works.
17286#
17287wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17288{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17289echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17290if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17292else
17293 lt_cv_prog_compiler_static_works_GCJ=no
17294 save_LDFLAGS="$LDFLAGS"
17295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17298 # The linker can only warn and ignore the option if not recognized
17299 # So say no if there are warnings
17300 if test -s conftest.err; then
17301 # Append any errors to the config.log.
17302 cat conftest.err 1>&5
17303 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17305 if diff conftest.exp conftest.er2 >/dev/null; then
17306 lt_cv_prog_compiler_static_works_GCJ=yes
17307 fi
17308 else
17309 lt_cv_prog_compiler_static_works_GCJ=yes
17310 fi
17311 fi
17312 $rm -r conftest*
17313 LDFLAGS="$save_LDFLAGS"
17314
17315fi
17316{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17317echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17318
17319if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17320 :
17321else
17322 lt_prog_compiler_static_GCJ=
17323fi
17324
17325
17326{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17327echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17328if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330else
17331 lt_cv_prog_compiler_c_o_GCJ=no
17332 $rm -r conftest 2>/dev/null
17333 mkdir conftest
17334 cd conftest
17335 mkdir out
17094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17337
17338 lt_compiler_flag="-o out/conftest2.$ac_objext"
17339 # Insert the option either (1) after the last *FLAGS variable, or
17340 # (2) before a word containing "conftest.", or (3) at the end.
17341 # Note that $ac_compile itself does not contain backslashes and begins
17342 # with a dollar sign (not a hyphen), so the echo should work correctly.
17343 lt_compile=`echo "$ac_compile" | $SED \
17102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17346 -e 's:$: $lt_compiler_flag:'`
17105 (eval echo "\"\$as_me:17105: $lt_compile\"" >&5)
17347 (eval echo "\"\$as_me:17347: $lt_compile\"" >&5)
17348 (eval "$lt_compile" 2>out/conftest.err)
17349 ac_status=$?
17350 cat out/conftest.err >&5
17109 echo "$as_me:17109: \$? = $ac_status" >&5
17351 echo "$as_me:17351: \$? = $ac_status" >&5
17352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17353 then
17354 # The compiler can only warn and ignore the option if not recognized
17355 # So say no if there are warnings
17114 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17115 $SED '/^$/d' out/conftest.err >out/conftest.er2
17116 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17356 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17359 lt_cv_prog_compiler_c_o_GCJ=yes
17360 fi
17361 fi
17120 chmod u+w .
17362 chmod u+w . 2>&5
17363 $rm conftest*
17364 # SGI C++ compiler will create directory out/ii_files/ for
17365 # template instantiation
17366 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17367 $rm out/* && rmdir out
17368 cd ..
17369 rmdir conftest
17370 $rm conftest*

--- 52 unchanged lines hidden (view full) ---

17423 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17424 # include_expsyms should be a list of space-separated symbols to be *always*
17425 # included in the symbol list
17426 include_expsyms_GCJ=
17427 # exclude_expsyms can be an extended regexp of symbols to exclude
17428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17430 # as well as any symbol that contains `d'.
17189 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17431 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17433 # platforms (ab)use it in PIC code, but their linkers get confused if
17434 # the symbol is explicitly referenced. Since portable code cannot
17435 # rely on this symbol name, it's probably fine to never include it in
17436 # preloaded symbol tables.
17437 # Exclude shared library initialization/finalization symbols.
17438 extract_expsyms_cmds=
17439 # Just being paranoid about ensuring that cc_basename is set.
17440 for cc_temp in $compiler""; do
17441 case $cc_temp in
17442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17444 \-*) ;;
17445 *) break;;

--- 5 unchanged lines hidden (view full) ---

17451 cygwin* | mingw* | pw32*)
17452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17453 # When not using gcc, we currently assume that we are using
17454 # Microsoft Visual C++.
17455 if test "$GCC" != yes; then
17456 with_gnu_ld=no
17457 fi
17458 ;;
17459 interix*)
17460 # we just hope/assume this is gcc and not c89 (= MSVC++)
17461 with_gnu_ld=yes
17462 ;;
17463 openbsd*)
17464 with_gnu_ld=no
17465 ;;
17466 esac
17467
17468 ld_shlibs_GCJ=yes
17469 if test "$with_gnu_ld" = yes; then
17470 # If archive_cmds runs LD, not CC, wlarc should be empty

--- 17 unchanged lines hidden (view full) ---

17488 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17489 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17490 *\ 2.11.*) ;; # other 2.11 versions
17491 *) supports_anon_versioning=yes ;;
17492 esac
17493
17494 # See if GNU ld supports shared libraries.
17495 case $host_os in
17249 aix3* | aix4* | aix5*)
17496 aix[3-9]*)
17497 # On AIX/PPC, the GNU linker is very broken
17498 if test "$host_cpu" != ia64; then
17499 ld_shlibs_GCJ=no
17500 cat <<EOF 1>&2
17501
17502*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17503*** to be unable to reliably create shared libraries on AIX.
17504*** Therefore, libtool is disabling shared libraries support. If you

--- 31 unchanged lines hidden (view full) ---

17536
17537 cygwin* | mingw* | pw32*)
17538 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17539 # as there is no search path for DLLs.
17540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541 allow_undefined_flag_GCJ=unsupported
17542 always_export_symbols_GCJ=no
17543 enable_shared_with_static_runtimes_GCJ=yes
17297 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17544 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17545
17546 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17300 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17547 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17548 # If the export-symbols file already is a .def file (1st line
17549 # is EXPORTS), use it as is; otherwise, prepend...
17550 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17551 cp $export_symbols $output_objdir/$soname.def;
17552 else
17553 echo EXPORTS > $output_objdir/$soname.def;
17554 cat $export_symbols >> $output_objdir/$soname.def;
17555 fi~
17309 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17556 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17557 else
17558 ld_shlibs_GCJ=no
17559 fi
17560 ;;
17561
17315 linux*)
17562 interix[3-9]*)
17563 hardcode_direct_GCJ=no
17564 hardcode_shlibpath_var_GCJ=no
17565 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17566 export_dynamic_flag_spec_GCJ='${wl}-E'
17567 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17568 # Instead, shared libraries are loaded at an image base (0x10000000 by
17569 # default) and relocated if they conflict, which is a slow very memory
17570 # consuming and fragmenting process. To avoid this, we pick a random,
17571 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17572 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17573 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17574 archive_expsym_cmds_GCJ='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'
17575 ;;
17576
17577 gnu* | linux* | k*bsd*-gnu)
17578 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17579 tmp_addflag=
17580 case $cc_basename,$host_cpu in
17581 pgcc*) # Portland Group C compiler
17320 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17582 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17583 tmp_addflag=' $pic_flag'
17584 ;;
17323 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
17324 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17585 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17586 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17587 tmp_addflag=' $pic_flag -Mnomain' ;;
17588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17589 tmp_addflag=' -i_dynamic' ;;
17590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17591 tmp_addflag=' -i_dynamic -nofor_main' ;;
17592 ifc* | ifort*) # Intel Fortran compiler
17593 tmp_addflag=' -nofor_main' ;;
17594 esac
17333 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17595 case `$CC -V 2>&1 | sed 5q` in
17596 *Sun\ C*) # Sun C 5.9
17597 whole_archive_flag_spec_GCJ='${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'
17598 tmp_sharedflag='-G' ;;
17599 *Sun\ F*) # Sun Fortran 8.3
17600 tmp_sharedflag='-G' ;;
17601 *)
17602 tmp_sharedflag='-shared' ;;
17603 esac
17604 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17605
17606 if test $supports_anon_versioning = yes; then
17607 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17609 $echo "local: *; };" >> $output_objdir/$libname.ver~
17339 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17611 fi
17612 else
17613 ld_shlibs_GCJ=no
17614 fi
17615 ;;
17616
17617 netbsd*)
17618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17619 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17620 wlarc=
17621 else
17622 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17624 fi
17625 ;;
17626
17356 solaris* | sysv5*)
17627 solaris*)
17628 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17629 ld_shlibs_GCJ=no
17630 cat <<EOF 1>&2
17631
17632*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17633*** create shared libraries on Solaris systems. Therefore, libtool
17634*** is disabling shared libraries support. We urge you to upgrade GNU
17635*** binutils to release 2.9.1 or newer. Another option is to modify

--- 4 unchanged lines hidden (view full) ---

17640 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17641 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17643 else
17644 ld_shlibs_GCJ=no
17645 fi
17646 ;;
17647
17648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17649 case `$LD -v 2>&1` in
17650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17651 ld_shlibs_GCJ=no
17652 cat <<_LT_EOF 1>&2
17653
17654*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17655*** reliably create shared libraries on SCO systems. Therefore, libtool
17656*** is disabling shared libraries support. We urge you to upgrade GNU
17657*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17658*** your PATH or compiler configuration so that the native linker is
17659*** used, and then restart.
17660
17661_LT_EOF
17662 ;;
17663 *)
17664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17665 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17666 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17667 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17668 else
17669 ld_shlibs_GCJ=no
17670 fi
17671 ;;
17672 esac
17673 ;;
17674
17675 sunos4*)
17676 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17677 wlarc=
17678 hardcode_direct_GCJ=yes
17679 hardcode_shlibpath_var_GCJ=no
17680 ;;
17681
17682 *)

--- 17 unchanged lines hidden (view full) ---

17700 case $host_os in
17701 aix3*)
17702 allow_undefined_flag_GCJ=unsupported
17703 always_export_symbols_GCJ=yes
17704 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17705 # Note: this linker hardcodes the directories in LIBPATH if there
17706 # are no directories specified by -L.
17707 hardcode_minus_L_GCJ=yes
17410 if test "$GCC" = yes && test -z "$link_static_flag"; then
17708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17709 # Neither direct hardcoding nor static linking is supported with a
17710 # broken collect2.
17711 hardcode_direct_GCJ=unsupported
17712 fi
17713 ;;
17714
17417 aix4* | aix5*)
17715 aix[4-9]*)
17716 if test "$host_cpu" = ia64; then
17717 # On IA64, the linker does run time linking by default, so we don't
17718 # have to do anything special.
17719 aix_use_runtimelinking=no
17720 exp_sym_flag='-Bexport'
17721 no_entry_flag=""
17722 else
17723 # If we're using GNU nm, then we don't want the "-C" option.
17724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17726 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17727 else
17728 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17729 fi
17730 aix_use_runtimelinking=no
17731
17732 # Test if we are trying to use run time linking or normal
17733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17734 # need to do runtime linking.
17437 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17736 for ld_flag in $LDFLAGS; do
17737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17738 aix_use_runtimelinking=yes
17739 break
17740 fi
17741 done
17742 ;;
17743 esac
17744
17745 exp_sym_flag='-bexport'
17746 no_entry_flag='-bnoentry'
17747 fi
17748
17749 # When large executables or shared objects are built, AIX ld can
17750 # have problems creating the table of contents. If linking a library

--- 10 unchanged lines hidden (view full) ---

17761 case $host_os in aix4.[012]|aix4.[012].*)
17762 # We only want to do this on AIX 4.2 and lower, the check
17763 # below for broken collect2 doesn't work under 4.3+
17764 collect2name=`${CC} -print-prog-name=collect2`
17765 if test -f "$collect2name" && \
17766 strings "$collect2name" | grep resolve_lib_name >/dev/null
17767 then
17768 # We have reworked collect2
17470 hardcode_direct_GCJ=yes
17769 :
17770 else
17771 # We have old collect2
17772 hardcode_direct_GCJ=unsupported
17773 # It fails to find uninstalled libraries when the uninstalled
17774 # path is not listed in the libpath. Setting hardcode_minus_L
17775 # to unsupported forces relinking
17776 hardcode_minus_L_GCJ=yes
17777 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17778 hardcode_libdir_separator_GCJ=
17779 fi
17780 ;;
17781 esac
17782 shared_flag='-shared'
17783 if test "$aix_use_runtimelinking" = yes; then
17784 shared_flag="$shared_flag "'${wl}-G'
17785 fi
17786 else
17787 # not using gcc
17788 if test "$host_cpu" = ia64; then
17789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17790 # chokes on -Wl,-G. The following line is correct:
17791 shared_flag='-G'
17792 else
17493 if test "$aix_use_runtimelinking" = yes; then
17793 if test "$aix_use_runtimelinking" = yes; then
17794 shared_flag='${wl}-G'
17795 else
17796 shared_flag='${wl}-bM:SRE'
17497 fi
17797 fi
17798 fi
17799 fi
17800
17801 # It seems that -bexpall does not export symbols beginning with
17802 # underscore (_), so it is better to generate a list of symbols to export.
17803 always_export_symbols_GCJ=yes
17804 if test "$aix_use_runtimelinking" = yes; then
17805 # Warning - without using the other runtime loading flags (-brtl),

--- 29 unchanged lines hidden (view full) ---

17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } && {
17838 test -z "$ac_c_werror_flag" ||
17839 test ! -s conftest.err
17840 } && test -s conftest$ac_exeext &&
17841 $as_test_x conftest$ac_exeext; then
17842
17543aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17544}'`
17843lt_aix_libpath_sed='
17844 /Import File Strings/,/^$/ {
17845 /^0/ {
17846 s/^0 *\(.*\)$/\1/
17847 p
17848 }
17849 }'
17850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17851# Check for a 64-bit object if we didn't find anything.
17546if 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; }
17547}'`; fi
17852if test -z "$aix_libpath"; then
17853 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17854fi
17855else
17856 echo "$as_me: failed program was:" >&5
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
17859
17860fi
17861
17862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17863 conftest$ac_exeext conftest.$ac_ext
17864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17865
17866 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17560 archive_expsym_cmds_GCJ="\$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"
17867 archive_expsym_cmds_GCJ="\$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"
17868 else
17869 if test "$host_cpu" = ia64; then
17870 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17871 allow_undefined_flag_GCJ="-z nodefs"
17565 archive_expsym_cmds_GCJ="\$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"
17872 archive_expsym_cmds_GCJ="\$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"
17873 else
17874 # Determine the default libpath from the value encoded in an empty executable.
17875 cat >conftest.$ac_ext <<_ACEOF
17876/* confdefs.h. */
17877_ACEOF
17878cat confdefs.h >>conftest.$ac_ext
17879cat >>conftest.$ac_ext <<_ACEOF
17880/* end confdefs.h. */

--- 20 unchanged lines hidden (view full) ---

17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } && {
17904 test -z "$ac_c_werror_flag" ||
17905 test ! -s conftest.err
17906 } && test -s conftest$ac_exeext &&
17907 $as_test_x conftest$ac_exeext; then
17908
17602aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17603}'`
17909lt_aix_libpath_sed='
17910 /Import File Strings/,/^$/ {
17911 /^0/ {
17912 s/^0 *\(.*\)$/\1/
17913 p
17914 }
17915 }'
17916aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17917# Check for a 64-bit object if we didn't find anything.
17605if 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; }
17606}'`; fi
17918if test -z "$aix_libpath"; then
17919 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17920fi
17921else
17922 echo "$as_me: failed program was:" >&5
17923sed 's/^/| /' conftest.$ac_ext >&5
17924
17925
17926fi
17927
17928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17929 conftest$ac_exeext conftest.$ac_ext
17930if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17931
17932 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17933 # Warning - without using the other run time loading flags,
17934 # -berok will link without error, but may produce a broken library.
17935 no_undefined_flag_GCJ=' ${wl}-bernotok'
17936 allow_undefined_flag_GCJ=' ${wl}-berok'
17623 # -bexpall does not export symbols beginning with underscore (_)
17624 always_export_symbols_GCJ=yes
17937 # Exported symbols can be pulled into shared objects from archives
17626 whole_archive_flag_spec_GCJ=' '
17938 whole_archive_flag_spec_GCJ='$convenience'
17939 archive_cmds_need_lc_GCJ=yes
17628 # This is similar to how AIX traditionally builds it's shared libraries.
17629 archive_expsym_cmds_GCJ="\$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'
17940 # This is similar to how AIX traditionally builds its shared libraries.
17941 archive_expsym_cmds_GCJ="\$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'
17942 fi
17943 fi
17944 ;;
17945
17946 amigaos*)
17947 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17949 hardcode_minus_L_GCJ=yes

--- 16 unchanged lines hidden (view full) ---

17966 libext=lib
17967 # Tell ltmain to make .dll files, not .so files.
17968 shrext_cmds=".dll"
17969 # FIXME: Setting linknames here is a bad hack.
17970 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17971 # The linker will automatically build a .lib file if we build a DLL.
17972 old_archive_From_new_cmds_GCJ='true'
17973 # FIXME: Should let the user specify the lib program.
17662 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17974 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17975 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17976 enable_shared_with_static_runtimes_GCJ=yes
17977 ;;
17978
17979 darwin* | rhapsody*)
17668 case "$host_os" in
17980 case $host_os in
17981 rhapsody* | darwin1.[012])
17982 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17983 ;;
17984 *) # Darwin 1.3 on
17985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17986 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17987 else
17988 case ${MACOSX_DEPLOYMENT_TARGET} in

--- 10 unchanged lines hidden (view full) ---

17999 archive_cmds_need_lc_GCJ=no
18000 hardcode_direct_GCJ=no
18001 hardcode_automatic_GCJ=yes
18002 hardcode_shlibpath_var_GCJ=unsupported
18003 whole_archive_flag_spec_GCJ=''
18004 link_all_deplibs_GCJ=yes
18005 if test "$GCC" = yes ; then
18006 output_verbose_link_cmd='echo'
17695 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17696 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17698 archive_expsym_cmds_GCJ='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}'
17699 module_expsym_cmds_GCJ='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}'
18007 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18008 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18009 archive_expsym_cmds_GCJ="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}"
18010 module_expsym_cmds_GCJ="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}"
18011 else
18012 case $cc_basename in
18013 xlc*)
18014 output_verbose_link_cmd='echo'
17704 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18015 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18016 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17706 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17707 archive_expsym_cmds_GCJ='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18018 archive_expsym_cmds_GCJ='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}'
18019 module_expsym_cmds_GCJ='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}'
18020 ;;
18021 *)
18022 ld_shlibs_GCJ=no
18023 ;;
18024 esac
18025 fi
18026 ;;

--- 23 unchanged lines hidden (view full) ---

18050 freebsd2*)
18051 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18052 hardcode_direct_GCJ=yes
18053 hardcode_minus_L_GCJ=yes
18054 hardcode_shlibpath_var_GCJ=no
18055 ;;
18056
18057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17747 freebsd* | kfreebsd*-gnu | dragonfly*)
18058 freebsd* | dragonfly*)
18059 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18061 hardcode_direct_GCJ=yes
18062 hardcode_shlibpath_var_GCJ=no
18063 ;;
18064
18065 hpux9*)
18066 if test "$GCC" = yes; then

--- 6 unchanged lines hidden (view full) ---

18073 hardcode_direct_GCJ=yes
18074
18075 # hardcode_minus_L: Not really in the search PATH,
18076 # but as the default location of the library.
18077 hardcode_minus_L_GCJ=yes
18078 export_dynamic_flag_spec_GCJ='${wl}-E'
18079 ;;
18080
17770 hpux10* | hpux11*)
18081 hpux10*)
18082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17772 case "$host_cpu" in
17773 hppa*64*|ia64*)
18083 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18084 else
18085 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18086 fi
18087 if test "$with_gnu_ld" = no; then
18088 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18089 hardcode_libdir_separator_GCJ=:
18090
18091 hardcode_direct_GCJ=yes
18092 export_dynamic_flag_spec_GCJ='${wl}-E'
18093
18094 # hardcode_minus_L: Not really in the search PATH,
18095 # but as the default location of the library.
18096 hardcode_minus_L_GCJ=yes
18097 fi
18098 ;;
18099
18100 hpux11*)
18101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18102 case $host_cpu in
18103 hppa*64*)
18104 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 ;;
18106 ia64*)
18107 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18108 ;;
18109 *)
18110 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18111 ;;
18112 esac
18113 else
17781 case "$host_cpu" in
17782 hppa*64*|ia64*)
17783 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18114 case $host_cpu in
18115 hppa*64*)
18116 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18117 ;;
18118 ia64*)
18119 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18120 ;;
18121 *)
17786 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18122 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18123 ;;
18124 esac
18125 fi
18126 if test "$with_gnu_ld" = no; then
17791 case "$host_cpu" in
17792 hppa*64*)
17793 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18127 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18128 hardcode_libdir_separator_GCJ=:
18129
18130 case $host_cpu in
18131 hppa*64*|ia64*)
18132 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17795 hardcode_libdir_separator_GCJ=:
18133 hardcode_direct_GCJ=no
18134 hardcode_shlibpath_var_GCJ=no
18135 ;;
17799 ia64*)
17800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17801 hardcode_direct_GCJ=no
17802 hardcode_shlibpath_var_GCJ=no
17803
17804 # hardcode_minus_L: Not really in the search PATH,
17805 # but as the default location of the library.
17806 hardcode_minus_L_GCJ=yes
17807 ;;
18136 *)
17809 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17810 hardcode_libdir_separator_GCJ=:
18137 hardcode_direct_GCJ=yes
18138 export_dynamic_flag_spec_GCJ='${wl}-E'
18139
18140 # hardcode_minus_L: Not really in the search PATH,
18141 # but as the default location of the library.
18142 hardcode_minus_L_GCJ=yes
18143 ;;
18144 esac

--- 27 unchanged lines hidden (view full) ---

18172 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18173 hardcode_direct_GCJ=yes
18174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18175 hardcode_libdir_separator_GCJ=:
18176 hardcode_shlibpath_var_GCJ=no
18177 ;;
18178
18179 openbsd*)
17854 hardcode_direct_GCJ=yes
17855 hardcode_shlibpath_var_GCJ=no
17856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17857 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17858 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17859 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17860 export_dynamic_flag_spec_GCJ='${wl}-E'
18180 if test -f /usr/libexec/ld.so; then
18181 hardcode_direct_GCJ=yes
18182 hardcode_shlibpath_var_GCJ=no
18183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18184 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18185 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18187 export_dynamic_flag_spec_GCJ='${wl}-E'
18188 else
18189 case $host_os in
18190 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18191 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18192 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18193 ;;
18194 *)
18195 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18197 ;;
18198 esac
18199 fi
18200 else
17862 case $host_os in
17863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17864 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17865 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17866 ;;
17867 *)
17868 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17869 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17870 ;;
17871 esac
18201 ld_shlibs_GCJ=no
18202 fi
18203 ;;
18204
18205 os2*)
18206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18207 hardcode_minus_L_GCJ=yes
18208 allow_undefined_flag_GCJ=unsupported
18209 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'

--- 24 unchanged lines hidden (view full) ---

18234 $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'
18235
18236 # Both c and cxx compiler support -rpath directly
18237 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18238 fi
18239 hardcode_libdir_separator_GCJ=:
18240 ;;
18241
17912 sco3.2v5*)
17913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17914 hardcode_shlibpath_var_GCJ=no
17915 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17916 runpath_var=LD_RUN_PATH
17917 hardcode_runpath_var=yes
17918 ;;
17919
18242 solaris*)
18243 no_undefined_flag_GCJ=' -z text'
18244 if test "$GCC" = yes; then
18245 wlarc='${wl}'
18246 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18248 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18249 else
18250 wlarc=''
18251 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18253 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18254 fi
18255 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18256 hardcode_shlibpath_var_GCJ=no
18257 case $host_os in
18258 solaris2.[0-5] | solaris2.[0-5].*) ;;
18259 *)
17938 # The compiler driver will combine linker options so we
17939 # cannot just pass the convience library names through
17940 # without $wl, iff we do not link with $LD.
17941 # Luckily, gcc supports the same syntax we need for Sun Studio.
18260 # The compiler driver will combine and reorder linker options,
18261 # but understands `-z linker_flag'. GCC discards it without `$wl',
18262 # but is careful enough not to reorder.
18263 # Supported since Solaris 2.6 (maybe 2.5.1?)
17943 case $wlarc in
17944 '')
17945 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17946 *)
17947 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17948 esac ;;
18264 if test "$GCC" = yes; then
18265 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18266 else
18267 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18268 fi
18269 ;;
18270 esac
18271 link_all_deplibs_GCJ=yes
18272 ;;
18273
18274 sunos4*)
18275 if test "x$host_vendor" = xsequent; then
18276 # Use $CC to link under sequent, because it throws in some extra .o
18277 # files that make .init and .fini sections work.

--- 40 unchanged lines hidden (view full) ---

18318 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18319 hardcode_shlibpath_var_GCJ=no
18320 runpath_var=LD_RUN_PATH
18321 hardcode_runpath_var=yes
18322 ld_shlibs_GCJ=yes
18323 fi
18324 ;;
18325
18005 sysv4.2uw2*)
18006 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18007 hardcode_direct_GCJ=yes
18008 hardcode_minus_L_GCJ=no
18326 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18327 no_undefined_flag_GCJ='${wl}-z,text'
18328 archive_cmds_need_lc_GCJ=no
18329 hardcode_shlibpath_var_GCJ=no
18010 hardcode_runpath_var=yes
18011 runpath_var=LD_RUN_PATH
18012 ;;
18330 runpath_var='LD_RUN_PATH'
18331
18014 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18015 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18332 if test "$GCC" = yes; then
18017 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18333 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18334 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18335 else
18019 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18336 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18337 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18338 fi
18021 runpath_var='LD_RUN_PATH'
18022 hardcode_shlibpath_var_GCJ=no
18339 ;;
18340
18025 sysv5*)
18026 no_undefined_flag_GCJ=' -z text'
18027 # $CC -shared without GNU ld will not create a library from C++
18028 # object files and a static libstdc++, better avoid it by now
18029 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18032 hardcode_libdir_flag_spec_GCJ=
18341 sysv5* | sco3.2v5* | sco5v6*)
18342 # Note: We can NOT use -z defs as we might desire, because we do not
18343 # link with -lc, and that would cause any symbols used from libc to
18344 # always be unresolved, which means just about no library would
18345 # ever link correctly. If we're not using GNU ld we use -z text
18346 # though, which does catch some bad symbols but isn't as heavy-handed
18347 # as -z defs.
18348 no_undefined_flag_GCJ='${wl}-z,text'
18349 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18350 archive_cmds_need_lc_GCJ=no
18351 hardcode_shlibpath_var_GCJ=no
18352 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18353 hardcode_libdir_separator_GCJ=':'
18354 link_all_deplibs_GCJ=yes
18355 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18356 runpath_var='LD_RUN_PATH'
18357
18358 if test "$GCC" = yes; then
18359 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18360 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18361 else
18362 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18363 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18364 fi
18365 ;;
18366
18367 uts4*)
18368 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18370 hardcode_shlibpath_var_GCJ=no
18371 ;;
18372
18373 *)
18374 ld_shlibs_GCJ=no
18375 ;;
18376 esac
18377 fi
18378
18379{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18380echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18381test "$ld_shlibs_GCJ" = no && can_build_shared=no
18382
18053variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18054if test "$GCC" = yes; then
18055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18056fi
18057
18383#
18384# Do we need to explicitly link libc?
18385#
18386case "x$archive_cmds_need_lc_GCJ" in
18387x|xyes)
18388 # Assume -lc should be added
18389 archive_cmds_need_lc_GCJ=yes
18390

--- 4 unchanged lines hidden (view full) ---

18395 ;;
18396 '$CC '*)
18397 # Test whether the compiler implicitly links with -lc since on some
18398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18399 # to ld, don't add -lc before -lgcc.
18400 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18401echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18402 $rm conftest*
18078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18404
18405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18406 (eval $ac_compile) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } 2>conftest.err; then
18410 soname=conftest
18411 lib=conftest
18412 libobjs=conftest.$ac_objext
18413 deplibs=
18414 wl=$lt_prog_compiler_wl_GCJ
18415 pic_flag=$lt_prog_compiler_pic_GCJ
18416 compiler_flags=-v
18417 linker_flags=-v
18418 verstring=
18419 output_objdir=.
18420 libname=conftest
18421 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18422 allow_undefined_flag_GCJ=
18423 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5

--- 29 unchanged lines hidden (view full) ---

18453postuninstall_cmds=
18454finish_cmds=
18455finish_eval=
18456shlibpath_var=
18457shlibpath_overrides_runpath=unknown
18458version_type=none
18459dynamic_linker="$host_os ld.so"
18460sys_lib_dlsearch_path_spec="/lib /usr/lib"
18135if test "$GCC" = yes; then
18136 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18137 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18138 # if the path contains ";" then we assume it to be the separator
18139 # otherwise default to the standard path separator (i.e. ":") - it is
18140 # assumed that no part of a normal pathname contains ";" but that should
18141 # okay in the real world where ";" in dirpaths is itself problematic.
18142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18143 else
18144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18145 fi
18146else
18147 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18148fi
18461
18462need_lib_prefix=unknown
18463hardcode_into_libs=no
18464
18465# when you set need_version to no, make sure it does not cause -set_version
18466# flags to be left without arguments
18467need_version=unknown
18468
18469case $host_os in
18470aix3*)
18471 version_type=linux
18472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18473 shlibpath_var=LIBPATH
18474
18475 # AIX 3 has no versioning support, so we append a major version to the name.
18476 soname_spec='${libname}${release}${shared_ext}$major'
18477 ;;
18478
18166aix4* | aix5*)
18479aix[4-9]*)
18480 version_type=linux
18481 need_lib_prefix=no
18482 need_version=no
18483 hardcode_into_libs=yes
18484 if test "$host_cpu" = ia64; then
18485 # AIX 5 supports IA64
18486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18487 shlibpath_var=LD_LIBRARY_PATH

--- 67 unchanged lines hidden (view full) ---

18555 case $GCC,$host_os in
18556 yes,cygwin* | yes,mingw* | yes,pw32*)
18557 library_names_spec='$libname.dll.a'
18558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18559 postinstall_cmds='base_file=`basename \${file}`~
18560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18561 dldir=$destdir/`dirname \$dlpath`~
18562 test -d \$dldir || mkdir -p \$dldir~
18250 $install_prog $dir/$dlname \$dldir/$dlname'
18563 $install_prog $dir/$dlname \$dldir/$dlname~
18564 chmod a+x \$dldir/$dlname'
18565 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18566 dlpath=$dir/\$dldll~
18567 $rm \$dlpath'
18568 shlibpath_overrides_runpath=yes
18569
18570 case $host_os in
18571 cygwin*)
18572 # Cygwin DLLs use 'cyg' prefix rather than 'lib'

--- 36 unchanged lines hidden (view full) ---

18609 dynamic_linker="$host_os dyld"
18610 version_type=darwin
18611 need_lib_prefix=no
18612 need_version=no
18613 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18614 soname_spec='${libname}${release}${major}$shared_ext'
18615 shlibpath_overrides_runpath=yes
18616 shlibpath_var=DYLD_LIBRARY_PATH
18303 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18304 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18305 if test "$GCC" = yes; then
18306 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"`
18307 else
18308 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18309 fi
18617 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18618
18619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18620 ;;
18621
18622dgux*)
18623 version_type=linux
18624 need_lib_prefix=no
18625 need_version=no
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18627 soname_spec='${libname}${release}${shared_ext}$major'
18628 shlibpath_var=LD_LIBRARY_PATH
18629 ;;
18630
18631freebsd1*)
18632 dynamic_linker=no
18633 ;;
18634
18326kfreebsd*-gnu)
18327 version_type=linux
18328 need_lib_prefix=no
18329 need_version=no
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18331 soname_spec='${libname}${release}${shared_ext}$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=no
18334 hardcode_into_libs=yes
18335 dynamic_linker='GNU ld.so'
18336 ;;
18337
18635freebsd* | dragonfly*)
18636 # DragonFly does not have aout. When/if they implement a new
18637 # versioning mechanism, adjust this.
18341 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18638 if test -x /usr/bin/objformat; then
18639 objformat=`/usr/bin/objformat`
18640 else
18641 case $host_os in
18642 freebsd[123]*) objformat=aout ;;
18643 *) objformat=elf ;;
18644 esac
18645 fi
18646 version_type=freebsd-$objformat
18647 case $version_type in
18648 freebsd-elf*)
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18650 need_version=no
18651 need_lib_prefix=no
18652 ;;
18653 freebsd-*)

--- 5 unchanged lines hidden (view full) ---

18659 case $host_os in
18660 freebsd2*)
18661 shlibpath_overrides_runpath=yes
18662 ;;
18663 freebsd3.[01]* | freebsdelf3.[01]*)
18664 shlibpath_overrides_runpath=yes
18665 hardcode_into_libs=yes
18666 ;;
18363 *) # from 3.2 on
18667 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18668 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18669 shlibpath_overrides_runpath=no
18670 hardcode_into_libs=yes
18671 ;;
18672 *) # from 4.6 on, and DragonFly
18673 shlibpath_overrides_runpath=yes
18674 hardcode_into_libs=yes
18675 ;;
18676 esac
18677 ;;
18678
18679gnu*)
18680 version_type=linux
18681 need_lib_prefix=no
18682 need_version=no
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18684 soname_spec='${libname}${release}${shared_ext}$major'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 hardcode_into_libs=yes
18687 ;;
18688
18689hpux9* | hpux10* | hpux11*)
18690 # Give a soname corresponding to the major version so that dld.sl refuses to
18691 # link against other versions.
18692 version_type=sunos
18693 need_lib_prefix=no
18694 need_version=no
18386 case "$host_cpu" in
18695 case $host_cpu in
18696 ia64*)
18697 shrext_cmds='.so'
18698 hardcode_into_libs=yes
18699 dynamic_linker="$host_os dld.so"
18700 shlibpath_var=LD_LIBRARY_PATH
18701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18703 soname_spec='${libname}${release}${shared_ext}$major'

--- 23 unchanged lines hidden (view full) ---

18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18728 soname_spec='${libname}${release}${shared_ext}$major'
18729 ;;
18730 esac
18731 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18732 postinstall_cmds='chmod 555 $lib'
18733 ;;
18734
18735interix[3-9]*)
18736 version_type=linux
18737 need_lib_prefix=no
18738 need_version=no
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18740 soname_spec='${libname}${release}${shared_ext}$major'
18741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18742 shlibpath_var=LD_LIBRARY_PATH
18743 shlibpath_overrides_runpath=no
18744 hardcode_into_libs=yes
18745 ;;
18746
18747irix5* | irix6* | nonstopux*)
18748 case $host_os in
18749 nonstopux*) version_type=nonstopux ;;
18750 *)
18751 if test "$lt_cv_prog_gnu_ld" = yes; then
18752 version_type=linux
18753 else
18754 version_type=irix

--- 27 unchanged lines hidden (view full) ---

18782 ;;
18783
18784# No shared lib support for Linux oldld, aout, or coff.
18785linux*oldld* | linux*aout* | linux*coff*)
18786 dynamic_linker=no
18787 ;;
18788
18789# This must be Linux ELF.
18469linux*)
18790linux* | k*bsd*-gnu)
18791 version_type=linux
18792 need_lib_prefix=no
18793 need_version=no
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18795 soname_spec='${libname}${release}${shared_ext}$major'
18796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18797 shlibpath_var=LD_LIBRARY_PATH
18798 shlibpath_overrides_runpath=no
18799 # This implies no fast_install, which is unacceptable.
18800 # Some rework will be needed to allow for fast_install
18801 # before this can be enabled.
18802 hardcode_into_libs=yes
18803
18804 # Append ld.so.conf contents to the search path
18805 if test -f /etc/ld.so.conf; then
18485 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18806 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' ' '`
18807 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18808 fi
18809
18810 # We used to test for /lib/ld.so.1 and disable shared libraries on
18811 # powerpc, because MkLinux only supported shared libraries with the
18812 # GNU dynamic linker. Since this was broken with cross compilers,
18813 # most powerpc-linux boxes support dynamic linking these days and
18814 # people can always --disable-shared, the test was removed, and we
18815 # assume the GNU/Linux dynamic linker is in use.
18816 dynamic_linker='GNU/Linux ld.so'
18817 ;;
18818
18498knetbsd*-gnu)
18499 version_type=linux
18500 need_lib_prefix=no
18501 need_version=no
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 shlibpath_var=LD_LIBRARY_PATH
18505 shlibpath_overrides_runpath=no
18506 hardcode_into_libs=yes
18507 dynamic_linker='GNU ld.so'
18508 ;;
18509
18819netbsd*)
18820 version_type=sunos
18821 need_lib_prefix=no
18822 need_version=no
18823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18826 dynamic_linker='NetBSD (a.out) ld.so'

--- 21 unchanged lines hidden (view full) ---

18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18849 soname_spec='${libname}${release}${shared_ext}$major'
18850 shlibpath_var=LD_LIBRARY_PATH
18851 shlibpath_overrides_runpath=yes
18852 ;;
18853
18854openbsd*)
18855 version_type=sunos
18856 sys_lib_dlsearch_path_spec="/usr/lib"
18857 need_lib_prefix=no
18858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18859 case $host_os in
18860 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18861 *) need_version=no ;;
18862 esac
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'

--- 27 unchanged lines hidden (view full) ---

18892 need_version=no
18893 soname_spec='${libname}${release}${shared_ext}$major'
18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 shlibpath_var=LD_LIBRARY_PATH
18896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18898 ;;
18899
18590sco3.2v5*)
18591 version_type=osf
18592 soname_spec='${libname}${release}${shared_ext}$major'
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 shlibpath_var=LD_LIBRARY_PATH
18900rdos*)
18901 dynamic_linker=no
18902 ;;
18903
18904solaris*)
18905 version_type=linux
18906 need_lib_prefix=no
18907 need_version=no
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909 soname_spec='${libname}${release}${shared_ext}$major'

--- 11 unchanged lines hidden (view full) ---

18921 shlibpath_var=LD_LIBRARY_PATH
18922 shlibpath_overrides_runpath=yes
18923 if test "$with_gnu_ld" = yes; then
18924 need_lib_prefix=no
18925 fi
18926 need_version=yes
18927 ;;
18928
18622sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18929sysv4 | sysv4.3*)
18930 version_type=linux
18931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18932 soname_spec='${libname}${release}${shared_ext}$major'
18933 shlibpath_var=LD_LIBRARY_PATH
18934 case $host_vendor in
18935 sni)
18936 shlibpath_overrides_runpath=no
18937 need_lib_prefix=no

--- 16 unchanged lines hidden (view full) ---

18954 if test -d /usr/nec ;then
18955 version_type=linux
18956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18957 soname_spec='$libname${shared_ext}.$major'
18958 shlibpath_var=LD_LIBRARY_PATH
18959 fi
18960 ;;
18961
18962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18963 version_type=freebsd-elf
18964 need_lib_prefix=no
18965 need_version=no
18966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 shlibpath_var=LD_LIBRARY_PATH
18969 hardcode_into_libs=yes
18970 if test "$with_gnu_ld" = yes; then
18971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18972 shlibpath_overrides_runpath=no
18973 else
18974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18975 shlibpath_overrides_runpath=yes
18976 case $host_os in
18977 sco3.2v5*)
18978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18979 ;;
18980 esac
18981 fi
18982 sys_lib_dlsearch_path_spec='/usr/lib'
18983 ;;
18984
18985uts4*)
18986 version_type=linux
18987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988 soname_spec='${libname}${release}${shared_ext}$major'
18989 shlibpath_var=LD_LIBRARY_PATH
18990 ;;
18991
18992*)
18993 dynamic_linker=no
18994 ;;
18995esac
18996{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18997echo "${ECHO_T}$dynamic_linker" >&6; }
18998test "$dynamic_linker" = no && can_build_shared=no
18999
19000if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002else
19003 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19004fi
19005
19006sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19007if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19009else
19010 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19011fi
19012
19013sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19014
19015variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19016if test "$GCC" = yes; then
19017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19018fi
19019
19020{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19021echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19022hardcode_action_GCJ=
19023if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19024 test -n "$runpath_var_GCJ" || \
19025 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19026
19027 # We can hardcode non-existant directories.

--- 21 unchanged lines hidden (view full) ---

19049 # Fast installation is not supported
19050 enable_fast_install=no
19051elif test "$shlibpath_overrides_runpath" = yes ||
19052 test "$enable_shared" = no; then
19053 # Fast installation is not necessary
19054 enable_fast_install=needless
19055fi
19056
18707striplib=
18708old_striplib=
18709{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18710echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18711if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18712 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18713 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18714 { echo "$as_me:$LINENO: result: yes" >&5
18715echo "${ECHO_T}yes" >&6; }
18716else
18717# FIXME - insert some real tests, host_os isn't really good enough
18718 case $host_os in
18719 darwin*)
18720 if test -n "$STRIP" ; then
18721 striplib="$STRIP -x"
18722 { echo "$as_me:$LINENO: result: yes" >&5
18723echo "${ECHO_T}yes" >&6; }
18724 else
18725 { echo "$as_me:$LINENO: result: no" >&5
18726echo "${ECHO_T}no" >&6; }
18727fi
18728 ;;
18729 *)
18730 { echo "$as_me:$LINENO: result: no" >&5
18731echo "${ECHO_T}no" >&6; }
18732 ;;
18733 esac
18734fi
19057
18736if test "x$enable_dlopen" != xyes; then
18737 enable_dlopen=unknown
18738 enable_dlopen_self=unknown
18739 enable_dlopen_self_static=unknown
18740else
18741 lt_cv_dlopen=no
18742 lt_cv_dlopen_libs=
18743
18744 case $host_os in
18745 beos*)
18746 lt_cv_dlopen="load_add_on"
18747 lt_cv_dlopen_libs=
18748 lt_cv_dlopen_self=yes
18749 ;;
18750
18751 mingw* | pw32*)
18752 lt_cv_dlopen="LoadLibrary"
18753 lt_cv_dlopen_libs=
18754 ;;
18755
18756 cygwin*)
18757 lt_cv_dlopen="dlopen"
18758 lt_cv_dlopen_libs=
18759 ;;
18760
18761 darwin*)
18762 # if libdl is installed we need to link against it
18763 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18764echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18765if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767else
18768 ac_check_lib_save_LIBS=$LIBS
18769LIBS="-ldl $LIBS"
18770cat >conftest.$ac_ext <<_ACEOF
18771/* confdefs.h. */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h. */
18776
18777/* Override any GCC internal prototype to avoid an error.
18778 Use char because int might match the return type of a GCC
18779 builtin and then its argument prototype would still apply. */
18780#ifdef __cplusplus
18781extern "C"
18782#endif
18783char dlopen ();
18784int
18785main ()
18786{
18787return dlopen ();
18788 ;
18789 return 0;
18790}
18791_ACEOF
18792rm -f conftest.$ac_objext conftest$ac_exeext
18793if { (ac_try="$ac_link"
18794case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797esac
18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
18800 ac_status=$?
18801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && {
18806 test -z "$ac_c_werror_flag" ||
18807 test ! -s conftest.err
18808 } && test -s conftest$ac_exeext &&
18809 $as_test_x conftest$ac_exeext; then
18810 ac_cv_lib_dl_dlopen=yes
18811else
18812 echo "$as_me: failed program was:" >&5
18813sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 ac_cv_lib_dl_dlopen=no
18816fi
18817
18818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18819 conftest$ac_exeext conftest.$ac_ext
18820LIBS=$ac_check_lib_save_LIBS
18821fi
18822{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18823echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18824if test $ac_cv_lib_dl_dlopen = yes; then
18825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18826else
18827
18828 lt_cv_dlopen="dyld"
18829 lt_cv_dlopen_libs=
18830 lt_cv_dlopen_self=yes
18831
18832fi
18833
18834 ;;
18835
18836 *)
18837 { echo "$as_me:$LINENO: checking for shl_load" >&5
18838echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18839if test "${ac_cv_func_shl_load+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18841else
18842 cat >conftest.$ac_ext <<_ACEOF
18843/* confdefs.h. */
18844_ACEOF
18845cat confdefs.h >>conftest.$ac_ext
18846cat >>conftest.$ac_ext <<_ACEOF
18847/* end confdefs.h. */
18848/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18850#define shl_load innocuous_shl_load
18851
18852/* System header to define __stub macros and hopefully few prototypes,
18853 which can conflict with char shl_load (); below.
18854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18855 <limits.h> exists even on freestanding compilers. */
18856
18857#ifdef __STDC__
18858# include <limits.h>
18859#else
18860# include <assert.h>
18861#endif
18862
18863#undef shl_load
18864
18865/* Override any GCC internal prototype to avoid an error.
18866 Use char because int might match the return type of a GCC
18867 builtin and then its argument prototype would still apply. */
18868#ifdef __cplusplus
18869extern "C"
18870#endif
18871char shl_load ();
18872/* The GNU C library defines this for functions which it implements
18873 to always fail with ENOSYS. Some functions are actually named
18874 something starting with __ and the normal name is an alias. */
18875#if defined __stub_shl_load || defined __stub___shl_load
18876choke me
18877#endif
18878
18879int
18880main ()
18881{
18882return shl_load ();
18883 ;
18884 return 0;
18885}
18886_ACEOF
18887rm -f conftest.$ac_objext conftest$ac_exeext
18888if { (ac_try="$ac_link"
18889case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892esac
18893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_link") 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } && {
18901 test -z "$ac_c_werror_flag" ||
18902 test ! -s conftest.err
18903 } && test -s conftest$ac_exeext &&
18904 $as_test_x conftest$ac_exeext; then
18905 ac_cv_func_shl_load=yes
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ac_cv_func_shl_load=no
18911fi
18912
18913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18914 conftest$ac_exeext conftest.$ac_ext
18915fi
18916{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18917echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18918if test $ac_cv_func_shl_load = yes; then
18919 lt_cv_dlopen="shl_load"
18920else
18921 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18922echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18923if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925else
18926 ac_check_lib_save_LIBS=$LIBS
18927LIBS="-ldld $LIBS"
18928cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
18934
18935/* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18938#ifdef __cplusplus
18939extern "C"
18940#endif
18941char shl_load ();
18942int
18943main ()
18944{
18945return shl_load ();
18946 ;
18947 return 0;
18948}
18949_ACEOF
18950rm -f conftest.$ac_objext conftest$ac_exeext
18951if { (ac_try="$ac_link"
18952case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>conftest.er1
18958 ac_status=$?
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest$ac_exeext &&
18967 $as_test_x conftest$ac_exeext; then
18968 ac_cv_lib_dld_shl_load=yes
18969else
18970 echo "$as_me: failed program was:" >&5
18971sed 's/^/| /' conftest.$ac_ext >&5
18972
18973 ac_cv_lib_dld_shl_load=no
18974fi
18975
18976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18977 conftest$ac_exeext conftest.$ac_ext
18978LIBS=$ac_check_lib_save_LIBS
18979fi
18980{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18981echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18982if test $ac_cv_lib_dld_shl_load = yes; then
18983 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18984else
18985 { echo "$as_me:$LINENO: checking for dlopen" >&5
18986echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18987if test "${ac_cv_func_dlopen+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989else
18990 cat >conftest.$ac_ext <<_ACEOF
18991/* confdefs.h. */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */
18996/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998#define dlopen innocuous_dlopen
18999
19000/* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char dlopen (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19004
19005#ifdef __STDC__
19006# include <limits.h>
19007#else
19008# include <assert.h>
19009#endif
19010
19011#undef dlopen
19012
19013/* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19016#ifdef __cplusplus
19017extern "C"
19018#endif
19019char dlopen ();
19020/* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023#if defined __stub_dlopen || defined __stub___dlopen
19024choke me
19025#endif
19026
19027int
19028main ()
19029{
19030return dlopen ();
19031 ;
19032 return 0;
19033}
19034_ACEOF
19035rm -f conftest.$ac_objext conftest$ac_exeext
19036if { (ac_try="$ac_link"
19037case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest$ac_exeext &&
19052 $as_test_x conftest$ac_exeext; then
19053 ac_cv_func_dlopen=yes
19054else
19055 echo "$as_me: failed program was:" >&5
19056sed 's/^/| /' conftest.$ac_ext >&5
19057
19058 ac_cv_func_dlopen=no
19059fi
19060
19061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19063fi
19064{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19065echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
19066if test $ac_cv_func_dlopen = yes; then
19067 lt_cv_dlopen="dlopen"
19068else
19069 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19070echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19071if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073else
19074 ac_check_lib_save_LIBS=$LIBS
19075LIBS="-ldl $LIBS"
19076cat >conftest.$ac_ext <<_ACEOF
19077/* confdefs.h. */
19078_ACEOF
19079cat confdefs.h >>conftest.$ac_ext
19080cat >>conftest.$ac_ext <<_ACEOF
19081/* end confdefs.h. */
19082
19083/* Override any GCC internal prototype to avoid an error.
19084 Use char because int might match the return type of a GCC
19085 builtin and then its argument prototype would still apply. */
19086#ifdef __cplusplus
19087extern "C"
19088#endif
19089char dlopen ();
19090int
19091main ()
19092{
19093return dlopen ();
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext conftest$ac_exeext
19099if { (ac_try="$ac_link"
19100case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_link") 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && {
19112 test -z "$ac_c_werror_flag" ||
19113 test ! -s conftest.err
19114 } && test -s conftest$ac_exeext &&
19115 $as_test_x conftest$ac_exeext; then
19116 ac_cv_lib_dl_dlopen=yes
19117else
19118 echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_cv_lib_dl_dlopen=no
19122fi
19123
19124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19125 conftest$ac_exeext conftest.$ac_ext
19126LIBS=$ac_check_lib_save_LIBS
19127fi
19128{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19129echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19130if test $ac_cv_lib_dl_dlopen = yes; then
19131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19132else
19133 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19134echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19135if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137else
19138 ac_check_lib_save_LIBS=$LIBS
19139LIBS="-lsvld $LIBS"
19140cat >conftest.$ac_ext <<_ACEOF
19141/* confdefs.h. */
19142_ACEOF
19143cat confdefs.h >>conftest.$ac_ext
19144cat >>conftest.$ac_ext <<_ACEOF
19145/* end confdefs.h. */
19146
19147/* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 builtin and then its argument prototype would still apply. */
19150#ifdef __cplusplus
19151extern "C"
19152#endif
19153char dlopen ();
19154int
19155main ()
19156{
19157return dlopen ();
19158 ;
19159 return 0;
19160}
19161_ACEOF
19162rm -f conftest.$ac_objext conftest$ac_exeext
19163if { (ac_try="$ac_link"
19164case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167esac
19168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_link") 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && {
19176 test -z "$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 } && test -s conftest$ac_exeext &&
19179 $as_test_x conftest$ac_exeext; then
19180 ac_cv_lib_svld_dlopen=yes
19181else
19182 echo "$as_me: failed program was:" >&5
19183sed 's/^/| /' conftest.$ac_ext >&5
19184
19185 ac_cv_lib_svld_dlopen=no
19186fi
19187
19188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19189 conftest$ac_exeext conftest.$ac_ext
19190LIBS=$ac_check_lib_save_LIBS
19191fi
19192{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19193echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19194if test $ac_cv_lib_svld_dlopen = yes; then
19195 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19196else
19197 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19198echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19199if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19201else
19202 ac_check_lib_save_LIBS=$LIBS
19203LIBS="-ldld $LIBS"
19204cat >conftest.$ac_ext <<_ACEOF
19205/* confdefs.h. */
19206_ACEOF
19207cat confdefs.h >>conftest.$ac_ext
19208cat >>conftest.$ac_ext <<_ACEOF
19209/* end confdefs.h. */
19210
19211/* Override any GCC internal prototype to avoid an error.
19212 Use char because int might match the return type of a GCC
19213 builtin and then its argument prototype would still apply. */
19214#ifdef __cplusplus
19215extern "C"
19216#endif
19217char dld_link ();
19218int
19219main ()
19220{
19221return dld_link ();
19222 ;
19223 return 0;
19224}
19225_ACEOF
19226rm -f conftest.$ac_objext conftest$ac_exeext
19227if { (ac_try="$ac_link"
19228case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19231esac
19232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_link") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest$ac_exeext &&
19243 $as_test_x conftest$ac_exeext; then
19244 ac_cv_lib_dld_dld_link=yes
19245else
19246 echo "$as_me: failed program was:" >&5
19247sed 's/^/| /' conftest.$ac_ext >&5
19248
19249 ac_cv_lib_dld_dld_link=no
19250fi
19251
19252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19253 conftest$ac_exeext conftest.$ac_ext
19254LIBS=$ac_check_lib_save_LIBS
19255fi
19256{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19257echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19258if test $ac_cv_lib_dld_dld_link = yes; then
19259 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19260fi
19261
19262
19263fi
19264
19265
19266fi
19267
19268
19269fi
19270
19271
19272fi
19273
19274
19275fi
19276
19277 ;;
19278 esac
19279
19280 if test "x$lt_cv_dlopen" != xno; then
19281 enable_dlopen=yes
19282 else
19283 enable_dlopen=no
19284 fi
19285
19286 case $lt_cv_dlopen in
19287 dlopen)
19288 save_CPPFLAGS="$CPPFLAGS"
19289 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19290
19291 save_LDFLAGS="$LDFLAGS"
19292 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19293
19294 save_LIBS="$LIBS"
19295 LIBS="$lt_cv_dlopen_libs $LIBS"
19296
19297 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19298echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19299if test "${lt_cv_dlopen_self+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19301else
19302 if test "$cross_compiling" = yes; then :
19303 lt_cv_dlopen_self=cross
19304else
19305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19306 lt_status=$lt_dlunknown
19307 cat > conftest.$ac_ext <<EOF
19308#line 19308 "configure"
19309#include "confdefs.h"
19310
19311#if HAVE_DLFCN_H
19312#include <dlfcn.h>
19313#endif
19314
19315#include <stdio.h>
19316
19317#ifdef RTLD_GLOBAL
19318# define LT_DLGLOBAL RTLD_GLOBAL
19319#else
19320# ifdef DL_GLOBAL
19321# define LT_DLGLOBAL DL_GLOBAL
19322# else
19323# define LT_DLGLOBAL 0
19324# endif
19325#endif
19326
19327/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19328 find out it does not work in some platform. */
19329#ifndef LT_DLLAZY_OR_NOW
19330# ifdef RTLD_LAZY
19331# define LT_DLLAZY_OR_NOW RTLD_LAZY
19332# else
19333# ifdef DL_LAZY
19334# define LT_DLLAZY_OR_NOW DL_LAZY
19335# else
19336# ifdef RTLD_NOW
19337# define LT_DLLAZY_OR_NOW RTLD_NOW
19338# else
19339# ifdef DL_NOW
19340# define LT_DLLAZY_OR_NOW DL_NOW
19341# else
19342# define LT_DLLAZY_OR_NOW 0
19343# endif
19344# endif
19345# endif
19346# endif
19347#endif
19348
19349#ifdef __cplusplus
19350extern "C" void exit (int);
19351#endif
19352
19353void fnord() { int i=42;}
19354int main ()
19355{
19356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19357 int status = $lt_dlunknown;
19358
19359 if (self)
19360 {
19361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19362 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19363 /* dlclose (self); */
19364 }
19365
19366 exit (status);
19367}
19368EOF
19369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19370 (eval $ac_link) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19374 (./conftest; exit; ) 2>/dev/null
19375 lt_status=$?
19376 case x$lt_status in
19377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19379 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19380 esac
19381 else :
19382 # compilation failed
19383 lt_cv_dlopen_self=no
19384 fi
19385fi
19386rm -fr conftest*
19387
19388
19389fi
19390{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19391echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19392
19393 if test "x$lt_cv_dlopen_self" = xyes; then
19394 LDFLAGS="$LDFLAGS $link_static_flag"
19395 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19396echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19397if test "${lt_cv_dlopen_self_static+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399else
19400 if test "$cross_compiling" = yes; then :
19401 lt_cv_dlopen_self_static=cross
19402else
19403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19404 lt_status=$lt_dlunknown
19405 cat > conftest.$ac_ext <<EOF
19406#line 19406 "configure"
19407#include "confdefs.h"
19408
19409#if HAVE_DLFCN_H
19410#include <dlfcn.h>
19411#endif
19412
19413#include <stdio.h>
19414
19415#ifdef RTLD_GLOBAL
19416# define LT_DLGLOBAL RTLD_GLOBAL
19417#else
19418# ifdef DL_GLOBAL
19419# define LT_DLGLOBAL DL_GLOBAL
19420# else
19421# define LT_DLGLOBAL 0
19422# endif
19423#endif
19424
19425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19426 find out it does not work in some platform. */
19427#ifndef LT_DLLAZY_OR_NOW
19428# ifdef RTLD_LAZY
19429# define LT_DLLAZY_OR_NOW RTLD_LAZY
19430# else
19431# ifdef DL_LAZY
19432# define LT_DLLAZY_OR_NOW DL_LAZY
19433# else
19434# ifdef RTLD_NOW
19435# define LT_DLLAZY_OR_NOW RTLD_NOW
19436# else
19437# ifdef DL_NOW
19438# define LT_DLLAZY_OR_NOW DL_NOW
19439# else
19440# define LT_DLLAZY_OR_NOW 0
19441# endif
19442# endif
19443# endif
19444# endif
19445#endif
19446
19447#ifdef __cplusplus
19448extern "C" void exit (int);
19449#endif
19450
19451void fnord() { int i=42;}
19452int main ()
19453{
19454 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19455 int status = $lt_dlunknown;
19456
19457 if (self)
19458 {
19459 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19460 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19461 /* dlclose (self); */
19462 }
19463
19464 exit (status);
19465}
19466EOF
19467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468 (eval $ac_link) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19472 (./conftest; exit; ) 2>/dev/null
19473 lt_status=$?
19474 case x$lt_status in
19475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19477 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19478 esac
19479 else :
19480 # compilation failed
19481 lt_cv_dlopen_self_static=no
19482 fi
19483fi
19484rm -fr conftest*
19485
19486
19487fi
19488{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19489echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19490 fi
19491
19492 CPPFLAGS="$save_CPPFLAGS"
19493 LDFLAGS="$save_LDFLAGS"
19494 LIBS="$save_LIBS"
19495 ;;
19496 esac
19497
19498 case $lt_cv_dlopen_self in
19499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19500 *) enable_dlopen_self=unknown ;;
19501 esac
19502
19503 case $lt_cv_dlopen_self_static in
19504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19505 *) enable_dlopen_self_static=unknown ;;
19506 esac
19507fi
19508
19509
19058# The else clause should only fire when bootstrapping the
19059# libtool distribution, otherwise you forgot to ship ltmain.sh
19060# with your package, and you will get complaints that there are
19061# no rules to generate ltmain.sh.
19062if test -f "$ltmain"; then
19063 # See if we are running on zsh, and set the options which allow our commands through
19064 # without removal of \ escapes.
19065 if test -n "${ZSH_VERSION+set}" ; then
19066 setopt NO_GLOB_SUBST
19067 fi
19068 # Now quote all the things that may contain metacharacters while being
19069 # careful not to overquote the AC_SUBSTed values. We take copies of the
19070 # variables and quote the copies for generation of the libtool script.
19523 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19071 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19072 SED SHELL STRIP \
19073 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19074 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19075 deplibs_check_method reload_flag reload_cmds need_locks \
19076 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19077 lt_cv_sys_global_symbol_to_c_name_address \
19078 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19079 old_postinstall_cmds old_postuninstall_cmds \

--- 10 unchanged lines hidden (view full) ---

19090 enable_shared_with_static_runtimes_GCJ \
19091 old_archive_cmds_GCJ \
19092 old_archive_from_new_cmds_GCJ \
19093 predep_objects_GCJ \
19094 postdep_objects_GCJ \
19095 predeps_GCJ \
19096 postdeps_GCJ \
19097 compiler_lib_search_path_GCJ \
19098 compiler_lib_search_dirs_GCJ \
19099 archive_cmds_GCJ \
19100 archive_expsym_cmds_GCJ \
19101 postinstall_cmds_GCJ \
19102 postuninstall_cmds_GCJ \
19103 old_archive_from_expsyms_cmds_GCJ \
19104 allow_undefined_flag_GCJ \
19105 no_undefined_flag_GCJ \
19106 export_symbols_cmds_GCJ \
19107 hardcode_libdir_flag_spec_GCJ \
19108 hardcode_libdir_flag_spec_ld_GCJ \
19109 hardcode_libdir_separator_GCJ \
19110 hardcode_automatic_GCJ \
19111 module_cmds_GCJ \
19112 module_expsym_cmds_GCJ \
19113 lt_cv_prog_compiler_c_o_GCJ \
19114 fix_srcfile_path_GCJ \
19115 exclude_expsyms_GCJ \
19116 include_expsyms_GCJ; do
19117
19118 case $var in
19119 old_archive_cmds_GCJ | \
19120 old_archive_from_new_cmds_GCJ | \
19121 archive_cmds_GCJ | \
19122 archive_expsym_cmds_GCJ | \

--- 60 unchanged lines hidden (view full) ---

19183
19184# The archiver.
19185AR=$lt_AR
19186AR_FLAGS=$lt_AR_FLAGS
19187
19188# A C compiler.
19189LTCC=$lt_LTCC
19190
19191# LTCC compiler flags.
19192LTCFLAGS=$lt_LTCFLAGS
19193
19194# A language-specific compiler.
19195CC=$lt_compiler_GCJ
19196
19197# Is the compiler the GNU C compiler?
19198with_gcc=$GCC_GCJ
19199
19200# An ERE matcher.
19201EGREP=$lt_EGREP

--- 137 unchanged lines hidden (view full) ---

19339# Dependencies to place before the objects being linked to create a
19340# shared library.
19341predeps=$lt_predeps_GCJ
19342
19343# Dependencies to place after the objects being linked to create a
19344# shared library.
19345postdeps=$lt_postdeps_GCJ
19346
19347# The directories searched by this compiler when creating a shared
19348# library
19349compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19350
19351# The library search path used internally by the compiler when linking
19352# a shared library.
19353compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19354
19355# Method to check whether dependent libraries are shared objects.
19356deplibs_check_method=$lt_deplibs_check_method
19357
19358# Command to use when deplibs_check_method == file_magic.

--- 72 unchanged lines hidden (view full) ---

19431
19432# Compile-time system search path for libraries
19433sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19434
19435# Run-time system search path for libraries
19436sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19437
19438# Fix the shell variable \$srcfile for the compiler.
19882fix_srcfile_path="$fix_srcfile_path_GCJ"
19439fix_srcfile_path=$lt_fix_srcfile_path
19440
19441# Set to yes if exported symbols are required.
19442always_export_symbols=$always_export_symbols_GCJ
19443
19444# The commands to list exported symbols.
19445export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19446
19447# The commands to extract the exported symbol list from a shared archive.

--- 40 unchanged lines hidden (view full) ---

19488# Source file extension for RC test sources.
19489ac_ext=rc
19490
19491# Object file extension for compiled RC test sources.
19492objext=o
19493objext_RC=$objext
19494
19495# Code to be used in simple compile tests
19939lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19496lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19497
19498# Code to be used in simple link tests
19499lt_simple_link_test_code="$lt_simple_compile_test_code"
19500
19501# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19502
19503# If no C compiler was specified, use CC.
19504LTCC=${LTCC-"$CC"}
19505
19506# If no C compiler flags were specified, use CFLAGS.
19507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19508
19509# Allow CC to be a program name with arguments.
19510compiler=$CC
19511
19512
19513# save warnings/boilerplate of simple test code
19514ac_outfile=conftest.$ac_objext
19955printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19515echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19516eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19517_lt_compiler_boilerplate=`cat conftest.err`
19518$rm conftest*
19519
19520ac_outfile=conftest.$ac_objext
19961printf "$lt_simple_link_test_code" >conftest.$ac_ext
19962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19521echo "$lt_simple_link_test_code" >conftest.$ac_ext
19522eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19523_lt_linker_boilerplate=`cat conftest.err`
19964$rm conftest*
19524$rm -r conftest*
19525
19526
19527# Allow CC to be a program name with arguments.
19528lt_save_CC="$CC"
19529CC=${RC-"windres"}
19530compiler=$CC
19531compiler_RC=$CC
19532for cc_temp in $compiler""; do

--- 16 unchanged lines hidden (view full) ---

19549 # See if we are running on zsh, and set the options which allow our commands through
19550 # without removal of \ escapes.
19551 if test -n "${ZSH_VERSION+set}" ; then
19552 setopt NO_GLOB_SUBST
19553 fi
19554 # Now quote all the things that may contain metacharacters while being
19555 # careful not to overquote the AC_SUBSTed values. We take copies of the
19556 # variables and quote the copies for generation of the libtool script.
19997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19558 SED SHELL STRIP \
19559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19561 deplibs_check_method reload_flag reload_cmds need_locks \
19562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19563 lt_cv_sys_global_symbol_to_c_name_address \
19564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19565 old_postinstall_cmds old_postuninstall_cmds \

--- 10 unchanged lines hidden (view full) ---

19576 enable_shared_with_static_runtimes_RC \
19577 old_archive_cmds_RC \
19578 old_archive_from_new_cmds_RC \
19579 predep_objects_RC \
19580 postdep_objects_RC \
19581 predeps_RC \
19582 postdeps_RC \
19583 compiler_lib_search_path_RC \
19584 compiler_lib_search_dirs_RC \
19585 archive_cmds_RC \
19586 archive_expsym_cmds_RC \
19587 postinstall_cmds_RC \
19588 postuninstall_cmds_RC \
19589 old_archive_from_expsyms_cmds_RC \
19590 allow_undefined_flag_RC \
19591 no_undefined_flag_RC \
19592 export_symbols_cmds_RC \
19593 hardcode_libdir_flag_spec_RC \
19594 hardcode_libdir_flag_spec_ld_RC \
19595 hardcode_libdir_separator_RC \
19596 hardcode_automatic_RC \
19597 module_cmds_RC \
19598 module_expsym_cmds_RC \
19599 lt_cv_prog_compiler_c_o_RC \
19600 fix_srcfile_path_RC \
19601 exclude_expsyms_RC \
19602 include_expsyms_RC; do
19603
19604 case $var in
19605 old_archive_cmds_RC | \
19606 old_archive_from_new_cmds_RC | \
19607 archive_cmds_RC | \
19608 archive_expsym_cmds_RC | \

--- 60 unchanged lines hidden (view full) ---

19669
19670# The archiver.
19671AR=$lt_AR
19672AR_FLAGS=$lt_AR_FLAGS
19673
19674# A C compiler.
19675LTCC=$lt_LTCC
19676
19677# LTCC compiler flags.
19678LTCFLAGS=$lt_LTCFLAGS
19679
19680# A language-specific compiler.
19681CC=$lt_compiler_RC
19682
19683# Is the compiler the GNU C compiler?
19684with_gcc=$GCC_RC
19685
19686# An ERE matcher.
19687EGREP=$lt_EGREP

--- 137 unchanged lines hidden (view full) ---

19825# Dependencies to place before the objects being linked to create a
19826# shared library.
19827predeps=$lt_predeps_RC
19828
19829# Dependencies to place after the objects being linked to create a
19830# shared library.
19831postdeps=$lt_postdeps_RC
19832
19833# The directories searched by this compiler when creating a shared
19834# library
19835compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19836
19837# The library search path used internally by the compiler when linking
19838# a shared library.
19839compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19840
19841# Method to check whether dependent libraries are shared objects.
19842deplibs_check_method=$lt_deplibs_check_method
19843
19844# Command to use when deplibs_check_method == file_magic.

--- 72 unchanged lines hidden (view full) ---

19917
19918# Compile-time system search path for libraries
19919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19920
19921# Run-time system search path for libraries
19922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19923
19924# Fix the shell variable \$srcfile for the compiler.
20356fix_srcfile_path="$fix_srcfile_path_RC"
19925fix_srcfile_path=$lt_fix_srcfile_path
19926
19927# Set to yes if exported symbols are required.
19928always_export_symbols=$always_export_symbols_RC
19929
19930# The commands to list exported symbols.
19931export_symbols_cmds=$lt_export_symbols_cmds_RC
19932
19933# The commands to extract the exported symbol list from a shared archive.

--- 2056 unchanged lines hidden (view full) ---

21990echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
21991if test "$ac_cv_struct_tm_zone" = yes; then
21992
21993cat >>confdefs.h <<\_ACEOF
21994#define HAVE_TM_ZONE 1
21995_ACEOF
21996
21997fi
21998
21999{ echo "$as_me:$LINENO: checking for tzname" >&5
22000echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22001if test "${ac_cv_var_tzname+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003else
22004 cat >conftest.$ac_ext <<_ACEOF
22005/* confdefs.h. */
22006_ACEOF

--- 103 unchanged lines hidden (view full) ---

22110echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
22111if test "$ac_cv_struct_tm_isdst" = yes; then
22112
22113cat >>confdefs.h <<\_ACEOF
22114#define HAVE_TM_ISDST 1
22115_ACEOF
22116
22117fi
22118
22119{ echo "$as_me:$LINENO: checking for daylight" >&5
22120echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
22121if test "${ac_cv_var_daylight+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22123else
22124 cat >conftest.$ac_ext <<_ACEOF
22125/* confdefs.h. */
22126_ACEOF

--- 580 unchanged lines hidden (view full) ---

22707 else
22708
22709cat >>confdefs.h <<\_ACEOF
22710#define mbstate_t int
22711_ACEOF
22712
22713 fi
22714
22715{ echo "$as_me:$LINENO: checking for struct option in getopt" >&5
22716echo $ECHO_N "checking for struct option in getopt... $ECHO_C" >&6; }
22717if test "${ac_cv_struct_option_getopt_h+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22719else
22720 cat >conftest.$ac_ext <<_ACEOF
22721/* confdefs.h. */
22722_ACEOF
22723cat confdefs.h >>conftest.$ac_ext
22724cat >>conftest.$ac_ext <<_ACEOF
22725/* end confdefs.h. */
22726#include <getopt.h>
22727int
22728main ()
22729{
22730struct option op; op.name;
22731 ;
22732 return 0;
22733}
22734_ACEOF
22735rm -f conftest.$ac_objext
22736if { (ac_try="$ac_compile"
22737case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740esac
22741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22743 ac_status=$?
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 ac_cv_struct_option_getopt_h=yes
22753else
22754 echo "$as_me: failed program was:" >&5
22755sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 ac_cv_struct_option_getopt_h=no
22758fi
22759
22760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22761fi
22762{ echo "$as_me:$LINENO: result: $ac_cv_struct_option_getopt_h" >&5
22763echo "${ECHO_T}$ac_cv_struct_option_getopt_h" >&6; }
22764if test "$ac_cv_struct_option_getopt_h" = yes; then
22765
22766cat >>confdefs.h <<\_ACEOF
22767#define HAVE_STRUCT_OPTION 1
22768_ACEOF
22769
22770fi
22771
22772
22773{ echo "$as_me:$LINENO: checking for uint8_t" >&5
22774echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22775if test "${ac_cv_type_uint8_t+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777else
22778 cat >conftest.$ac_ext <<_ACEOF
22779/* confdefs.h. */
22780_ACEOF

--- 763 unchanged lines hidden (view full) ---

23544
23545
23546
23547
23548{ echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
23549echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
23550# Check whether --enable-warnings was given.
23551if test "${enable_warnings+set}" = set; then
23923 enableval=$enable_warnings; if test "${enableval}" = no -o $GCC = no; then
23552 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
23553 { echo "$as_me:$LINENO: result: no" >&5
23554echo "${ECHO_T}no" >&6; }
23555 WARNINGS=
23556else
23557 { echo "$as_me:$LINENO: result: yes" >&5
23558echo "${ECHO_T}yes" >&6; }
23559 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23560 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
23561 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
23562 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
23563fi
23564else
23565
23937if test $GCC = no; then
23566if test "$GCC" = no; then
23567 WARNINGS=
23568 { echo "$as_me:$LINENO: result: no" >&5
23569echo "${ECHO_T}no" >&6; }
23570else
23571 { echo "$as_me:$LINENO: result: yes" >&5
23572echo "${ECHO_T}yes" >&6; }
23573 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23574 -Wmissing-declarations -Wredundant-decls -Wnested-externs \

--- 723 unchanged lines hidden (view full) ---

24298
24299
24300exec 6>&1
24301
24302# Save the log message, to keep $[0] and so on meaningful, and to
24303# report actual input values of CONFIG_FILES etc. instead of their
24304# values after options handling.
24305ac_log="
24677This file was extended by file $as_me 5.00, which was
24306This file was extended by file $as_me 5.03, which was
24307generated by GNU Autoconf 2.61. Invocation command line was
24308
24309 CONFIG_FILES = $CONFIG_FILES
24310 CONFIG_HEADERS = $CONFIG_HEADERS
24311 CONFIG_LINKS = $CONFIG_LINKS
24312 CONFIG_COMMANDS = $CONFIG_COMMANDS
24313 $ $0 $@
24314

--- 36 unchanged lines hidden (view full) ---

24351Configuration commands:
24352$config_commands
24353
24354Report bugs to <bug-autoconf@gnu.org>."
24355
24356_ACEOF
24357cat >>$CONFIG_STATUS <<_ACEOF
24358ac_cs_version="\\
24730file config.status 5.00
24359file config.status 5.03
24360configured by $0, generated by GNU Autoconf 2.61,
24361 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24362
24363Copyright (C) 2006 Free Software Foundation, Inc.
24364This config.status script is free software; the Free Software Foundation
24365gives unlimited permission to copy, distribute and modify it."
24366
24367ac_pwd='$ac_pwd'

--- 226 unchanged lines hidden (view full) ---

24594INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24595mkdir_p!$mkdir_p$ac_delim
24596AWK!$AWK$ac_delim
24597SET_MAKE!$SET_MAKE$ac_delim
24598am__leading_dot!$am__leading_dot$ac_delim
24599AMTAR!$AMTAR$ac_delim
24600am__tar!$am__tar$ac_delim
24601am__untar!$am__untar$ac_delim
24602pkgdatadir!$pkgdatadir$ac_delim
24603fsect!$fsect$ac_delim
24604FSECT5_TRUE!$FSECT5_TRUE$ac_delim
24605FSECT5_FALSE!$FSECT5_FALSE$ac_delim
24606WARNINGS!$WARNINGS$ac_delim
24607CC!$CC$ac_delim
24608CFLAGS!$CFLAGS$ac_delim
24609LDFLAGS!$LDFLAGS$ac_delim
24610CPPFLAGS!$CPPFLAGS$ac_delim

--- 13 unchanged lines hidden (view full) ---

24624build!$build$ac_delim
24625build_cpu!$build_cpu$ac_delim
24626build_vendor!$build_vendor$ac_delim
24627build_os!$build_os$ac_delim
24628host!$host$ac_delim
24629host_cpu!$host_cpu$ac_delim
24630host_vendor!$host_vendor$ac_delim
24631host_os!$host_os$ac_delim
24632SED!$SED$ac_delim
24633GREP!$GREP$ac_delim
24634EGREP!$EGREP$ac_delim
24635ECHO!$ECHO$ac_delim
24636AR!$AR$ac_delim
24637RANLIB!$RANLIB$ac_delim
25007CPP!$CPP$ac_delim
25008CXX!$CXX$ac_delim
25009CXXFLAGS!$CXXFLAGS$ac_delim
25010ac_ct_CXX!$ac_ct_CXX$ac_delim
24638DSYMUTIL!$DSYMUTIL$ac_delim
24639NMEDIT!$NMEDIT$ac_delim
24640_ACEOF
24641
24642 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24643 break
24644 elif $ac_last_try; then
24645 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24646echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24647 { (exit 1); exit 1; }; }

--- 25 unchanged lines hidden (view full) ---

24673cat >>$CONFIG_STATUS <<_ACEOF
24674CEOF$ac_eof
24675_ACEOF
24676
24677
24678ac_delim='%!_!# '
24679for ac_last_try in false false false false false :; do
24680 cat >conf$$subs.sed <<_ACEOF
24681CPP!$CPP$ac_delim
24682CXX!$CXX$ac_delim
24683CXXFLAGS!$CXXFLAGS$ac_delim
24684ac_ct_CXX!$ac_ct_CXX$ac_delim
24685CXXDEPMODE!$CXXDEPMODE$ac_delim
24686am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24687am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24688CXXCPP!$CXXCPP$ac_delim
24689F77!$F77$ac_delim
24690FFLAGS!$FFLAGS$ac_delim
24691ac_ct_F77!$ac_ct_F77$ac_delim
24692LIBTOOL!$LIBTOOL$ac_delim
24693LIBOBJS!$LIBOBJS$ac_delim
24694IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
24695IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
24696LTLIBOBJS!$LTLIBOBJS$ac_delim
24697_ACEOF
24698
25066 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24699 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
24700 break
24701 elif $ac_last_try; then
24702 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24703echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24704 { (exit 1); exit 1; }; }
24705 else
24706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24707 fi

--- 589 unchanged lines hidden ---