bugCal3D - 3d character animation library - Bugs: bug #6470, autogen.sh doesn't reckognise for...

 
 
Show feedback again

bug #6470: autogen.sh doesn't reckognise for autoconf 2.60

Submitted by:  None
Submitted on:  Fri 28 Jul 2006 07:29:12 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 03 Sep 2006 10:19:04 AM UTC, comment #2:

Without the two echo commands of course :)

Sigurd Schneider <sg313>
Sun 03 Sep 2006 10:11:55 AM UTC, comment #1:

I'd prefere:

>>>--- cal3d/autogen.sh 2005-08-24 19:34:37.000000000 +0200

+++ cal3d/autogen.sh-new 2006-09-03 12:01:52.000000000 +0200
@@ -31,11 +31,17 @@
fi

autoconf=''
-for at in autoconf autoconf-2.53 autoconf-2.54 autoconf-2.55 autoconf-2.56 autoconf-2.57 autoconf-2.58 autoconf-2.59; do
+inst_autoconfs=''
+for p in $( echo $PATH | sed 's/:/ /g'); do
+ inst_autoconfs="$inst_autoconfs "`find $p/autoconf* 2>/dev/null`
+done;
+echo $inst_autoconfs
+for at in $inst_autoconfs; do
+ echo $at
if $at --version < /dev/null > /dev/null 2>&1 ; then
at_version=`$at --version | grep -i 'autoconf' | sed 's/^[^0-9]*\(.*\)/\1/'`
case $at_version in
- 2.5?)
+ 2.[56789]*)
autoconf="$at"
;;
esac
<<<
This patch has the advantage that it searches PATH for autoconfs, checks all that were found, accepts 2.50 <= versions < 3.00, including version like 2.59d.

Sigurd Schneider <sg313>
Fri 28 Jul 2006 07:29:12 PM UTC, original submission:

Version: fresh cvs
It worked for me after fixing it - it generated a good configure.

--- autogen.sh.orig 2006-07-28 21:18:26.000000000 +0200
+++ autogen.sh 2006-07-28 21:19:40.000000000 +0200
@@ -35,7 +35,7 @@
if $at --version < /dev/null > /dev/null 2>&1 ; then
at_version=`$at --version | grep -i 'autoconf' | sed 's/^[^0-9]*\(.*\)/\1/'`
case $at_version in
- 2.5?)
+ 2.5?|2.6?)
autoconf="$at"
;;
esac

2.[56]? would work too

Anonymous

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sg313 (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup