blob: 807a080cef5a88465c906369e19c10289e90195e (
plain)
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT
3 AC_CONFIG_SRCDIR([src/prtget.cpp])
4 AM_INIT_AUTOMAKE(prt-get,5.18)
5
6
7 dnl Determine default prefix
8 test x$prefix = "xNONE" && prefix="$ac_default_prefix"
9
10 # Checks for programs.
11 AC_PROG_CXX
12 AC_PROG_CC
13 AC_PROG_INSTALL
14
15 AC_PREFIX_DEFAULT(/usr)
16
17 # Checks for libraries.
18
19 # Checks for header files.
20 AC_HEADER_DIRENT
21 AC_CHECK_HEADERS(unistd.h stdio.h sys/types.h sys/stat.h fnmatch.h \
22 dirent.h fcntl.h signal.h regex.h)
23
24 CFLAGS="$CFLAGS $X_CFLAGS"
25 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
26 LIBS="$LIBS $X_LIBS"
27 LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
28
29 # Checks for typedefs, structures, and compiler characteristics.
30 AC_C_CONST
31
32 # I hate you autotools
33 sysconfdir="/etc"
34 localstatedir="/var"
35
36 # Checks for library functions.
37 AM_CONFIG_HEADER(config.h)
38 AC_CONFIG_FILES([Makefile
39 src/Makefile
40 doc/Makefile
41 misc/Makefile])
42 AC_OUTPUT
|