forked from battlesnake/dxflib-total-path-length
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
54 lines (42 loc) · 933 Bytes
/
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
#
# Check for one project file
#
AC_INIT(src/dl_dxf.cpp)
PRODUCT=dxflib
#
# check cannonical system name
#
AC_CANONICAL_HOST
case "$host" in
*-linux-gnu ) AC_DEFINE(LINUX) ;;
*-aix* ) AC_DEFINE(AIX) ;;
* ) AC_DEFINE(UNIX) ;;
esac
#
# check C compiler, preprocesor, etc.
#
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_CHECK_PROG(FIND, find, find, :)
AC_CHECK_PROG(MAKEDEPEND, makedepend, makedepend, :)
#
# Try to locate the X Window System include files and libraries
# and add /usr/local to include and lib path and add -lm (for testing)
#
AC_PATH_XTRA
CFLAGS="$CFLAGS $X_CFLAGS -I/usr/local/include"
LDFLAGS="$LDFLAGS $X_LIBS -L/usr/local/lib"
#
# Declare variables which we want substituted in the Makefile.in's
#
AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h)
#
# finally create makefiles using Makefile.in
#
echo
AC_OUTPUT(Makefile test/Makefile)
echo
echo "Run 'make depend' to create dependencies."
echo