-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
93 lines (79 loc) · 2.58 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
dnl Process this file with autoconf to produce a configure script.
AC_INIT([pcb-plugins], [0.0.2])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
# Try to figure out if we are building from git sources.
# If we are then unless building of the documentation has been disabled
# then just require the user have all the right tools.
# Users building from a tarball won't need latex, makeinfo,
# etc. but if you're already downloading development sources, then
# it is not unreasonable to require development tools.
# What motivated this is that using maintainer mode proved to cause
# regular confusion.
pcb_plugins_sources="tarball"
AC_MSG_CHECKING([if you are building from a git checkout])
pcb_plugins_git_version=no
if test -f $srcdir/.gitignore ; then
pcb_plugins_git_version=yes
AC_MSG_RESULT([yes])
pcb_plugins_sources="GIT"
else
AC_MSG_RESULT([no])
fi
AM_CONDITIONAL(GIT_VERSION, test x$pcb_plugins_git_version = xyes)
AC_ISC_POSIX
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CC_STDC
AC_HEADER_STDC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_AWK
AC_PROG_CPP
# AC_PROG_MKDIR_P
# is a backport of autoconf-2.60's AC_PROG_MKDIR_P.
# Remove this macro when we can assume autoconf >= 2.60.
m4_ifdef([AC_PROG_MKDIR_P], [], [
AC_DEFUN([AC_PROG_MKDIR_P],
[AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
MKDIR_P='$(mkdir_p)'
AC_SUBST([MKDIR_P])])])
AC_PROG_MKDIR_P
pkg_modules="gtk+-2.0 >= 2.0.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
GETTEXT_PACKAGE=pcb-plugins
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
dnl Add the languages which your application supports here.
ALL_LINGUAS=""
AM_GLIB_GNU_GETTEXT
# Create makefiles for (sub)directories.
AC_CONFIG_FILES([
Makefile
])
# FIXME: add Makefile.in files to get the following
#src/plugins/Makefile
AC_OUTPUT
# Print some results.
expandedXDGDATADIR=`eval "echo $XDGDATADIR"`
expandedKDEDATADIR=`eval "echo $KDEDATADIR"`
AC_MSG_RESULT([
-----------------------------------------------
Configuration summary for $PACKAGE $VERSION:
Source tree distribution: $pcb_plugins_sources
Build Doxygen documentation: $docs_yesno
xdg data directory: $expandedXDGDATADIR
KDE data directory: $expandedKDEDATADIR
CC: $CC
CXX: $CXX
CPPFLAGS: $CPPFLAGS
CFLAGS: $CFLAGS
CXXFLAGS: $CXXFLAGS
LIBS: $LIBS
-----------------------------------------------
])
# EOF