configure.ac: respect 'g' variants of libtool/libtoolize
authorAndreas Bießmann <andreas@biessmann.de>
Tue Mar 18 17:01:10 2014 +0100 (2014-03-18)
changeset 3296d3a628e69a46
parent 3295 db3f7ffabdc8
child 3297 021ddc052689
configure.ac: respect 'g' variants of libtool/libtoolize

BSD OS'es (OS X for me) provide GNU tools with prefixed 'g'. To find correct
versions of libtool/libtoolize on those systems search also for
glibtool/glibtoolize.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: search for the g-variant first]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <2f1530b54afcb6a00e1d.1395158786@andreas-mbp.er.biessmann.org>
Patchwork-Id: 331467
configure.ac
     1.1 --- a/configure.ac	Fri Apr 18 22:46:06 2014 +0200
     1.2 +++ b/configure.ac	Tue Mar 18 17:01:10 2014 +0100
     1.3 @@ -242,7 +242,7 @@
     1.4                         [Specify the full PATH to GNU libtool >= 1.5.26]),
     1.5          [ac_cv_path_LIBTOOL=$withval])])
     1.6  AC_CACHE_CHECK([for GNU libtool >= 1.5.26], [ac_cv_path_LIBTOOL],
     1.7 -    [AC_PATH_PROGS_FEATURE_CHECK([LIBTOOL], [libtool],
     1.8 +    [AC_PATH_PROGS_FEATURE_CHECK([LIBTOOL], [glibtool libtool],
     1.9          [[LIBTOOL_ver=$($ac_path_LIBTOOL --version 2>&1 \
    1.10                          |$EGREP '\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)')
    1.11            test -n "$LIBTOOL_ver" && ac_cv_path_LIBTOOL=$ac_path_LIBTOOL ac_path_LIBTOOL_found=:]],
    1.12 @@ -258,7 +258,7 @@
    1.13                         [Specify the full PATH to GNU libtoolize >= 1.5.26]),
    1.14          [ac_cv_path_LIBTOOLIZE=$withval])])
    1.15  AC_CACHE_CHECK([for GNU libtoolize >= 1.5.26], [ac_cv_path_LIBTOOLIZE],
    1.16 -    [AC_PATH_PROGS_FEATURE_CHECK([LIBTOOLIZE], [libtoolize],
    1.17 +    [AC_PATH_PROGS_FEATURE_CHECK([LIBTOOLIZE], [glibtoolize libtoolize],
    1.18          [[LIBTOOLIZE_ver=$($ac_path_LIBTOOLIZE --version 2>&1 \
    1.19                          |$EGREP '\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)')
    1.20            test -n "$LIBTOOLIZE_ver" && ac_cv_path_LIBTOOLIZE=$ac_path_LIBTOOLIZE ac_path_LIBTOOLIZE_found=:]],