>>Makefile.am:

AUTOMAKE_OPTIONS = foreign

lib_LTLIBRARIES = libtest.la

libtest_la_SOURCES = test.cc

>>configure.in:

AC_INIT(test.cc)
AM_INIT_AUTOMAKE(test, 1.0)

AC_PROG_CXX
AC_LANG_CPLUSPLUS

AM_PROG_LIBTOOL
AC_LIBTOOL_CXX

AC_OUTPUT(Makefile)

>>test.cc:

#include <iostream>

void foo() {
   cout << "What!" << endl;
}


Reply via email to