File: configure.in

package info (click to toggle)
sailcut 1.2.4-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,580 kB
  • ctags: 875
  • sloc: cpp: 10,139; sh: 8,767; makefile: 176
file content (80 lines) | stat: -rw-r--r-- 2,163 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
# Original Author was Kalle@kde.org
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas

dnl Process this file with autoconf to produce a configure script.

AC_INIT(acinclude.m4) dnl a source file from your sub dir

dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)

dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
unset CDPATH

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

dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(sailcut,1.2.4)

dnl KDE_SET_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(SODIPODI, sodipodi, sodipodi)
AC_CHECK_PROG(XSLTPROC, xsltproc, xsltproc)
AC_CHECK_PROG(DBLATEX, dblatex, dblatex)

dnl Enable exceptions support, make compiler verbose
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS -W -Wall" 

dnl Check Qt stuff
JWB_CHECK_QT(,AC_MSG_ERROR([Qt was not found!]))
JWB_HAVE_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)

dnl Disable console on Win32
case "$host" in 
  *-mingw32* )
    LDFLAGS="-mwindows $LDFLAGS"
    ;;
esac

dnl Produce output
AC_CONFIG_FILES([ Doxyfile ])
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ sailcut.nsi ])
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/ts/Makefile ])
AC_OUTPUT