File: configure.in

package info (click to toggle)
dia2code 0.8.3-4.4
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 984 kB
  • sloc: ansic: 5,682; sh: 716; makefile: 19
file content (28 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (3)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(Makefile.am)

AM_CONFIG_HEADER(config.h)

AM_INIT_AUTOMAKE(dia2code,0.8.3)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB

PKG_PROG_PKG_CONFIG

dnl Checks for libraries.
PKG_CHECK_MODULES([XML], [libxml-2.0])
LIBS="$LIBS $XML_LIBS"

dnl Checks for header files.

AC_CHECK_HEADERS(dlfcn.h)

AC_CHECK_LIB(dl, dlopen,[LDFLAGS="$LDFLAGS -rdynamic"; LIBS="$LIBS -ldl"; CPPFLAGS="$CPPFLAGS -DDSO"])

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.

AC_OUTPUT(Makefile dia2code/Makefile dia2code/docs/Makefile dia2code/docs/en/Makefile )