Merge from trunk.
[m6w6/libmemcached] / m4 / pandora_libtool.m4
1 dnl Copyright (C) 2009 Sun Microsystems
2 dnl This file is free software; Sun Microsystems
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 AC_DEFUN([PANDORA_LIBTOOL],[
7 AC_REQUIRE([AC_PROG_LIBTOOL])
8 dnl By requiring AC_PROG_LIBTOOL, we should force the macro system to read
9 dnl libtool.m4, where in 2.2 AC_PROG_LIBTOOL is an alias for LT_INIT
10 dnl Then, if we're on 2.2, we should have LT_LANG, so we'll call it.
11 m4_ifdef([LT_LANG],[
12 LT_LANG(C)
13 LT_LANG(C++)
14 ])
15 ])