source: trunk/athena/bin/athdir/configure.ac @ 25919

Revision 25919, 1.0 KB checked in by achernya, 12 years ago (diff)
Convert athdir to automake
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
5AC_INIT([athdir], [10.1], [debathena@mit.edu])
6AM_INIT_AUTOMAKE([foreign -Wall])
7AM_MAINTAINER_MODE([enable])
8m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9AC_CONFIG_MACRO_DIR([m4])
10AC_CONFIG_SRCDIR([src/athdir.c])
11AC_CONFIG_HEADERS([config.h])
12
13# Checks for programs.
14AC_PROG_CC
15AM_PROG_CC_C_O
16# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
17m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
18LT_INIT
19
20# Checks for libraries.
21
22# Checks for header files.
23AC_CHECK_HEADERS([stdlib.h string.h sys/param.h])
24
25# Checks for typedefs, structures, and compiler characteristics.
26
27# Checks for library functions.
28AC_FUNC_MALLOC
29AC_FUNC_REALLOC
30AC_CHECK_FUNCS([strchr])
31
32# More stuff
33PKG_CHECK_MODULES([LIBATHDIR], [athdir])
34AC_SUBST([LIBATHDIR_CFLAGS])
35AC_SUBST([LIBATHDIR_LIBS])
36
37AC_CONFIG_FILES([Makefile
38                 src/Makefile
39                 man/Makefile
40])
41AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.