automake
[Top][All Lists]
Advanced

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

RE: What to check into repository?


From: Hongliang Wang
Subject: RE: What to check into repository?
Date: Tue, 4 Dec 2007 08:35:31 +0000


Thanks for your advice.

I checked in Makefile.in Makefile.am and configure.ac. And also an execute file 
called autogen.sh, because this file can be used to generate other things 
automatically. However, when I check out and execute the autogen.sh and make, 
compiling fails with the following error

address@hidden> make
cd . && \
  /bin/sh /home/jigsaw/dev/jhwgu/src/jz/missing --run automake-1.9 --gnu  
Makefile
Makefile.am: required file `./NEWS' not found
Makefile.am: required file `./AUTHORS' not found
Makefile.am: required file `./ChangeLog' not found
Makefile.am:10: `dist_doc_DATA' is used but `docdir' is undefined
make: *** [Makefile.in] Error 1

Here is the my autogen.sh
==================================================
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
# This was lifted from the Gimp, and adapted slightly by
# Raph Levien .

DIE=0

PROJECT=zizzy

(autoconf --version) < /dev/null> /dev/null 2>&1 || {
        echo
        echo "You must have autoconf installed to compile $PROJECT."
        echo "Download the appropriate package for your distribution,"
        echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/";
        DIE=1
}

# Do we really need libtool?
(libtool --version) < /dev/null> /dev/null 2>&1 || {
        echo
        echo "You must have libtool installed to compile $PROJECT."
        echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz";
        echo "(or a newer version if it is available)"
        DIE=1
}

(automake --version) < /dev/null> /dev/null 2>&1 || {
        echo
        echo "You must have automake installed to compile $PROJECT."
        echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz";
        echo "(or a newer version if it is available)"
        DIE=1
}

if test "$DIE" -eq 1; then
        exit 1
fi

if test -z "$*"; then
        echo "I am going to run ./configure with no arguments - if you wish "
        echo "to pass any to it, please specify them on the $0 command line."
fi

case $CC in
*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
esac

for dir in .
do
        echo processing $dir
        (cd $dir; \
        aclocalinclude="$ACLOCAL_FLAGS"; \
        aclocal $aclocalinclude; \
        autoheader; automake --add-missing --gnu $am_opt; autoconf)
done

./configure "$@"

echo
echo "Now type 'make' to compile $PROJECT."

Here is my Makefile.am
==================================
# Makefile.am for zizzy
# needed by automake

AUTOMAKE_OPTIONS = gnu
SUBDIRS = gen ora util
man_MANS = doc/zizzy.man
EXTRA_DIST = $(man_MANS)
EXTRA_DIST += doc/AUTHORS doc/COPYING doc/ChangeLog \
                doc/NEWS doc/TODO
dist_doc_DATA = AUTHORS COPYING ChangeLog NEWS TODO \
                zizzy.man

Here is my configuare.ac
==================================
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT(zizzy, 0.1, address@hidden)
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([config.h.in])
AM_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [main])

# Checks for header files.
AC_FUNC_ALLOCA
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_C_VOLATILE

# Checks for library functions.
AC_FUNC_CLOSEDIR_VOID
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_FUNC_VPRINTF
# Large File support
AC_FUNC_FSEEKO
AC_SYS_LARGEFILE
# end
AC_CHECK_FUNCS([memset sqrt strchr strerror])
AC_PROG_RANLIB

#PKG_CHECK_MODULES(glib, glib-2.0>= 2.10)
PKG_CHECK_MODULES([DEPS], [glib-2.0>= 2.10])
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)

AC_CONFIG_FILES([Makefile
                 gen/Makefile
                 ora/Makefile
                 util/Makefile])
AC_OUTPUT

Does anybody know how to solve this problem?
Thanks!

_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE




reply via email to

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