-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
50 lines (43 loc) · 1.36 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
dnl Process this file with autoconf to produce a configure script.
AC_INIT([passgen],[1.2.1])
AC_CONFIG_SRCDIR([src/passgen.c])
AM_INIT_AUTOMAKE
dnl Set of available languages.
ALL_LINGUAS="en"
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_SUBST(PKG_CPPFLAGS)
AC_SUBST(PKG_LIBS)
AC_SUBST(PKG_CFLAGS)
AC_SUBST(PKG_FFLAGS)
dnl Where to put passgen.conf
if test [ \"NONE\" == \"$prefix\" ]; then
AC_SUBST(CONFDIR, "/etc")
AC_ARG_WITH(conf,
AS_HELP_STRING([--with-conf=FILE],[where config file lives [[/etc]]]),
CONF="${withval}")
else
AC_SUBST(CONFDIR, "$prefix/etc")
AC_ARG_WITH(conf,
AS_HELP_STRING([--with-confdir=DIR],[where config file lives [[/etc]]]),
CONFDIR="${withval}")
fi
AC_MSG_NOTICE([where to store config... $CONFDIR])
AC_DEFINE_UNQUOTED(CONFDIR, "$CONFDIR", [Where to store config.])
AC_DEFINE_UNQUOTED(CONF, "$CONFDIR/passgen.conf", [Where to find passgen.conf.])
dnl Force autotools to put the exectuables where the user wants them
if test [ \"NONE\" == \"$prefix\" ]; then
AC_SUBST(BINDIR, "/usr/bin")
else
AC_SUBST(BINDIR, "$prefix/bin")
fi
dnl Force autotools to put the man files where the user wants them
if test [ \"NONE\" == \"$prefix\" ]; then
AC_SUBST(mandir, "/usr/share/man")
else
AC_SUBST(mandir, "$prefix/share/man")
fi
dnl Files to process
AC_CONFIG_FILES([Makefile etc/passgen.conf etc/Makefile src/Makefile doc/Makefile])
AC_OUTPUT