#48 Run autogen.sh on MacOSX

closed-accepted
5
2006-06-29
2006-03-14
No

On MacOSX, GNU libtool is named 'glibtool' because of the name
conflict with the dynamic library linker. Because of this, the libtoolize
program is named 'glibtoolize'.

Because of this naming difference, autogen.sh fails. The following
patch fixes this by testing for both names for libtoolize:

Index: autogen.sh

========================
RCS file: /cvsroot/cppunit/cppunit/autogen.sh,v
retrieving revision 1.4
diff -u -r1.4 autogen.sh
--- autogen.sh 20 Jun 2001 14:17:37 -0000 1.4
+++ autogen.sh 14 Mar 2006 06:28:39 -0000
@@ -6,7 +6,16 @@

aclocal $ACLOCAL_FLAGS || \ aclocal $ACLOCAL_FLAGS -I /usr/local/share/aclocal
-libtoolize --force
+
+for l in libtoolize glibtoolize;
+do
+ ($l --version) < /dev/null > /dev/null 2>&1 && {
+ LIBTOOLIZE=$l
+ break
+ }
+done
+
+$LIBTOOLIZE --force
autoheader
automake --add-missing
autoconf

Discussion

  • Sander Temme

    Sander Temme - 2006-03-14

    Patch to make autogen.sh work on MacOSX

     
  • Sander Temme

    Sander Temme - 2006-03-14

    Logged In: YES
    user_id=864439

    This issue surfaced when I installed Apache Gump on an Xserve, where cppunit
    has been failing ever since. See http://clarus.apache.org/cppunit/cppunit-
    autogen/index.html

     
  • Sander Temme

    Sander Temme - 2006-05-13
    • assigned_to: nobody --> blep
     
  • Baptiste Lepilleur

    • status: open --> closed-accepted
     
  • Baptiste Lepilleur

    Logged In: YES
    user_id=196852

    Thanks. Patch committed!

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks