-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.in
69 lines (50 loc) · 1.2 KB
/
configure.in
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.76
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