paragui-cvs
[Top][All Lists]
Advanced

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

[paragui-cvs] CVS: paragui/sdk/sampleapp Makefile.am,NONE,1.1.2.1 autoge


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/sdk/sampleapp Makefile.am,NONE,1.1.2.1 autogen.sh,NONE,1.1.2.1 configure.in,NONE,1.1.2.1
Date: Thu, 04 Jul 2002 04:22:45 -0400

Update of /cvsroot/paragui/paragui/sdk/sampleapp
In directory subversions:/tmp/cvs-serv22739/sdk/sampleapp

Added Files:
      Tag: devel-1-0
        Makefile.am autogen.sh configure.in 
Log Message:
added autoconf/automake sample



--- NEW FILE ---
SUBDIRS = \
        src

$(PACKAGE)-$(VERSION).tar.gz: dist

rpm: $(PACKAGE)-$(VERSION).tar.gz
        cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
        rpm -ba $(PACKAGE).spec

--- NEW FILE ---
cd `dirname $0`
aclocalinclude="$ACLOCAL_FLAGS"

echo "Running aclocal $aclocalinclude ..."
aclocal $aclocalinclude || {
    echo
    echo "**Error**: aclocal failed. This may mean that you have not"
    echo "installed all of the packages you need, or you may need to"
    echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
    echo "for the prefix where you installed the packages whose"
    echo "macros were not found"
    exit 1
}

echo "Running automake ..."
automake -c -a --foreign || ( echo "***ERROR*** automake failed." ; exit 1 )

echo "Running autoconf ..."
autoconf || ( echo "***ERROR*** autoconf failed." ; exit 1 )

echo "Please run ./configure now"

--- NEW FILE ---
dnl Process this file with autoconf to produce a configure script.
AC_INIT(Makefile.am)

dnl Setup for automake
PARAGUI_VERSION=1.0.3

SAMPLEAPP_VERSION=0.0.1

dnl Detect the canonical host and target build environment
AC_CANONICAL_HOST
AC_CANONICAL_TARGET

AM_INIT_AUTOMAKE(sampleapp, $SAMPLEAPP_VERSION)

dnl Check for tools

AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_INSTALL
AC_C_CONST

dnl Check for PARAGUI

AM_PATH_PARAGUI($PARAGUI_VERSION,
            :,
            AC_MSG_ERROR([*** PARAGUI version $PARAGUI_VERSION not found!])
)

CXXFLAGS="$CFLAGS"
AC_SUBST(CXXFLAGS)

# Finally create all the generated files
AC_OUTPUT([
Makefile
])




reply via email to

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