Hi, I seem to be missing something and can't quite figure it out.
I get these messages during autoreconf: >>build_libposix> autoreconf >configure.ac:29: required file `build-aux/ltmain.sh' not found >libposix/Makefile.am: object `pt_chown.$(OBJEXT)' \ > created both with libtool and without >autoreconf: automake failed with exit status: 1 My configure.ac looks like this: > AC_INIT([gnulib],[2010.09.18],[bug-gnu...@gnu.org],[libposix], > [http://www.gnu.org/software/gnulib]) > AC_CONFIG_SRCDIR([libposix/version.c]) > AC_CONFIG_AUX_DIR([build-aux]) > AM_INIT_AUTOMAKE > AC_CONFIG_HEADERS([config.h]) > AC_PROG_CC > AC_PROG_INSTALL > AC_PROG_MAKE_SET > # For autobuild. > AC_CANONICAL_BUILD > AC_CANONICAL_HOST > m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace > m4_pattern_allow([^gl_ES$])dnl a valid locale name > m4_pattern_allow([^gl_LIBOBJS$])dnl a variable > m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable > AC_PROG_RANLIB > AM_PROG_CC_C_O > gl_USE_SYSTEM_EXTENSIONS > AC_FUNC_FSEEKO > gl_FP_IEEE > AC_FUNC_FSEEKO > AC_FUNC_FSEEKO > dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode > dnl for the builtin va_copy to work. With Autoconf 2.60 or later, > dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC > dnl shouldn't hurt, though installers are on their own to set c99 mode. > AC_PROG_CC_STDC > gl_THREADLIB_EARLY > AC_PROG_LIBTOOL > gl_libdeps= > gl_ltlibdeps= > AC_DEFUN([gl_INIT], [ with the rest of the file dumped into gl_INIT and invoked at the very end. The piece of the Makefile.am that is causing trouble is: > ## begin gnulib module pt_chown > > # TODO: Add rules for installing as setuid root (chown root, chmod a=rx,u+s). > # The next line can be removed once we assume automake >= 1.11. > pkglibexecdir = $(libexecdir)/@PACKAGE@ > pkglibexec_PROGRAMS = pt_chown > pt_chown_LDADD = libposix.la > > EXTRA_DIST += pt_chown.c pty-private.h > > EXTRA_libposix_la_SOURCES += pt_chown.c > > ## end gnulib module pt_chown Here are my edits to the generated configure.ac file, as a backward patch, RE: http://www.gnu.org/software/gnulib/manual/html_node/POSIX-Substitutes-Library.html --- configure.ac 2010-09-18 14:54:15.000000000 -0700 +++ configure.ac-saved 2010-09-18 12:33:25.000000000 -0700 @@ -1,9 +1,10 @@ -AC_INIT([gnulib],[2010.09.18],[bug-gnu...@gnu.org],[libposix], - [http://www.gnu.org/software/gnulib]) -AC_CONFIG_SRCDIR([libposix/version.c]) +# Process this file with autoconf to produce a configure script. +AC_INIT([dummy], [0]) AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE + AC_CONFIG_HEADERS([config.h]) + AC_PROG_CC AC_PROG_INSTALL AC_PROG_MAKE_SET @@ -26,7 +33,8 @@ dnl shouldn't hurt, though installers are on their own to set c99 mode. AC_PROG_CC_STDC gl_THREADLIB_EARLY -AC_PROG_LIBTOOL +AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) +gl_cond_libtool=false gl_libdeps= gl_ltlibdeps= AC_DEFUN([gl_INIT], [ @@ -37,9 +45,10 @@ m4_pushdef([gl_LIBSOURCES_LIST], []) m4_pushdef([gl_LIBSOURCES_DIR], []) gl_COMMON -gl_source_base='libposix' +gl_source_base='gllib' gl_FUNC__EXIT gl_STDLIB_MODULE_INDICATOR([_Exit]) + AC_REQUIRE([gl_HEADER_SYS_SOCKET]) if test "$ac_cv_header_winsock2_h" = yes; then AC_LIBOBJ([accept]) @@ -819,11 +1223,12 @@ AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) ]) - LIBPOSIX_LIBDEPS="$gl_libdeps" - AC_SUBST([LIBPOSIX_LIBDEPS]) - LIBPOSIX_LTLIBDEPS="$gl_ltlibdeps" - AC_SUBST([LIBPOSIX_LTLIBDEPS]) + LIBGNU_LIBDEPS="$gl_libdeps" + AC_SUBST([LIBGNU_LIBDEPS]) + LIBGNU_LTLIBDEPS="$gl_ltlibdeps" + AC_SUBST([LIBGNU_LTLIBDEPS]) ]) + # Like AC_LIBOBJ, except that the module name goes # into gl_LIBOBJS instead of into LIBOBJS. AC_DEFUN([gl_LIBOBJ], [ @@ -843,7 +1250,7 @@ AC_DEFUN([gl_LIBSOURCES], [ m4_foreach([_gl_NAME], [$1], [ m4_if(_gl_NAME, [alloca.c], [], [ - m4_define([gl_LIBSOURCES_DIR], [libposix]) + m4_define([gl_LIBSOURCES_DIR], [gllib]) m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) ]) ]) @@ -848,6 +1255,8 @@ ]) ]) ]) + gl_INIT -AC_CONFIG_FILES([Makefile libposix/Makefile glm4/Makefile]) + +AC_CONFIG_FILES([Makefile gllib/Makefile glm4/Makefile]) AC_OUTPUT _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool