mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added check for older libtool
This commit is contained in:
parent
ff88bf7aad
commit
d38f94a2ab
1 changed files with 18 additions and 2 deletions
20
configure.in
20
configure.in
|
|
@ -72,8 +72,24 @@ AC_ARG_WITH(versioned,
|
|||
[ --with-versioned=yes,no shared library will (not) be compiled with versioned symbols],
|
||||
versioned="$withval", versioned="yes")
|
||||
if test "$versioned" = "yes"; then
|
||||
AC_DEFINE(VERSIONED_SYMBOLS,,[compiled with versioned symbols])
|
||||
AC_MSG_RESULT(yes)
|
||||
# it seems that GNU ld versions since 2.10 are not broken
|
||||
xres=`grep VERSION= $ac_aux_dir/libtool | cut -d = -f 2`
|
||||
major=`echo $xres | cut -d . -f 1`
|
||||
minor=`echo $xres | cut -d . -f 2`
|
||||
pass=0
|
||||
if test $major -eq 1 -a $minor -gt 3; then
|
||||
pass=1
|
||||
else
|
||||
if test $major -gt 1; then
|
||||
pass=1
|
||||
fi
|
||||
fi
|
||||
if test $pass -eq 1; then
|
||||
AC_DEFINE(VERSIONED_SYMBOLS,,[compiled with versioned symbols])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(broken libtool - use libtool v1.4+; no versions)
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue