]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Version-check libtool correctly when doing an out-of-tree build
authorSimon McVittie <smcv@debian.org>
Fri, 8 Oct 2010 08:06:29 +0000 (09:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 17 Oct 2010 09:03:57 +0000 (11:03 +0200)
libtool is only created at the end of ./configure, so it doesn't make
sense to grep it in ./configure (the check would always fail the first
time). However, ltmain.sh is copied into the ${srcdir} by libtoolize and
should be safe to check at any time that configure can be run.

Signed-off-by: Simon McVittie <smcv@debian.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
configure.in

index abc4687ef0160742478cff37fdb4dd107562353a..e904956bde6511d2a73246138e0dd64034574a75 100644 (file)
@@ -115,7 +115,7 @@ AC_ARG_WITH(versioned,
   versioned="$withval", versioned="yes")
 if test "$versioned" = "yes"; then
   # it seems that GNU ld versions since 2.10 are not broken
-  xres=`grep '^VERSION=' libtool | cut -d = -f 2 | cut -d \" -f 2`
+  xres=`grep '^VERSION=' ${srcdir}/ltmain.sh | cut -d = -f 2 | cut -d \" -f 2`
   major=`echo $xres | cut -d . -f 1`
   minor=`echo $xres | cut -d . -f 2`
   pass=0