From 6fdb214b71a76ef72c2b8db4f82e50fd92e3c6fd Mon Sep 17 00:00:00 2001 From: gustavoromero Date: Fri, 3 Nov 2000 20:03:26 +0000 Subject: [PATCH] fixing autoconfiguration --- eo/Makefile.am | 13 ++++++++++--- eo/configure.in | 41 ++++++++++++++++++++++++++++++++--------- 2 files changed, 42 insertions(+), 12 deletions(-) diff --git a/eo/Makefile.am b/eo/Makefile.am index fdb6d65c..a65d4c9c 100644 --- a/eo/Makefile.am +++ b/eo/Makefile.am @@ -4,13 +4,20 @@ ## ############################################################################### -SUBDIRS = src test win doc +SUBDIRS = src test win doc app #Directory for documents DOCDIR = ~/public_html/eodocs #Directory for indices -- not useful for the user IDXDIR = ~/index -EXTRA_DIST=LICENSE +EXTRA_DIST=LICENSE +############################################################################### - +all: + for i in $(SUBDIRS); do pushd $$i && $(MAKE) all; popd; done + +clean: + for i in $(SUBDIRS); do pushd $$i && $(MAKE) clean; popd; done + +############################################################################### \ No newline at end of file diff --git a/eo/configure.in b/eo/configure.in index c8be4aba..0c492c55 100644 --- a/eo/configure.in +++ b/eo/configure.in @@ -1,15 +1,38 @@ +dnl Process this file with autoconf to produce a configure script. AC_INIT(src/eo) dnl Change the version number here -AM_INIT_AUTOMAKE(eo, 0.9.2) - -AC_PROG_CXX - -CXXFLAGS="-Wall -g" - -AM_PROG_LIBTOOL +AM_INIT_AUTOMAKE(eo, 0.9.11) +dnl Checks for maintainer mode AM_MAINTAINER_MODE -dnl add Makefiles that must be modified by the configuration here -AC_OUTPUT(Makefile src/Makefile src/es/Makefile src/ga/Makefile src/gp/Makefile src/obsolete/Makefile src/other/Makefile src/utils/Makefile test/Makefile win/Makefile doc/Makefile contrib/Makefile) +dnl Checks for programs. +AC_PROG_CXX +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET +AC_PROG_RANLIB + +dnl Checks for libraries. +dnl Replace `main' with a function in -leo: +AC_CHECK_LIB(eo, main) +dnl Replace `main' with a function in -leoutils: +AC_CHECK_LIB(eoutils, main) +dnl Replace `main' with a function in -lm: +AC_CHECK_LIB(m, main) + +dnl Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS(limits.h) + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_C_INLINE +AC_TYPE_SIZE_T + +dnl Checks for library functions. +AC_CHECK_FUNCS(select) + +AC_OUTPUT(src/obsolete/Makefile doc/Makefile src/Makefile src/utils/Makefile src/other/Makefile win/Makefile src/gp/Makefile src/es/Makefile src/ga/Makefile test/Makefile contrib/Makefile Makefile app/Makefile app/gprop/Makefile) +