summaryrefslogtreecommitdiff
path: root/configure.in
blob: 80728502f25d1d0f7f053ac59561e3e4f84f6342 (plain)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/test.cc)

PriorityLists_MAJOR_VERSION=1
PriorityLists_MINOR_VERSION=0
PriorityLists_MICRO_VERSION=0
PriorityLists_VERSION=$PriorityLists_MAJOR_VERSION.$PriorityLists_MINOR_VERSION.$PriorityLists_MICRO_VERSION

dnl set version info for PriorityLists.so to package rev - $MAJOR + $MINOR : $MICRO : $MINOR
PriorityLists_VERSION_INFO=1:0:0

AC_SUBST(PriorityLists_MAJOR_VERSION)
AC_SUBST(PriorityLists_MINOR_VERSION)
AC_SUBST(PriorityLists_MICRO_VERSION)
AC_SUBST(PriorityLists_VERSION)
AC_SUBST(PriorityLists_VERSION_INFO)

VERSION=$PriorityLists_VERSION
PACKAGE=PriorityLists

AM_INIT_AUTOMAKE($PACKAGE, $VERSION)

AM_CONFIG_HEADER(config.h)

AM_MAINTAINER_MODE

dnl Checks for programs.
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_CANONICAL_HOST
AM_PROG_LIBTOOL

ALL_LINGUAS="fr de"
AM_GNU_GETTEXT
if test x$USE_INCLUDED_LIBINTL = xyes; then
   LINK_SRC="$LINK_SRC intl/libgettext.h"
   LINK_DST="$LINK_DST include/libintl.h"
fi
test "$MSGFMT"  = "no" && MSGFMT  ="$missing_dir/missing msgfmt"
test "$GMSGFMT" = "no" && GMSGFMT ="$missing_dir/missing msgfmt"
test "$XGETTEXT" = ":" && XGETTEXT="$missing_dir/missing xgettext"

if test x$gt_cv_func_gettext_libintl = xyes; then
   case "$LIBS" in
   *-lintl*)   ;;
   *)          LIBS="$LIBS -lintl";;
   esac
fi

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(libintl.h fcntl.h limits.h malloc.h strings.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_BIGENDIAN
AC_C_INLINE
AC_TYPE_SIZE_T

dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_MMAP
AC_CHECK_FUNCS(getcwd getwd putenv strdup)



AC_PATH_PROG(gmakepath, gmake)
AC_PATH_PROG(unamepath, uname)
if test "x$unamepath" = x; then
  system="unknown"
else
  AC_MSG_CHECKING(system type)
  system=`$unamepath -s`
  AC_MSG_RESULT($system)
fi

AC_OUTPUT([
  Makefile
  include/Makefile
  lib/Makefile
  doc/Makefile
  src/Makefile
  po/Makefile.in
  intl/Makefile
])

echo
echo \-\-\= $PACKAGE $VERSION \=\-\-
echo

echo Build System .................... : $system
echo Build Host ...................... : $host
echo Install Prefix .................. : $prefix
echo

if test _"$gmakepath" = _; then
  echo configure complete, now type \'make\'
else
  echo configure complete, now type \'gmake\'
fi

echo