* libtool.m4 (mingw*) sys_lib_search_path_spec:

Sets the proper path separator for cross-compiling.
This commit is contained in:
Guido Draheim 2001-07-31 20:35:10 +00:00 committed by Robert Boehne
parent 9ecd6bdb27
commit a5b1958691
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-07-31 Guido Draheim <guidod-2001q3@gmx.de>
* libtool.m4 (mingw*) sys_lib_search_path_spec:
Sets the proper path separator for cross-compiling.
2001-07-30 Steve Ellcey <sje@cup.hp.com>
* libtool.m4 (ia64-*-hpux*) Add support for ia64*-*-hpux* platform.

11
libtool.m4 vendored
View File

@ -1091,6 +1091,17 @@ cygwin* | mingw* | pw32*)
yes,mingw*)
library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
if test "_$PATH_SEPARATOR" = "_:" ; then
sys_lib_search_path_spec=`echo $sys_lib_search_path_spec | sed -e 's/:/ /g'`
elif test "_$PATH_SEPARATOR" = "_;" ; then
sys_lib_search_path_spec=`echo $sys_lib_search_path_spec | sed -e 's/;/ /g'`
else
if test "x$sys_lib_search_path_spec" != `echo x$sys_lib_search_path_spec | sed -e 's/;/ /'` ; then
AC_MSG_ERROR(PATH_SEPARATOR not set, but $CC -print-search-dirs contains semicolons)
elif test "x$sys_lib_search_path_spec" != `echo x$sys_lib_search_path_spec | sed -e 's/:/ /'` ; then
AC_MSG_ERROR(PATH_SEPARATOR not set, but $CC -print-search-dirs contains colons)
fi
fi
;;
yes,pw32*)
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'