-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfigure.ac
More file actions
92 lines (77 loc) · 2 KB
/
Copy pathconfigure.ac
File metadata and controls
92 lines (77 loc) · 2 KB
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
AC_PREREQ(2.60)
AC_INIT([libfpx],[1.3.1-10],[http://www.imagemagick.org],[libfpx])
AC_CONFIG_SRCDIR(fpx/buffdesc.h)
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([fpxlib-config.h])
AC_CONFIG_FILES(Makefile basics/Makefile fpx/Makefile jpeg/Makefile \
ole/Makefile ri_image/Makefile oless/Makefile)
# Set version
MAJOR_VERSION=1
MINOR_VERSION=3
MICRO_VERSION=1
PATCH_VERSION=10
echo "configuring Digital Imaging Group FlashPIX ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
AC_SUBST(MAJOR_VERSION)dnl
AC_SUBST(MINOR_VERSION)dnl
AC_SUBST(MICRO_VERSION)dnl
AC_SUBST(PATCH_VERSION)dnl
# Ensure that make can run correctly
AC_CANONICAL_SYSTEM
AM_SANITY_CHECK
AM_INIT_AUTOMAKE([foreign subdir-objects dist-zip dist-bzip2 dist-xz tar-ustar -Wall])
# Add configure option --enable-maintainer-mode which enables dependency
# checking and generation useful to package maintainers. This is made an
# option to avoid confusing end users.
AM_MAINTAINER_MODE
#
# Specify path to shared libstdc++ if not in normal location
#
AC_ARG_WITH(libstdc,
[ --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)],
[if test "$withval" != no -a "$withval" != yes; then
if test -d "$withval"; then
LIBSTDCLDFLAGS="-L$withval"
fi
fi])
AC_SUBST(LIBSTDCLDFLAGS)
CPPFLAGS="-D_UNIX $CPPFLAGS"
# Check for programs
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_CPP
AM_PROG_LD
AC_SUBST(LD)
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LN_S
#
# Enable OS features.
#
AC_GNU_SOURCE
#
# Tests for Windows
#
AC_EXEEXT
AC_OBJEXT
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_C_BIGENDIAN
AC_CHECK_HEADERS([wchar.h sys/statfs.h sys/statvfs.h sys/time.h])
# <sys/mount.h> depends on <sys/param.h>
AC_CHECK_HEADERS([sys/param.h])
AC_CHECK_HEADERS([sys/mount.h], [], [], [#if HAVE_SYS_PARAM_H
# include <sys/param.h>
# endif ])
#
# Configure libtool
#
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(yes)
AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)
AC_LANG_CPLUSPLUS
AC_PROG_CXX
AC_OUTPUT()