to handle shared/static library option by using AM_PROG_LIBTOOL