File: configure.in

package info (click to toggle)
sailcut 1.3.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,504 kB
  • ctags: 1,066
  • sloc: cpp: 11,930; sh: 9,126; makefile: 214
file content (80 lines) | stat: -rw-r--r-- 2,140 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
73
74
75
76
77
78
79
80
dnl Initialise autoconf
AC_INIT(sailcut, 1.3.2)
AC_CONFIG_SRCDIR(acinclude.m4)
AC_CONFIG_AUX_DIR(admin)

dnl Checking host/target/build systems, for make, install etc.
AC_CANONICAL_SYSTEM 
dnl Perform program name transformation
AC_ARG_PROGRAM

dnl Initialise automake
AM_INIT_AUTOMAKE

dnl Set default prefix
AC_PREFIX_DEFAULT(/usr/local)
if test "x$prefix" = "xNONE"; then
  prefix=$ac_default_prefix
  ac_configure_args="$ac_configure_args --prefix $prefix"
fi

dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done

dnl Checks for programs
AC_PROG_CXX
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
AC_PROG_LIBTOOL
AC_CHECK_PROG(FIG2DEV, fig2dev, fig2dev)
AC_CHECK_PROG(PNGTOPNM, pngtopnm, pngtopnm)
AC_CHECK_PROG(PPMTOXPM, ppmtoxpm, ppmtoxpm)
AC_CHECK_PROG(ICOTOOL, icotool, icotool)
AC_CHECK_PROG(INKSCAPE, inkscape, inkscape)
AC_CHECK_PROG(XSLTPROC, xsltproc, xsltproc)
AC_CHECK_PROG(DBLATEX, dblatex, dblatex)

dnl Make compiler verbose
CXXFLAGS="$CXXFLAGS -W -Wall" 

dnl Check Qt stuff
JWB_CHECK_QT(,AC_MSG_ERROR([Qt was not found!]))
JWB_CHECK_QT_MODULE(QtSvg,,AC_MSG_ERROR([QtSvg was not found!]))
JWB_CHECK_QT_MODULE(QtXml,,AC_MSG_ERROR([QtXml was not found!]))

dnl Check OpenGL support
JWB_HAVE_QTOPENGL

dnl Check data and documentation directories
JWB_CHECK_DATADIR(sailcut)
JWB_CHECK_DOCDIR(sailcut)
JWB_CHECK_ICONDIR

dnl Platform specific switches
case "$host" in 
  *-apple-darwin* )
    platform="macos"
    ;;
  *-mingw32* )
    dnl Disable console on Win32
    LDFLAGS="-mwindows $LDFLAGS"
    platform="win32"
    ;;
esac
AM_CONDITIONAL(MACOS, test x$platform = xmacos)
AM_CONDITIONAL(WIN32, test x$platform = xwin32)

dnl Produce output
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ sailcut.nsi ])
AC_CONFIG_FILES([ sailcut.plist ])
AC_CONFIG_FILES([ doc/Makefile ])
AC_CONFIG_FILES([ doc/en/Makefile ])
AC_CONFIG_FILES([ doc/es/Makefile ])
AC_CONFIG_FILES([ doc/fr/Makefile ])
AC_CONFIG_FILES([ icons/Makefile ])
AC_CONFIG_FILES([ src/Makefile ])
AC_CONFIG_FILES([ src/geocpp/Makefile ])
AC_CONFIG_FILES([ src/sailcpp/Makefile ])
AC_CONFIG_FILES([ src/ts/Makefile ])
AC_OUTPUT