automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

distcheck with libtool


From: Robert Collins
Subject: distcheck with libtool
Date: Sun, 14 Apr 2002 00:01:04 +1000

Using 
$ autoconf --version
autoconf (GNU Autoconf) 2.53
$ automake --version
automake (GNU automake) 1.6
$ libtoolize --version
libtoolize (GNU libtool) 1.4e

With the appended Makefile.am and configure.in, make distcheck fails
with
===
ERROR: files left after distclean:
./src/.libs/GetOption.o
./src/.libs/Option.o
./src/.libs/BoolOption.o
./src/GetOption.o
./src/Option.o
./src/BoolOption.o
./testoption
./a.exe
make[1]: *** [distcleancheck] Error 1
====

Is this something that libtool or automake is responsible for?

==Makefile.am==
## Process this file with automake to produce Makefile.in
#
# $Id: Makefile.am,v 1.3 2002/01/13 14:16:17 robertc Exp $
#

AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects VERSION=1.5
##DIST_SUBDIRS  = src
##SUBDIRS               = src

DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*

AM_CXXFLAGS = -I$(top_srcdir)/include

getoptincludedir = $(includedir)/getopt++

lib_LTLIBRARIES = libgetopt++.la
check_PROGRAMS = testoption

libgetopt___la_SOURCES = src/GetOption.cc src/Option.cc
src/BoolOption.cc
libgetopt___la_LDFLAGS = -lstdc++ -version-info 0:0:0

getoptinclude_HEADERS = include/Option.h include/GetOption.h \
        include/BoolOption.h

testoption_SOURCES = tests/testoption.cc
testoption_LDADD = libgetopt++.la

== configure.in ==
dnl
dnl  Configuration input file for GetOpt++
dnl
dnl  Robert Collins, address@hidden
dnl
dnl  $Id: configure.in,v 1.5 2002/03/01 12:14:39 robertc Exp $
dnl
dnl
dnl
AC_INIT(src/GetOption.cc)
AC_PREREQ(2.52)
AC_CONFIG_AUX_DIR(cfgaux)
AM_INIT_AUTOMAKE(barch, 0.0.1-DEVEL)
AM_CONFIG_HEADER(include/autoconf.h)
AC_REVISION($Revision: 1.5 $)dnl
AC_PREFIX_DEFAULT(/usr/local/barch)
AM_MAINTAINER_MODE

dnl Set default LDFLAGS
if test -z "$LDFLAGS"; then
        LDFLAGS="-g"
fi

PRESET_CFLAGS="$CFLAGS"

dnl Check for GNU cc
AC_LANG_CPLUSPLUS
dnl AC_API_WIN32
AC_PROG_CXX
AM_PROG_CC_C_O
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_PROG_LIBTOOL

CRYPTLIB=''
REGEXLIB=''     # -lregex
LIBREGEX=''     # libregex.a

dnl find out the exe extension for this platform. If it's not empty, use
it for CGI's as well.
AC_EXEEXT
AC_OBJEXT

AC_CHECK_HEADERS( \
        unistd.h \
        string   \
        string.h
)

AC_C_CONST
AC_C_BIGENDIAN

AC_TYPE_SIZE_T 
AC_CHECK_TYPE(ssize_t, int)
AC_TYPE_PID_T
AC_TYPE_MODE_T

dnl Check for special functions
AC_FUNC_ALLOCA

dnl Check for needed libraries

AC_CHECK_LIB(regex, main, [REGEXLIB="-lregex"])
AC_CHECK_LIB(m, main)

dnl Check for libcrypt
dnl We use crypt(3) which may be in libc, or in libcrypt (eg FreeBSD)
AC_CHECK_LIB(crypt, crypt, [CRYPTLIB="-lcrypt"])
AC_SUBST(CRYPTLIB)

dnl Check for pthreads
dnl We use pthreads when doing ASYNC I/O
AC_CHECK_LIB(pthread, main, [PTHREADLIB="-lpthread"])
AC_SUBST(PTHREADLIB)

dnl Check for librt
dnl We use AIO in the coss store
AC_CHECK_LIB(rt, aio_read, [AIOLIB="-lrt"])
AC_SUBST(AIOLIB)

dnl Check for library functions
dnl AC_CHECK_FUNCS(\
dnl )


AC_OUTPUT([\
        Makefile
])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]