File: configure.in

package info (click to toggle)
linneighborhood 0.6.5-3.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,312 kB
  • ctags: 2,315
  • sloc: ansic: 21,717; sh: 2,984; yacc: 318; makefile: 312
file content (56 lines) | stat: -rw-r--r-- 1,143 bytes parent folder | download | duplicates (2)
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

AC_INIT(src/main.c)

AM_INIT_AUTOMAKE(LinNeighborhood,0.6.5)

AM_CONFIG_HEADER(config.h)

ALL_LINGUAS="de sv ja fr ru es pt_BR tr pl it zh_TW"
LINGUAS="de sv ja fr ru es pt_BR tr pl it zh_TW"

dnl check for programs
AC_PROG_CC
AC_ISC_POSIX

dnl check for headers
AC_STDC_HEADERS

dnl internationalization macros
AM_GNU_GETTEXT

if test "x${prefix}" = "xNONE"; then
	localedir="${ac_default_prefix}/${DATADIRNAME}/locale"
else
	localedir="${prefix}/${DATADIRNAME}/locale"
fi

AC_SUBST(localedir)
AC_DEFINE_UNQUOTED(LOCALEDIR, "${localedir}")

iconsdir='${datadir}/icons'
AC_SUBST(iconsdir)

dnl gtk+ libraries
AM_PATH_GTK(1.2.0)


# posix thread libraries required

AC_CHECK_HEADER(pthread.h, hdr_pthead=yes, hdr_pthread=no )

if test "x$hdr_pthread" = "xno" ; then
  AC_MSG_ERROR([
    *** pthread.h: posix thread headers not found ***
  ])
fi

AC_CHECK_LIB(pthread, pthread_exit, lib_pthread=yes, lib_pthread=no )

if test "x$lib_pthread" = "xno" ; then
  AC_MSG_ERROR([
    *** libpthread.so: posix thread library no found ***
  ])
fi

AC_OUTPUT(Makefile po/Makefile.in src/Makefile intl/Makefile
	LinNeighborhood.spec LinNeighborhood.lsm)