File: configure.in

package info (click to toggle)
toshset 1.46-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 284 kB
  • ctags: 429
  • sloc: cpp: 1,997; sh: 1,507; ansic: 909; makefile: 132
file content (69 lines) | stat: -rw-r--r-- 1,224 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
dnl Process this file with autoconf to produce a configure script.
dnl Author: Charles Schwieters <Charles@Schwieters.org>

AC_REVISION([configure.in 1.00])
AC_INIT(toshset.cc)

PROGRAMS="toshset"

MANPAGES="toshset.1"

VERSION=1.46

dnl **** Command-line arguments ****

AC_ARG_ENABLE(debug, [  --enable-debug     turn on debugging [default=no]],
  if test "$enable_debug" = "yes"; then
    DEBUGFLAGS='-g -DDEBUG'
  fi)

if test -z "$DEBUGFLAGS"; then
	LDFLAGS='-s'
fi

dnl **** We only support Linux ****

AC_CANONICAL_HOST
case "$host_os" in
  linux*)
    OS_CFLAGS='-DLINUX'
  ;;
  *)
    AC_MSG_WARN(*** Your OS ($$host_os) has not been tested. Proceed with caution ***)
  ;;
esac

dnl **** Check for some programs ****

AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_INSTALL

dnl Checks for libraries.

if test "x$x_includes" = "x"; then
  x_includes="/usr/include"
fi

if test "${prefix}" = "NONE"; then
	prefix=/usr/local
fi

if test "${exec_prefix}" = "NONE"; then
	exec_prefix=${prefix}
fi

dnl **** Generate output files ****

AC_SUBST(PROGRAMS)
AC_SUBST(MANPAGES)
AC_SUBST(VERSION)
AC_SUBST(OS_CFLAGS)
AC_SUBST(DEBUGFLAGS)
AC_SUBST(LDFLAGS)

AC_OUTPUT(Makefile)

echo
echo "Configure finished. Do 'make' to compile."
echo