help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autoconf and ranlib


From: Sensei
Subject: Autoconf and ranlib
Date: Tue, 20 Jul 2004 10:38:03 +0200
User-agent: Mozilla Thunderbird 0.5 (X11/20040409)

Hi.

Back again on autoconf :) Now I've succeeded in doing a nice autoconf-enabled project, but I've got a problem on OSX.

When using static libraries, on OSX the test for libraries could easily fail. When linking, ld says to run ``ranlib'' on the libraries, but a user just has a ``configure: checking for -lmzscheme... no'', which is quite untrue.

Is there a way of checking the library with ranlib? Something different from:

if test "$OSTYPE" == "Darwin"; then
        AC_CHECK_FILE(path_to_library)
        ranlib path_to_library
else
        echo "skipping ranlib on this platform"
fi

--
Sensei    <mailto:senseiwa@tin.it>
          <icqnum:241572242>
          <msn-id:Sensei_Sen@hotmail.com>
Error: Keyboard not found. Press F1 to continue...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]