[Nexus-developers] NeXus autotools

Ray Osborn ROsborn at anl.gov
Fri Feb 20 21:37:05 GMT 2004


On 2/20/04 10:47, "Ray Osborn" <ROsborn at anl.gov> wrote:

> 1) I don't have libtoolize - I have glibtoolize instead.
> 
> % sh autogen.sh
> autogen.sh: line 1: libtoolize: command not found
> Using autoconf (GNU Autoconf) 2.57
> Using automake (GNU automake) 1.6.3
> Using 
> This libtool version is not supported by NeXus.
> NeXus only supports libtool 1.5.*.
> You may download it from ftp://ftp.gnu.org/gnu/libtool
> 
> When I change autogen to use glibtoolize, it works.
> 

Google came up with the following patch for the above problem.

-if test -z "`glibtoolize --version 2>&1|head -1|egrep '1.4|1.5'`"; then
+LIBTOOL=`which glibtoolize 2>/dev/null`
+if test -z "$LIBTOOL"; then
+    LIBTOOL=`which libtoolize 2>/dev/null`
+fi
+if test -z "$LIBTOOL" -o -z "`$LIBTOOL --version 2>&1|head -1|egrep
'1.4|1.5'`"; then
        echo "Libtool 1.4 is required. Aborting build...";
        exit 1;
fi

Jens and Freddie, does the above fit into your autotools scheme anywhere?
It's obviously not unique to Mac OS X.

Ray  
-- 
Dr Ray Osborn                Tel: +1 (630) 252-9011
Materials Science Division   Fax: +1 (630) 252-7777
Argonne National Laboratory  E-mail: ROsborn at anl.gov
Argonne, IL 60439-4845




More information about the NeXus-developers mailing list