File: configure.ac

package info (click to toggle)
spass 3.7-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,500 kB
  • ctags: 5,981
  • sloc: ansic: 50,634; yacc: 3,038; sh: 1,072; lex: 430; perl: 407; makefile: 394
file content (93 lines) | stat: -rw-r--r-- 2,364 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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
dnl Process this file with autoconf to produce a configure script.

AC_REVISION($Revision: 1.4 $)
AC_INIT
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([m4])
AC_CONFIG_SRCDIR([SPASS/analyze.c])
AM_INIT_AUTOMAKE([SPASS], [3.7])

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AM_PROG_CC_C_O

if test -n "$GCC"; then
  CFLAGS="-O3 -DSPASS_SIGNALS=1 -D__inline__="
else
  CFLAGS="-D__inline__="
fi
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

# don't use yacc, use bison instead, since we need to have two parsers
# in a single executable.
AC_CHECK_PROGS([BISON], [bison])

# don't use lex, use flex instead, since we need to have two scanners
# in a single executable.
AC_CHECK_PROGS([FLEX], [flex])

# Find an appropriate tar for use in "dist" targets.  A "best guess"
# is good enough -- if we can't find GNU tar, we don't really care.
AC_CHECK_PROGS([TAR], [gnutar gtar tar])

AC_ARG_ENABLE(gui,
[  --enable-gui            Build SPASS desktop gui.])

AM_CONDITIONAL([COND_GUI], [test "$enable_gui" = yes])

AC_ARG_ENABLE(windows,
[  --enable-windows        Build SPASS for windows.])

# turn off cygwin DLL for SPASS builds on windows
if test "$enable_windows" = yes ; then
   CFLAGS="$(CFLAGS) -mno-cygwin"
fi

AM_CONDITIONAL([COND_WINDOWS], [test "$enable_windows" = yes])

# If GUI needs to be built check Qt support
if test "$enable_gui" = yes; then
   AC_CHECK_PROGS([QMAKE],[qmake])
fi

# Minimum required perl version for development: 5.0004
AC_PROG_PERL_VERSION([5.0004])

# Search for texi2html
AC_PATH_PROG(TEXI2HTML, texi2html)
if test -z "$TEXI2HTML"; then
  AC_MSG_WARN([texi2html not found])
fi

# Search for pod2man
AC_PATH_PROG(POD2MAN, pod2man)
if test -z "$POD2MAN"; then
  AC_MSG_WARN([pod2man not found])
fi

dnl Checks for libraries.
AC_CHECK_LIB(m, log10)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([limits.h malloc.h mmsystem.h unistd.h windows.h])

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

dnl Checks for library functions.
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([gettimeofday time strtol strtoul])

AC_CONFIG_HEADERS([SPASS/config.h])
AC_CONFIG_FILES([Makefile \
scripts/dfg2otter.pl \
scripts/texi2pod.pl])
AC_CONFIG_COMMANDS([dfg2otter],[[chmod +x scripts/dfg2otter.pl]],[[]])
AC_CONFIG_COMMANDS([texi2pod],[[chmod +x scripts/texi2pod.pl]],[[]])
AC_OUTPUT