diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-04-27 00:47:54 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-04-27 00:47:54 +0000 |
commit | 34eb54c49bb64f74e8ef8945fb40d4172bb271f5 (patch) | |
tree | 08507e53cba7b4617c70dadde22b030992bce73b | |
parent | aaaf025d47294c870658dcb032d512973696a4e9 (diff) | |
download | xine-lib-34eb54c49bb64f74e8ef8945fb40d4172bb271f5.tar.gz xine-lib-34eb54c49bb64f74e8ef8945fb40d4172bb271f5.tar.bz2 |
Check about libtool version.
CVS patchset: 33
CVS date: 2001/04/27 00:47:54
-rw-r--r-- | configure.in | 8 | ||||
-rw-r--r-- | m4/_xine.m4 | 22 |
2 files changed, 29 insertions, 1 deletions
diff --git a/configure.in b/configure.in index db2c64e9c..dab75d31c 100644 --- a/configure.in +++ b/configure.in @@ -5,10 +5,15 @@ dnl AC_INIT(src/xine-engine/xine.c) dnl -dnl Required Autoconf Version 2.13 +dnl Require autoconf version 2.13 dnl AC_PREREQ(2.13) +dnl +dnl Require libtool minimum version 1.3.5 +dnl +AC_PREREQ_LIBTOOL(1.3.5,,AC_MSG_ERROR(*** You should have libtool >= 1.3.5 installed ***)) + XINE_MAJOR=0 XINE_MINOR=5 @@ -388,6 +393,7 @@ AC_SUBST(ACLOCAL_DIR) AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, no) + dnl dnl Output configuration files dnl diff --git a/m4/_xine.m4 b/m4/_xine.m4 index e59117a22..3d994b592 100644 --- a/m4/_xine.m4 +++ b/m4/_xine.m4 @@ -1,4 +1,26 @@ dnl +dnl Check for minimum version of libtool +dnl AC_PREREQ_LIBTOOL([MINIMUM VERSION],[ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]) +AC_DEFUN([AC_PREREQ_LIBTOOL], + [ + lt_min_full=ifelse([$1], ,1.3.5,$1) + lt_min=`echo $lt_min_full | sed -e 's/\.//g'` + AC_MSG_CHECKING(checking for libtool >= $lt_min_full) + lt_version="`grep ^VERSION ./libtool | sed -e 's/\.//g' | sed -e 's/VERSION\=//'`" + + if test $lt_version -lt 100; then + lt_version=`expr $lt_version \* 10` + fi + + if test $lt_version -lt $lt_min; then + AC_MSG_RESULT(no) + ifelse([$3], , :, [$3]) + fi + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) + ]) + +dnl AC_DEFUN([AC_CHECK_LIRC], [AC_ARG_ENABLE(lirc, [ --disable-lirc Turn off LIRC support.], |