mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-12-15 06:49:57 +08:00
0506cf492e
shared libraries * demo/Makefile.am (DLPREOPEN): use instead of -dlpreopen (STATIC): use $(STATIC), not @STATIC@ * mdemo/Makefile.am (STATIC): ditto * demo/Makefile.am, mdemo/Makefile.am (STATIC): do not use
30 lines
561 B
Plaintext
30 lines
561 B
Plaintext
dnl Initialize the hell package.
|
|
AC_INIT(hello.c)
|
|
AM_INIT_AUTOMAKE(hell,1.0)
|
|
|
|
AC_PROG_CC
|
|
AC_C_CONST
|
|
AC_EXEEXT
|
|
AM_PROG_LIBTOOL
|
|
|
|
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
|
|
STATIC=-static
|
|
DLPREOPEN=-dlpreopen
|
|
else
|
|
STATIC=
|
|
DLPREOPEN=-dlopen
|
|
fi
|
|
AC_SUBST(STATIC)
|
|
AC_SUBST(DLPREOPEN)
|
|
|
|
AM_CONDITIONAL(BINARY_HELLDL, [dnl
|
|
grep '^global_symbol_pipe=..*$' ./libtool >/dev/null])
|
|
|
|
AC_CHECK_HEADERS(string.h math.h)
|
|
|
|
AC_CHECK_LIB(m, cos, LIBADD_M="-lm", LIBADD_M=)
|
|
AC_SUBST(LIBADD_M)
|
|
|
|
dnl Output the makefile
|
|
AC_OUTPUT(Makefile)
|