source: trunk/athena/lib/athdir/configure.ac @ 25905

Revision 25905, 1.2 KB checked in by achernya, 11 years ago (diff)
Transform athdir into an automake project; also relicense to BSD-2-Clause
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.67])
5AC_INIT([libathdir], [10.0.2], [debathena@mit.edu])
6AM_INIT_AUTOMAKE([-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
15AC_PROG_INSTALL
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
19AC_PROG_LIBTOOL
20
21# Checks for libraries.
22
23# Checks for header files.
24AC_CHECK_HEADERS([stdlib.h string.h sys/param.h])
25
26# Checks for typedefs, structures, and compiler characteristics.
27
28# Checks for library functions.
29AC_FUNC_MALLOC
30AC_FUNC_REALLOC
31AC_CHECK_FUNCS([strchr])
32
33# More stuff
34AS_IF([test x"$ATHENA_SYS" = x], [AC_MSG_ERROR([ATHENA_SYS must be set])])
35AS_IF([test x"$ATHENA_HOSTTYPE" = x], [AC_MSG_ERROR([ATHENA_HOSTTYPE must be set])])
36AC_DEFINE_UNQUOTED([ATHSYS], ["$ATHENA_SYS"], [Define the Athena System Version])
37AC_DEFINE_UNQUOTED([HOSTTYPE_$ATHENA_HOSTTYPE], [Define the type of the Athena System])
38
39
40AC_CONFIG_FILES([Makefile
41                 src/Makefile
42                 src/athdir.pc
43])
44AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.