File: configure.in

package info (click to toggle)
gsmssend 1.7-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,436 kB
  • ctags: 420
  • sloc: ansic: 4,560; sh: 475; makefile: 314; sed: 93
file content (72 lines) | stat: -rw-r--r-- 1,862 bytes parent folder | download
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(configure.in)
AM_INIT_AUTOMAKE(gsmssend, 1.7)
AM_CONFIG_HEADER(config.h)

AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(PREFIX)

dnl Pick up the Gnome macros.
AM_ACLOCAL_INCLUDE(macros)

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/wait.h)

AC_TYPE_PID_T

AC_CHECK_LIB(pthread,pthread_create,,AC_MSG_ERROR(pthread lib needed))
AM_PATH_GTK(1.2.8,,AC_MSG_ERROR(gsmssend needs GTK+ 1.2.8 or higher),gthread)
GNOME_INIT

GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS

dnl Add the languages which your application supports here.
ALL_LINGUAS="fr es de it nl cs"
AM_GNU_GETTEXT

dnl Check skyutil
SKY_LIBS="error"
SKY_FLAGS=""
SAVE_LIBS="$LIBS"
LIBS="$LIBS -L$srcdir/../skyutils-1.15"
AC_CHECK_LIB(skyutils, SU_ParseConfig, SKY_LIBS="-L\$(top_srcdir)/../skyutils-1.15 -lskyutils" ; SKY_FLAGS="-I\$(top_srcdir)/../skyutils-1.15")
LIBS="$SAVE_LIBS"
if test "x$SKY_LIBS" = xerror ; then
  echo ;
  echo "Error: Cannot find the skyutil librarie. If you don't have it installed," ;
  echo "You can download the latest smssend and skyutil library" ;
  echo "from the SmsSend homepage: http://zekiller.skytech.org/smssend_menu_en.html" ;
  echo ;
  exit
fi

CPPFLAGS="$CPPFLAGS $SKY_FLAGS"
LIBS="$LIBS $SKY_LIBS"

dnl Set PACKAGE_LOCALE_DIR and PACKAGE_SHARE_DIR in config.h.
if test "x${prefix}" = "xNONE"; then
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
  AC_DEFINE_UNQUOTED(PACKAGE_SHARE_DIR, "${ac_default_prefix}/${DATADIRNAME}/")
else
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
  AC_DEFINE_UNQUOTED(PACKAGE_SHARE_DIR, "${prefix}/${DATADIRNAME}/")
fi

AC_OUTPUT([
Makefile
gsmssend.spec
macros/Makefile
src/Makefile
pixmaps/Makefile
docs/Makefile
docs/C/Makefile
intl/Makefile
po/Makefile.in
])