Changeset 37f27bc for configure.ac


Ignore:
Timestamp:
Jul 17, 2009, 9:44:39 PM (9 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0ce0535
Parents:
4f0a2ee
git-author:
Nelson Elhage <nelhage@mit.edu> (06/01/09 15:28:35)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/17/09 21:44:39)
Message:
Switch the build system to using automake.

Use automake for the build system, which lets us clean a bunch of
cruft out of Makefile.in.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rc50f589 r37f27bc  
    11dnl $Id$
    22dnl Process this file with autoconf to produce a configure script.
    3 AC_INIT(owl.c)
     3AC_INIT([BarnOwl],[1.1.2],[bug-barnowl@mit.edu])
     4AM_INIT_AUTOMAKE([-Wall foreign])
    45
    5 AC_CONFIG_HEADER(config.h)
     6AC_CONFIG_HEADER([config.h])
    67
    78AC_PROG_CC
    8 
    9 dnl If we're using GCC, enable all warnings
    10 if test "$GCC" = yes; then
    11      CFLAGS="$CFLAGS -Wall -g";
    12 fi
    139
    1410dnl Check for Athena
     
    125121LDFLAGS="${GLIB_LIBS} ${LDFLAGS}"
    126122
     123if test "x${prefix}" = "xNONE"; then
     124   prefix="${ac_default_prefix}"
     125fi
     126
     127AC_DEFINE_UNQUOTED([DATADIR],["${prefix}/share/${PACKAGE}"],
     128                   [Package data directory])
     129
    127130dnl Checks for typedefs, structures, and compiler characteristics.
    128 
    129 dnl Support --program-{prefix,suffix,transform}
    130 AC_ARG_PROGRAM
    131131
    132132AC_SUBST(XSUBPPDIR)
     
    135135
    136136AC_PROG_INSTALL
     137AC_PROG_RANLIB
    137138
    138 AC_CONFIG_SUBDIRS(libfaim)
    139 
    140 AC_OUTPUT(Makefile)
     139AC_CONFIG_FILES([Makefile libfaim/Makefile])
     140AC_OUTPUT([perl/modules/Makefile])
Note: See TracChangeset for help on using the changeset viewer.